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

# Zielgruppen

> Listet die Custom Audiences eines Reddit-Werbekontos mit Typ, Größe und der Angabe, ob ein Boost sie bereits ansprechen kann.

Listet die Custom Audiences eines Reddit-Werbekontos: Ihre Kundenlisten, Websitebesucher und jede andere Zielgruppe des Kontos. Verwenden Sie die IDs in `targeting.audiences` oder `targeting.excludedAudiences`, wenn Sie [einen Beitrag bewerben](https://www.ayrshare.com/docs/apis/ads/reddit/boost-post.md#audiences).

<ul>
  <li>Auch in Reddit Ads Manager erstellte Zielgruppen werden aufgelistet, nicht nur die über Ayrshare erstellten.</li>
  <li>`status.ready` ist `true`, sobald Reddit mindestens 1.000 Personen zugeordnet hat und ein Boost die Zielgruppe ansprechen kann.</li>
  <li>`size` ist Reddits eigene Schätzung als Unter- und Obergrenze. Der Wert ist `null`, solange Reddit keine Schätzung hat.</li>
  <li>Die Ergebnisse werden nicht zwischengespeichert: Größe und Bereitschaft einer Zielgruppe ändern sich, während sie sich füllt.</li>
</ul>

## Header-Parameter

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

**accountId** `string` *required*

Die ID Ihres Reddit-Werbekontos, zum Beispiel `a2_abc123`.

**limit** `number`

Die maximale Anzahl an Zielgruppen pro Seite, von 1 bis 2000. Eine größere Zahl liefert 2000.

**next** `string`

Wenn die Antwort `meta.pagination.hasMore: true` enthält, senden Sie hier ihren Wert `meta.pagination.next`, um die nächste Seite abzurufen. Senden Sie die übrigen Parameter unverändert: Ein `next`-Wert aus einer anderen Anfrage liefert `code: 101`.

## Antwort

Jede Zielgruppe enthält:

<ul>
  <li>`id`: die Zielgruppen-ID für Boosts, das Hinzufügen von Personen oder das Löschen.</li>
  <li>`name`: der in Reddit Ads Manager angezeigte Name.</li>
  <li>`type`: `customerList`, `website`, `engagement` oder `other` für eine Zielgruppenart, die Ayrshare nicht erstellt, etwa eine Lookalike.</li>
  <li>`size`: `{ lower, upper }`, Reddits Schätzung, oder `null`.</li>
  <li>`status`: `{ ready, code, description }`. `ready` ist `true`, wenn ein Boost die Zielgruppe jetzt ansprechen kann. `description` ist der Status bei Reddit, etwa `PENDING`, `VALID` oder `NOT_ENOUGH_MATCHES_ERROR`. `code` ist auf Reddit immer `null`.</li>
  <li>`created`: wann die Zielgruppe erstellt wurde, im ISO-8601-Format, oder `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.