> ## Documentation Index
> Fetch the complete documentation index at: https://www.ayrshare.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Інтереси

> Шукайте рекламні інтереси Reddit за назвою, до 25 збігів, і отримайте ID інтересів для targeting.interests під час просування допису Reddit.

Знаходьте інтереси Reddit для націлювання. Надсилайте `id` кожного вибраного інтересу в `targeting.interests`, коли [просуваєте допис](https://www.ayrshare.com/docs/apis/ads/reddit/boost-post.md).

<ul>
  <li>`search` шукає збіг у будь-якій частині назви інтересу без урахування регістру.</li>
  <li>Повертається до 25 збігів на одній сторінці. `meta.pagination.hasMore` завжди `false`.</li>
  <li>Відсутній, порожній або довший за 100 символів `search` повертає `code: 101`.</li>
</ul>

## Параметри заголовка

**Authorization** `string` *required*

[API Key](https://www.ayrshare.com/docs/apis/overview.md#authorization) of the Primary Profile.

Format: `Authorization: Bearer API_KEY`
**Profile-Key** `string`

[Profile Key](https://www.ayrshare.com/docs/apis/overview.md#profile-key-format) of a User Profile.

Format: `Profile-Key: PROFILE_KEY`

## Параметри запиту

**search** `string` *required*

Текст для пошуку в назвах інтересів, від 1 до 100 символів.

```bash cURL theme={"system"}
curl \
  -H "Authorization: Bearer API_KEY" \
  -X GET "https://api.ayrshare.com/api/ads/reddit/interests?search=tech"
```

```json 200: Success theme={"system"}
{
  "status": "success",
  "kind": "interests",
  "results": [
    { "id": "2707000000101", "name": "Technology", "kind": "interests" },
    { "id": "2707000000102", "name": "Tech News", "kind": "interests" }
  ],
  "meta": {
    "pagination": { "hasMore": false }
  }
}
```

```json 400: Missing search theme={"system"}
{
  "action": "request",
  "status": "error",
  "code": 101,
  "message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
  "details": "Targeting search needs a query of 1 to 100 characters."
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.