List search terms

Returns a paginated list of search terms recorded within a given time range.

Returns a paginated list of search terms recorded within a given time range.

Request

GET /search-terms

Query Parameters

ParameterTypeDefaultDescription
sincestring1dTime range to look back. Accepts values like 1d (1 day), 7d (7 days), 30d (30 days).
_startinteger0Offset for pagination.
_endinteger10End index for pagination (exclusive). The number of returned items equals _end - _start.
languagestringFilter by shop language (e.g. de, en). If omitted, all languages are returned.
includeBotTrafficbooleanfalseWhen true, search terms from detected bot traffic are included.
hitsbooleantrueWhen true, returns search terms that produced results. When false, returns search terms with zero results and annotates each entry with a status field from the search term check.

Headers

HeaderValue
AuthorizationBearer <token>

Response

Returns a JSON array of search term objects. The total count of matching items is returned in the X-Total-Count response header.

Response Headers

HeaderDescription
X-Total-CountTotal number of search terms matching the query (before pagination).

Response Body

Array of objects with the following fields:

FieldTypeDescription
idstringUnique identifier for the search term record.
search_phrasestringThe search term entered by the shopper.
countintegerNumber of times this search term was used within the requested time range.
statusobject | nullOnly present when hits=false. Contains the result of a search term check with handled (boolean) and handlers (array) fields.

Example Response

[
  {
    "id": "running-shoes",
    "search_phrase": "running shoes",
    "count": 142,
    "status": null
  },
  {
    "id": "winter-jacket",
    "search_phrase": "winter jacket",
    "count": 87,
    "status": null
  }
]

When hits=false, each item includes a status object:

[
  {
    "id": "bleu-jens",
    "search_phrase": "bleu jens",
    "count": 12,
    "status": {
      "handled": false,
      "handlers": []
    }
  }
]
Query Params
string
Defaults to 1d

Time range (e.g. 1d, 7d, 30d)

integer
Defaults to 0

Pagination start offset

integer
Defaults to 10

Pagination end index (exclusive)

string

Filter by shop language

boolean
Defaults to false

Include bot traffic

boolean
Defaults to true

true for terms with results, false for zero-result terms

Response

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json