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

> Reddit ad account की custom audiences सूचीबद्ध करें, हर एक के type, size और इस जानकारी के साथ कि कोई boost उसे अभी target कर सकता है या नहीं।

Reddit ad account की custom audiences सूचीबद्ध करें: आपकी customer lists, website visitors और account की कोई भी अन्य audience। जब आप [कोई पोस्ट boost करें](https://www.ayrshare.com/docs/apis/ads/reddit/boost-post.md#audiences), तो इन ids को `targeting.audiences` या `targeting.excludedAudiences` में उपयोग करें।

<ul>
  <li>Reddit Ads Manager में बनाई गई audiences भी सूचीबद्ध होती हैं, सिर्फ़ Ayrshare से बनाई गई नहीं।</li>
  <li>जब Reddit कम से कम 1,000 लोगों का मिलान कर लेता है और कोई boost audience को target कर सकता है, तब `status.ready` का मान `true` होता है।</li>
  <li>`size` Reddit का अपना अनुमान है, निचली और ऊपरी सीमा के रूप में। जब तक Reddit के पास अनुमान नहीं होता, यह `null` रहता है।</li>
  <li>परिणाम cache नहीं होते: audience के भरते समय उसका size और readiness बदलते रहते हैं।</li>
</ul>

## हैडर पैरामीटर

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

## क्वेरी पैरामीटर

**accountId** `string` *required*

आपके Reddit ad account की ID, उदाहरण के लिए `a2_abc123`।

**limit** `number`

एक पेज में लौटाई जाने वाली अधिकतम audiences, 1 से 2000 तक। इससे बड़ी संख्या 2000 लौटाती है।

**next** `string`

जब response में `meta.pagination.hasMore: true` हो, तो अगला पेज पाने के लिए उसका `meta.pagination.next` मान यहाँ भेजें। बाकी parameters बिना बदलाव भेजें: किसी दूसरे request का `next` मान `code: 101` लौटाता है।

## Response

हर audience में होता है:

<ul>
  <li>`id`: boost करने, लोगों को जोड़ने या delete करने के लिए audience id।</li>
  <li>`name`: Reddit Ads Manager में दिखने वाला नाम।</li>
  <li>`type`: `customerList`, `website`, `engagement`, या `other` उस audience प्रकार के लिए जिसे Ayrshare नहीं बनाता, जैसे lookalike।</li>
  <li>`size`: `{ lower, upper }`, Reddit का अनुमान, या `null`।</li>
  <li>`status`: `{ ready, code, description }`। `ready` का मान `true` होता है जब कोई boost अभी audience को target कर सकता है। `description` Reddit का status है, जैसे `PENDING`, `VALID` या `NOT_ENOUGH_MATCHES_ERROR`। Reddit पर `code` हमेशा `null` होता है।</li>
  <li>`created`: audience कब बनाई गई, ISO 8601 में, या `null`।</li>
</ul>

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

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

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

print(r.json())
```

```json 200: Success theme={"system"}
{
  "status": "success",
  "audiences": [
    {
      "id": "ca.129482487242828",
      "name": "Buyers",
      "type": "customerList",
      "size": { "lower": 140000, "upper": 160000 },
      "status": { "ready": true, "code": null, "description": "VALID" },
      "created": "2026-11-20T09:12:00.000Z"
    },
    {
      "id": "ca.129482487242999",
      "name": "Site visitors 30d",
      "type": "website",
      "size": null,
      "status": { "ready": false, "code": null, "description": "PENDING" },
      "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: Reddit failed the request theme={"system"}
{
  "action": "ads",
  "status": "error",
  "code": 370,
  "message": "Error getting audiences. Please try again.",
  "details": "Reddit's reason"
}
```


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