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

# Centres d'intérêt

> Recherchez par nom les centres d'intérêt publicitaires Reddit, jusqu'à 25 résultats, et obtenez les ID à envoyer dans targeting.interests pour un boost.

Trouvez des centres d'intérêt Reddit à cibler. Envoyez l'`id` de chacun de ceux que vous choisissez dans `targeting.interests` lorsque vous [sponsorisez une publication](https://www.ayrshare.com/docs/apis/ads/reddit/boost-post.md).

<ul>
  <li>`search` correspond à n'importe quelle partie du nom d'un centre d'intérêt, sans tenir compte de la casse.</li>
  <li>Jusqu'à 25 résultats sont renvoyés, sur une seule page. `meta.pagination.hasMore` vaut toujours `false`.</li>
  <li>Un `search` manquant, vide ou de plus de 100 caractères renvoie `code: 101`.</li>
</ul>

## Paramètres d'en-tête

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

## Paramètres de requête

**search** `string` *required*

Le texte à rechercher dans les noms des centres d'intérêt, de 1 à 100 caractères.

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