> ## 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 件)。投稿のブースト時に targeting.interests で送る ID を取得します。

ターゲットにするRedditの興味関心を検索します。[投稿をブースト](https://www.ayrshare.com/docs/apis/ads/reddit/boost-post.md)するときに、選んだ興味関心の`id`を`targeting.interests`で送信します。

<ul>
  <li>`search`は、大文字と小文字を区別せずに、興味関心の名前の一部と一致します。</li>
  <li>一致する結果は最大25件で、1ページで返されます。`meta.pagination.hasMore`は常に`false`です。</li>
  <li>`search`がない、空である、または100文字を超える場合は`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.