> ## 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 sở thích quảng cáo của Reddit theo tên, tối đa 25 kết quả, và lấy ID sở thích để gửi trong targeting.interests khi boost bài đăng Reddit.

Tìm các sở thích Reddit để nhắm mục tiêu. Gửi `id` của từng sở thích bạn chọn trong `targeting.interests` khi bạn [boost một bài đăng](https://www.ayrshare.com/docs/apis/ads/reddit/boost-post.md).

<ul>
  <li>`search` khớp với bất kỳ phần nào trong tên sở thích, không phân biệt chữ hoa chữ thường.</li>
  <li>Trả về tối đa 25 kết quả, trong một trang. `meta.pagination.hasMore` luôn là `false`.</li>
  <li>`search` bị thiếu, rỗng hoặc dài hơn 100 ký tự sẽ trả về `code: 101`.</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*

Văn bản cần tìm trong tên sở thích, từ 1 đến 100 ký tự.

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