Skip to main content

Search

Search API enables users to programmatically query the content database.

Endpoint

GET /api/v1/search HTTP/1.1
Accept: application/json

Searches in the content database.

Parameters

ParameterInTypeRequiredDescription
qquerystringtrueQuery string
takequeryinteger(int32)falseItems to return at max
skipqueryinteger(int32)falseItems to skip in results

Response

Overview

StatusMeaningDescription
200OKA list of search results
500Internal Server ErrorAn unexpected error on the server side

Response schema

Status Code 200

NameTypeRequiredDescription
totalinteger(int32)trueTotal number of found hits
dataobjectfalseIndividual hits of the search result

Examples

200 response
{
"total": 13,
"data": [
{
"id": "..."
},
...
]
}

Code examples

curl -X GET \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
'/api/v1/search?q=apple'