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

# オーディエンス

> Redditの広告アカウントのカスタムオーディエンスを、種類、規模、ブーストでターゲットにできるかとともに一覧表示します。

Redditの広告アカウントのカスタムオーディエンスを一覧表示します。顧客リスト、サイト訪問者、その他アカウント上のあらゆるオーディエンスが含まれます。[投稿をブースト](https://www.ayrshare.com/docs/apis/ads/reddit/boost-post.md#audiences)するときに、IDを`targeting.audiences`または`targeting.excludedAudiences`に指定します。

<ul>
  <li>Ayrshareで作成したものだけでなく、Reddit Ads Managerで作成したオーディエンスも一覧に含まれます。</li>
  <li>Redditが1,000人以上をマッチングし、ブーストでターゲットにできるようになると、`status.ready`が`true`になります。</li>
  <li>`size`はReddit独自の推定値で、下限と上限で示されます。Redditに推定値がない間は`null`になります。</li>
  <li>結果はキャッシュされません。オーディエンスの規模と準備状況は作成中に変化します。</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の広告アカウントID。例: `a2_abc123`。

**limit** `number`

1ページで返すオーディエンスの最大数（1〜2000）。それより大きい数を指定すると2000件を返します。

**next** `string`

レスポンスに`meta.pagination.hasMore: true`が含まれる場合、その`meta.pagination.next`の値をここに送ると次のページを取得できます。他のパラメータは変更せずに送ってください。別のリクエストの`next`値を使うと`code: 101`が返されます。

## レスポンス

各オーディエンスには次の項目があります。

<ul>
  <li>`id`: ブースト、人の追加、削除に使うオーディエンスID。</li>
  <li>`name`: Reddit Ads Managerに表示される名前。</li>
  <li>`type`: `customerList`、`website`、`engagement`、または類似オーディエンスなどAyrshareが作成しない種類のオーディエンスの場合は`other`。</li>
  <li>`size`: `{ lower, upper }`形式のRedditの推定値、または`null`。</li>
  <li>`status`: `{ ready, code, description }`。今すぐブーストでターゲットにできる場合、`ready`は`true`です。`description`はRedditのステータスで、`PENDING`、`VALID`、`NOT_ENOUGH_MATCHES_ERROR`などです。Redditでは`code`は常に`null`です。</li>
  <li>`created`: オーディエンスの作成日時（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.