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

# Search with the default profile

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

## `GET /search`

**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.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `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 | With `locale`, `false` leaves out the items not translated into the requested locale. Single-language sites ignore it |
| `market` | query | string | No | Market `mkt_` id: products hidden in that market are left out. An unknown, draft or malformed value is ignored |
| `category` | query | string | No | Keeps only the contents in the category with this slug |
| `tag` | query | string | No | Keeps only the contents carrying the tag with this slug |
| `page` | query | number (min 1, default 1) | No | Page number, starting at 1 |
| `limit` | query | number (min 1) | No | 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 |


### Responses

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


> **Notes:** Never cached (`no-store`). Rate-limit bucket: general. An empty `q`
> returns an empty `data` array and `meta.total` 0.

### SDK

```typescript
import { createClient } from 'lynkow'

const lynkow = createClient({ siteId: process.env.LYNKOW_SITE_ID! })

const { data, meta } = await lynkow.search.search('formulaire', {
  locale: 'fr',
  category: 'guides',
  limit: 5,
})
for (const hit of data) {
  console.log(hit._formatted?.title ?? hit.title, hit.path, hit.isFallback)
}
```

### Examples

```curl
curl "https://api.lynkow.com/storefront/{siteId}/search?q=pricing&locale=en"
```

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

### Response Example

```json
{
  "data": [
    {
      "id": "01J9R4QV6ZK7T0W1FH3DXB6P2Y",
      "title": "Pricing",
      "slug": "pricing",
      "excerpt": "Simple pricing. Start free, scale when you grow.",
      "locale": "en",
      "requestedLocale": "en",
      "isFallback": false,
      "type": "page",
      "_formatted": {
        "title": "<mark>Pricing</mark>"
      }
    },
    {
      "id": "01J9P1B5N4XZRWQEKM2H6A3T8C",
      "title": "How we set our pricing",
      "slug": "how-we-set-our-pricing",
      "excerpt": "A behind-the-scenes look at the pricing model.",
      "locale": "en",
      "requestedLocale": "en",
      "isFallback": false,
      "type": "content",
      "_formatted": {
        "title": "How we set our <mark>pricing</mark>"
      }
    }
  ],
  "meta": {
    "total": 2,
    "page": 1,
    "totalPages": 1,
    "perPage": 20,
    "query": "pricing",
    "processingTimeMs": 6,
    "profile": "default",
    "facetDistribution": {
      "type": {
        "page": 1,
        "content": 1
      }
    }
  }
}
```

---