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

# Sở thích

> Tìm danh mục sở thích của Snapchat theo từ khóa để lấy ID sở thích mà bạn có thể nhắm tới trong một lượt boost Snapchat.

Tìm danh mục sở thích của Snapchat theo từ khóa. Gửi `id` của mỗi sở thích bạn muốn trong `targeting.interests` khi bạn [boost một Snap](https://www.ayrshare.com/docs/apis/ads/snapchat/boost-post.md).

<ul>
  <li>Sở thích của Snapchat là các Snap Lifestyle Categories, chẳng hạn "Bargain Hunters" hoặc "Beauty Mavens".</li>
  <li>Tìm kiếm khớp mọi sở thích có tên chứa từ khóa của bạn. Không phân biệt chữ hoa chữ thường.</li>
  <li>Phản hồi trả về tối đa 25 sở thích khớp, tất cả trên một trang. Dùng từ khóa cụ thể hơn để thu hẹp danh sách.</li>
  <li>Kết quả lấy từ danh sách danh mục của Snapchat cho Hoa Kỳ.</li>
  <li>Mỗi kết quả có `id`, `name` và `path`. `path` cho biết vị trí của sở thích trong cây danh mục của Snapchat.</li>
</ul>

## Tham số Header

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

## Tham số truy vấn

**search** `string` *required*

Từ khóa cần tìm, từ 1 đến 100 ký tự. Mã hóa nó trong URL, ví dụ `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.