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

# Interests

> Search Snapchat's interest categories by keyword to get the interest IDs you can target in a Snapchat boost.

Search Snapchat's interest categories by keyword. Send the `id` of each interest you want in `targeting.interests` when you [boost a Snap](https://www.ayrshare.com/docs/apis/ads/snapchat/boost-post.md).

<ul>
  <li>Snapchat's interests are its Snap Lifestyle Categories, such as "Bargain Hunters" or "Beauty Mavens".</li>
  <li>The search matches any interest whose name contains your term. Case does not matter.</li>
  <li>The response returns up to 25 matching interests, all on one page. Use a more specific term to narrow the list.</li>
  <li>Results come from Snapchat's US list of categories.</li>
  <li>Each result has its `id`, `name` and `path`. `path` shows where the interest sits in Snapchat's category tree.</li>
</ul>

## Header Parameters

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

## Query Parameters

**search** `string` *required*

The term to search for, 1 to 100 characters. Escape it in the URL, for example `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.