> ## 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広告の日次の費用、インプレッション、クリックをリアルタイムで取得します。

[投稿をブースト](https://www.ayrshare.com/docs/apis/ads/reddit/boost-post.md)で作成したReddit広告のパフォーマンスの数値を、広告ごと・日ごとに1行で、Redditからリアルタイムに取得します。

<ul>
  <li>Redditのインサイトは広告単位でのみレポートします。`level=ad`を送信してください。それ以外のレベルには`code: 101`が返されます。</li>
  <li>`ids`で最大50件の広告を指定するか、`accountId`のみを送信してそのアカウント内でブーストした広告についてレポートします。アカウント内にお客様の広告が50件を超える場合は`code: 101`が返されます。その場合は広告を指定してください。</li>
  <li>期間は、両端の日を含めて最大90日で、送信した`endDate`を基準に計算されます。日付を指定しない場合は、直近30日と今日が対象です。`startDate`は最大37か月前まで指定でき、未来の日付は指定できません。今日より後の`endDate`は今日に切り詰められます。</li>
  <li>Redditでは`reach`、`actions`、`conversionValue`はレポートされません。`metrics`でこれらを指定すると`code: 101`が返されます。Redditは`breakdowns`を受け付けません。</li>
  <li>`spend`は広告アカウントの通貨で、通貨は`currency`に示されます。`spendUsd`はその通貨がUSDの場合にのみ設定され、それ以外の場合は`null`になります。</li>
  <li>別のプロフィールがブーストした広告、または別のネットワークでブーストされた広告には`code: 400`が返されます。</li>
  <li>1回のリクエストに含まれる広告は、すべて同じ広告アカウントのものである必要があります。複数のアカウントの広告を指定すると`code: 101`が返されます。</li>
  <li>結果はすべて1ページで返されます。`meta.pagination.hasMore`は常に`false`です。</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`

## クエリパラメータ

**level** `string` *required*

`ad`である必要があります。

**ids** `string`

Redditの広告ID。カンマ区切り（`ids=2707300000000000001,2707300000000000002`）または繰り返しで指定します。最大50件。`accountId`を送信しない場合は必須です。

**accountId** `string`

Redditの広告アカウントID。例: `a2_abc123`。`ids`を送信しない場合は必須です。`ids`と一緒に送信する場合は、それらの広告が属するアカウントである必要があります。そうでない場合は`code: 400`が返されます。

**metrics** `string`

返す指標。カンマ区切りまたは繰り返しで指定します: `spend`、`impressions`、`clicks`、`cpm`、`cpc`、`ctr`。デフォルトはすべての指標です。

**startDate** `string` (default: 30日前)

最初の日（`YYYY-MM-DD`形式、UTC）。

**endDate** `string` (default: 今日)

最後の日（`YYYY-MM-DD`形式、UTC）。`startDate`より前にはできません。

```bash cURL theme={"system"}
curl \
  -H "Authorization: Bearer API_KEY" \
  -X GET "https://api.ayrshare.com/api/ads/reddit/insights?level=ad&ids=2707300000000000001&startDate=2026-11-20&endDate=2026-11-21"
```

```json 200: Success theme={"system"}
{
  "status": "success",
  "platform": "reddit",
  "level": "ad",
  "startDate": "2026-11-20",
  "endDate": "2026-11-21",
  "insights": [
    {
      "date": "2026-11-20",
      "level": "ad",
      "id": "2707300000000000001",
      "currency": "USD",
      "spend": 6.1,
      "impressions": 1800,
      "clicks": 27,
      "cpm": 3.39,
      "cpc": 0.23,
      "ctr": 1.5,
      "spendUsd": 6.1
    },
    {
      "date": "2026-11-21",
      "level": "ad",
      "id": "2707300000000000001",
      "currency": "USD",
      "spend": 8.4,
      "impressions": 2400,
      "clicks": 42,
      "cpm": 3.5,
      "cpc": 0.2,
      "ctr": 1.75,
      "spendUsd": 8.4
    }
  ],
  "count": 2,
  "meta": {
    "pagination": { "hasMore": false }
  }
}
```

```json 400: Unsupported level 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": "Insights on reddit report by ad: use level \"ad\" with the ad ids."
}
```

```json 400: Window too long 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": "Insights on reddit cover at most 90 days per request."
}
```


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