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

# Audiences

> List the audience segments on a Snapchat ad account, with each one's type, size and whether a boost can target it yet.

List the audience segments on a Snapchat ad account: your customer lists, website visitors seen by your Snap Pixel, and lookalikes. Use the ids in `targeting.audiences` or `targeting.excludedAudiences` when you [boost a Snap](https://www.ayrshare.com/docs/apis/ads/snapchat/boost-post.md#audiences).

<ul>
  <li>Segments created in Snapchat Ads Manager are listed too, not only the ones created through Ayrshare.</li>
  <li>`status.ready` is `true` once Snapchat says a boost can target the segment. A segment with too few matched people is not ready (`TOO_FEW_USERS`).</li>
  <li>`size` is Snapchat's own count of matched people, sent as both `lower` and `upper`.</li>
  <li>Results are not cached: a segment's size and readiness change while it fills.</li>
  <li>Snapchat sets its own page size, so `limit` has no effect here.</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

**accountId** `string` *required*

Your Snapchat ad account ID whose segments to list, for example `5a0d0000-0000-4000-8000-000000000003`.

**next** `string`

When the response has `meta.pagination.hasMore: true`, send its `meta.pagination.next` value here to get the next page. Send the other parameters unchanged: a `next` value from a different request returns `code: 101`.

## Response

Each audience has:

<ul>
  <li>`id`: the segment id to use when boosting, adding people or deleting.</li>
  <li>`name`: the name shown in Ads Manager.</li>
  <li>`type`: `customerList`, `website`, `lookalike`, or `other` for a segment kind Ayrshare does not create.</li>
  <li>`size`: `{ lower, upper }`, both Snapchat's count, or `null` when Snapchat reports none.</li>
  <li>`status`: `{ ready, code, description }`. `ready` is `true` when a boost can target the segment now. `code` is always `null`. `description` is Snapchat's status: `READY`, `NOT_READY` or `TOO_FEW_USERS`.</li>
  <li>`created`: when the segment was created, ISO 8601, or `null`.</li>
</ul>

```bash cURL theme={"system"}
curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/snapchat/audiences?accountId=5a0d1b2c-0000-4000-8000-000000000003"
```

```javascript JavaScript theme={"system"}
const API_KEY = "API_KEY";

fetch("https://api.ayrshare.com/api/ads/snapchat/audiences?accountId=5a0d1b2c-0000-4000-8000-000000000003", {
      method: "GET",
      headers: {
        "Authorization": `Bearer ${API_KEY}`
      }
    })
      .then((res) => res.json())
      .then((json) => console.log(json))
      .catch(console.error);
```

```python Python theme={"system"}
import requests

headers = {'Authorization': 'Bearer API_KEY'}

r = requests.get('https://api.ayrshare.com/api/ads/snapchat/audiences?accountId=5a0d1b2c-0000-4000-8000-000000000003', headers=headers)

print(r.json())
```

```json 200: Success theme={"system"}
{
  "status": "success",
  "audiences": [
    {
      "id": "8c1e2f3a-0000-4000-8000-000000000101",
      "name": "Newsletter subscribers",
      "type": "customerList",
      "size": { "lower": 12000, "upper": 12000 },
      "status": { "ready": true, "code": null, "description": "READY" },
      "created": "2026-11-20T09:12:00.000Z"
    },
    {
      "id": "8c1e2f3a-0000-4000-8000-000000000102",
      "name": "Like my subscribers",
      "type": "lookalike",
      "size": { "lower": 0, "upper": 0 },
      "status": { "ready": false, "code": null, "description": "NOT_READY" },
      "created": "2026-12-01T16:40:00.000Z"
    }
  ],
  "meta": { "pagination": { "hasMore": false } }
}
```

```json 400: Missing account 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": "accountId is required."
}
```

```json 400: Snapchat refused the request theme={"system"}
{
  "action": "ads",
  "status": "error",
  "code": 370,
  "message": "Error getting audiences. Please try again.",
  "details": "Snapchat's reason"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.