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

# 興味関心

> Snapchat の興味関心カテゴリをキーワードで検索し、Snapchat ブーストでターゲットにできる興味関心 ID を取得します。

Snapchat の興味関心カテゴリをキーワードで検索します。[Snap をブースト](https://www.ayrshare.com/docs/apis/ads/snapchat/boost-post.md)するときに、希望する各興味関心の `id` を `targeting.interests` で送ります。

<ul>
  <li>Snapchat の興味関心は Snap Lifestyle Categories で、たとえば「Bargain Hunters」や「Beauty Mavens」などがあります。</li>
  <li>検索では、名前に検索語を含むすべての興味関心が一致します。大文字・小文字は区別しません。</li>
  <li>レスポンスは一致する興味関心を最大 25 件、すべて 1 ページで返します。リストを絞り込むには、より具体的な語を使ってください。</li>
  <li>結果は Snapchat の米国向けカテゴリリストから取得されます。</li>
  <li>各結果には `id`、`name`、`path` があります。`path` は Snapchat のカテゴリツリー内での興味関心の位置を示します。</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 文字。URL エンコードしてください。例: `beauty%20mavens`。

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

```json 200: Success theme={"system"}
{
  "status": "success",
  "kind": "interests",
  "results": [
    {
      "id": "SLC_2",
      "name": "Beauty Mavens",
      "path": "/Beauty/Beauty Mavens",
      "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.