Search with a named profile

Searches the site with a named search profile. The payload is that of `/search`, with ranking, fields and facets scoped to `:profileSlug`. Use `/search/profiles` to list the public profiles. Every hit field, `id` and `path` included, can be absent. With `market` (a `mkt_` id), the products hidden in that market are left out. `locale` and `fallback` work as on `/search`, and `fallback` defaults to `true`. A `fallback` that is not a boolean returns 422. Returns 403 `AUTHZ_PERMISSION_DENIED` for a profile that is not public, 404 `RESOURCE_NOT_FOUND` for an unknown slug, and 503 `INTERNAL_SERVICE_UNAVAILABLE` when search is not available.

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

Path parameters

profileSlug
string
required

Slug of the named search profile

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?