Search Offers

Details#

This endpoint returns offers based on search criteria. It allows for Full-Text Search as well as results filtering. Perfect for a search component!

URL : /offers

Method :

GET

Authentication

Auth is required to get hidden Offers. Only Admins or owners of hidden Offers will see them if showHidden is set to true.

Parameters#

showHidden#

Query Parameter
Optional
Boolean

If active, will also return hidden offers, only for admin or offer owner.

limit#

Query Parameter
Optional

Default: 20
Number

Limits the number of results returned.

queryToken#

Query Parameter
Optional
String

Used to continue a search after the previous one (often used with limit to have pagination). When using this parameter, it's not needed to pass the previous search parameters again.

info

You can get this token in the response of a previous call to this endpoint.

value#

Query Parameter
Optional

Default: ""
String

Query for full text search.

jobType#

Query Parameter
Optional
String

Filters the search results to only include ones of given type.

caution

Must be a valid Job Type ( currently ["FULL-TIME", "PART-TIME", "SUMMER INTERNSHIP", "CURRICULAR INTERNSHIP", "RESEARCH GRANT", "OTHER"]).

jobMinDuration#

Query Parameter
Optional
Number

Filters the search results to only include Offers with a jobMinDuration greater than given value.

jobMaxDuration#

Query Parameter
Optional
Number

Filters the search results to only include Offers with a jobMinDuration lower than given value.

fields#

Query Parameter
Optional

String
Array

Filters the search results to only include Offers with at least one of fields being one of given values.

caution

Must be a valid Field Type ( see list).

info

If you pass multiple values like: <url>/?fields=field1&fields=field2 it will be parsed as a String array.

technologies#

Query Parameter
Optional

String
Array

Filters the search results to only include Offers with at least one of technologies being one of given values.

caution

Must be a valid Technology Type ( see list).

info

If you pass multiple values like: <url>/?technologies=tech1&technologies=tech2 it will be parsed as a String array

Response#

results#

Response Field
Array

Array of objects containing the offers found by the search

queryToken#

Response Field
String

Token used to continue the search in a following request. It's needed to get the next page of results.

info

You can use this together with limit to achieve pagination

Request examples#

Example 1 - Valid Request#

Code :

200 OK

/offers?value=testcompany%20frontend&technologies=React&technologies=NodeJS

Example 2 - Invalid job type#

Condition : If jobType contains an invalid value (e.g. jobType=fas)

Code :

422 UNPROCESSABLE ENTITY

/offers?jobType=fas

Example 3 - Invalid fields#

Condition : If fields contains an invalid value (e.g. fields=fas)

Code :

422 UNPROCESSABLE ENTITY

/offers?fields=fas

Example 4 - Invalid technologies#

Condition : If technologies contains an invalid value (e.g. technologies=fas)

Code :

422 UNPROCESSABLE ENTITY

/offers?technologies=fas

Example 5 - Invalid numeric fields#

Condition : If given a non-int to any of the numeric fields

Code :

422 UNPROCESSABLE ENTITY

/offers?limit=fas

Example 6 - Invalid queryToken#

Condition : If given an invalid queryToken (e.g. random string)

Code :

422 UNPROCESSABLE ENTITY

/offers?queryToken=random_string