> ## 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 custom audiences on a Facebook ad account, with each one's type, size and whether a boost can target it yet.

List the custom audiences on a Facebook ad account: site visitors, people who engaged with a Page, an Instagram account or a video, lookalikes, and your own customer lists. Use the ids in `targeting.audiences` or `targeting.excludedAudiences` when you [boost a post](https://www.ayrshare.com/docs/apis/ads/facebook/boost-post.md#audiences).

<ul>
  <li>Audiences created in Meta Ads Manager are listed too, not only the ones created through Ayrshare.</li>
  <li>`status.ready` is `true` once Meta has filled the audience and a boost can target it. A new audience is not ready until Meta has matched at least 100 people, which can take a few hours for a website or engagement audience and up to 48 hours for a customer list.</li>
  <li>`size` is Meta's own estimate, as a lower and upper bound. It is `null` while Meta has none, for example while the audience is still filling.</li>
  <li>Results are not cached: an audience's size and readiness change while it fills.</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*

The ad account whose audiences to list, from [ad accounts](https://www.ayrshare.com/docs/apis/ads/facebook/get-ad-accounts.md), with or without the `act_` prefix.

**limit** `number`

The most audiences to return in one page, from 1 to 1000. Defaults to 100; a larger number returns 1000.

**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 audience id to use when boosting, adding people or deleting.</li>
  <li>`name`: the name shown in Ads Manager.</li>
  <li>`type`: `website`, `engagement`, `lookalike`, `customerList`, or `other` for an audience kind Ayrshare does not create.</li>
  <li>`size`: `{ lower, upper }`, Meta's estimate, or `null`.</li>
  <li>`status`: `{ ready, code, description }`. `ready` is `true` when a boost can target the audience now; `code` and `description` are Meta's delivery status.</li>
  <li>`created`: when the audience was created, ISO 8601, or `null`.</li>
</ul>

When there are more audiences, `meta.pagination.hasMore` is `true` and `meta.pagination.next` is set. Send the same request again with `next` set to that value to get the next page.

```bash cURL theme={"system"}
curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/facebook/audiences?accountId=1234567890"
```

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

fetch("https://api.ayrshare.com/api/ads/facebook/audiences?accountId=1234567890", {
      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/facebook/audiences?accountId=1234567890', headers=headers)

print(r.json())
```

```json 200: Success theme={"system"}
{
  "status": "success",
  "audiences": [
    {
      "id": "23851234567890123",
      "name": "Site visitors 30d",
      "type": "website",
      "size": { "lower": 12000, "upper": 14100 },
      "status": { "ready": true, "code": 200, "description": "This audience is ready for use." },
      "created": "2026-10-20T09:12:00.000Z"
    },
    {
      "id": "23851234567890456",
      "name": "Like site visitors",
      "type": "lookalike",
      "size": null,
      "status": { "ready": false, "code": 300, "description": "This audience is still being populated." },
      "created": "2026-10-28T16: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: Meta refused the request theme={"system"}
{
  "action": "ads",
  "status": "error",
  "code": 370,
  "message": "Error getting audiences. Please try again.",
  "details": "Meta's reason"
}
```


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