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

# Interesses

> Pesquise pelo nome os interesses de anúncios do Reddit, até 25 resultados, e obtenha os IDs a enviar em targeting.interests ao impulsionar um post.

Encontre interesses do Reddit para segmentar. Envie o `id` de cada um que você escolher em `targeting.interests` ao [impulsionar uma publicação](https://www.ayrshare.com/docs/apis/ads/reddit/boost-post.md).

<ul>
  <li>`search` corresponde a qualquer parte do nome de um interesse, sem diferenciar maiúsculas de minúsculas.</li>
  <li>São retornadas até 25 correspondências, em uma única página. `meta.pagination.hasMore` é sempre `false`.</li>
  <li>Um `search` ausente, vazio ou com mais de 100 caracteres retorna `code: 101`.</li>
</ul>

## Parâmetros de cabeçalho

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

## Parâmetros de consulta

**search** `string` *required*

O texto a procurar nos nomes dos interesses, de 1 a 100 caracteres.

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