> For the complete Lynkow documentation index in agent-friendly format, see [llms.txt](/llms.txt).

# Search with a named profile

**Published**: 2026-11-13
**Category**: Search

## `GET /search/:profileSlug`

**Search with a named profile**

Search the site using a named search profile. Same payload shape
as `/search` but ranking, fields, and facets are scoped to the
profile referenced by `:profileSlug`. Use `/search/profiles` to
discover the available profiles. Every hit field, including `id`
and `path`, can be omitted by indexing or display configuration.
Nested category and tag names and slugs are optional too. With
`market` (a `mkt_` id), the products hidden in that market are left
out.

`locale` and `fallback` follow the same storefront fallback contract
as `/search`: `fallback` defaults to `true`, a missing translation is
served through the locale chain, `fallback=false` keeps only the hits
written in the requested locale, each hit carries `locale`,
`requestedLocale` and `isFallback` when `locale` is sent, and the
response sends `Content-Language` with the locales served. A
`fallback` that is not a boolean returns 422.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `profileSlug` | path | string | Yes | Slug of the named search profile |
| `q` | query | string | No | Full-text search query string. Min 1 character |
| `locale` | query | string | No | BCP 47 locale code (e.g. "en", "fr") |
| `fallback` | query | boolean (default true) | No | Whether a missing translation may be served from another locale. On the storefront it defaults to true: an item with no translation in the requested locale is served through the locale chain (the requested locale, its base language, the site default locale, then a locale the item exists in) and flagged by isFallback. false keeps the requested locale only: on a multi-language site a list drops the other items and a single-item read with none is a 404, unless the operation serves default values. On the /v1 search endpoints it defaults to false. A value that is not a boolean is a 422 |
| `market` | query | string | No | Market identifier (mkt_ prefixed id): products hidden in that market are left out. An unknown, inactive or malformed value filters nothing |
| `category` | query | string | No |  |
| `tag` | query | string | No |  |
| `page` | query | number (min 1, default 1) | No |  |
| `limit` | query | number (1 to 100) | No |  |


### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `402` | The site subscription does not currently permit this operation |
| `404` | Not found |
| `422` | Validation error |


> **Notes:** Cache: `Cache-Control: no-store, no-cache, must-revalidate, proxy-revalidate`. Search routes bypass the public cache layer
> entirely, so nothing is edge-cached. Rate-limit bucket: general.

### Examples

```curl
curl "https://api.lynkow.com/storefront/{siteId}/search/docs?q=consent"
```

```javascript
const res = await fetch(`https://api.lynkow.com/storefront/${siteId}/search/docs?q=consent`)
const { data, meta } = await res.json()
```

### Response Example

```json
{
  "data": [
    {
      "id": "01J9YPWQ3KTNB4F8C7H6D2R5XA",
      "title": "Cookie consent",
      "slug": "cookie-consent",
      "excerpt": "How to wire the cookie-consent widget in your app.",
      "locale": "en",
      "type": "content",
      "_formatted": {
        "title": "Cookie <mark>consent</mark>"
      }
    }
  ],
  "meta": {
    "total": 1,
    "page": 1,
    "totalPages": 1,
    "perPage": 20,
    "query": "consent",
    "processingTimeMs": 4,
    "profile": "docs",
    "facetDistribution": {
      "type": {
        "content": 1
      }
    }
  }
}
```

---