> ## 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 廣告的成效數據，每則廣告每天一列，直接從 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` 中。僅當該幣別為 USD 時才會設定 `spendUsd`，否則為 `null`。</li>
  <li>由其他個人檔案推廣，或在其他社群平台上推廣的廣告，會返回 `code: 400`。</li>
  <li>同一請求中的所有廣告必須屬於同一個廣告帳戶。來自多個帳戶的廣告會返回 `code: 101`。</li>
  <li>完整結果會在同一頁中返回。`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.