# Search with a named profile

**Publié le** : 2026-05-12
**Catégorie** : 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.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `profileSlug` | path | string | Yes |  |


### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `404` | Not found |


> **Notes:** Cache: not cached. Rate-limit bucket: general.

### Examples

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

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

### Response Example

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

---