Search with the default profile

Searches the site's content with the default profile. Send the query in `q`, and narrow it with `category` or `tag`. Every hit field can be absent, `id` and `path` included: the site's indexed fields and the profile decide the shape. With `market` (a `mkt_` id), the products hidden in that market are left out. With `locale`, each hit is the best translation the locale chain finds. `fallback` defaults to `true` here, and `fallback=false` keeps only the hits written in the requested locale. A `fallback` that is not a boolean returns 422. Returns 503 `INTERNAL_SERVICE_UNAVAILABLE` when search is not available for the site.

Required access
No credentialOptional: publishable keySite access
GET/search
Base URLhttps://api.lynkow.com/storefront/{siteId}

Query parameters

category
string

Keeps only the contents in the category with this slug

fallback
boolean

With `locale`, `false` leaves out the items not translated into the requested locale. Single-language sites ignore it

Default: true

limit
number

Hits per page. Defaults to the search profile's `defaultLimit`. A value above its `maxLimit` is lowered to it, and a non-numeric one uses the default

Min: 1

locale
string

BCP 47 locale code (e.g. "en", "fr")

market
string

Market `mkt_` id: products hidden in that market are left out. An unknown, draft or malformed value is ignored

page
number

Page number, starting at 1

Default: 1

Min: 1

q
string

Full-text search query string. Min 1 character

tag
string

Keeps only the contents carrying the tag with this slug

Feedback

Was this page helpful?