Check search term

Checks whether a search term is handled by any configured rule.

Checks whether a given search term is handled by any configured rule (synonym, antonym, search redirect, etc.) and returns the handlers that apply to it.

Request

GET /search-term/check

Query Parameters

ParameterTypeRequiredDescription
searchTermstringYesThe search term to check.
languagestringNoThe shop language to check the term against (e.g. de, en).

Headers

HeaderValue
AuthorizationBearer <token>

Response

Returns a JSON object describing whether the search term is handled and which rules apply.

Response Body

FieldTypeDescription
handledbooleantrue if at least one rule (synonym, antonym, redirect, etc.) applies to this search term.
handlersarrayList of handlers that matched. Each handler has a type (string, e.g. synonym, antonym, searchredirect) and a data field with rule-specific details.

Example Request

GET /search-term/check?searchTerm=jeans&language=de

Example Response — term is handled

{
  "handled": true,
  "handlers": [
    {
      "type": "synonym",
      "data": {
        "id": 42,
        "terms": ["jeans", "denim", "hose"]
      }
    }
  ]
}

Example Response — term is not handled

{
  "handled": false,
  "handlers": []
}
Query Params
string
required

The search term to check

string

Shop language

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