> ## 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広告について、Ayrshareが記録した日次の費用とパフォーマンスを合計とともに取得します。

[投稿をブースト](https://www.ayrshare.com/docs/apis/ads/reddit/boost-post.md)で作成したReddit広告について、Ayrshareが記録した日次の費用とパフォーマンスを取得します。リアルタイムの数値には[インサイト](https://www.ayrshare.com/docs/apis/ads/reddit/get-ad-insights.md)を使用してください。

<ul>
  <li>`history`の各エントリは、1つの広告の1日分で、新しい順に並びます。</li>
  <li>何も見つからない場合でも、レスポンスは成功になります。`history`は空になり、`warnings`には`code: 401`のエントリが1件含まれます。</li>
  <li>`spend`は広告アカウントの通貨で、通貨は`currency`に示されます。`spendUsd`はその通貨がUSDの場合にのみ設定され、それ以外の場合は`null`になります。`totalSpend`は常に`null`です。`totalSpendByCurrency`を使用してください。</li>
  <li>Redditはこれらの日のリーチをレポートしないため、`reach`、`frequency`、`cpp`は`0`になります。</li>
  <li>フィルターは`adId`、`postId`、`accountId`、`socialPostId`の順に適用され、最初に送信されたものだけが使われます。</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`

## クエリパラメータ

**adId** `string`

このReddit広告の日のみを返します。

**postId** `string`

このAyrshareの[投稿ID](https://www.ayrshare.com/docs/apis/overview.md#ayrshare-post-id)からブーストした広告の日のみを返します。

**accountId** `string`

このRedditの広告アカウント内の広告の日のみを返します。例: `a2_abc123`。

**socialPostId** `string`

このReddit投稿をプロモーションする広告の日のみを返します。IDは`t3_`を付けずに小文字で送信してください。例: `1abc27`。`redditPostId`も同じフィールドとして受け付けます。

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

対象とする最初の日（ISO 8601形式の日付）。例: `2026-11-01`。

**endDate** `string` (default: 現在)

対象とする最後の日（ISO 8601形式の日付）。`startDate`より前にはできません。

**limit** `number` (default: 25)

返す行の最大数（新しい順）。各行は1つの広告の1日分なので、広告が複数ある場合、対象となる日数は`limit`より少なくなります。300を超える値は300に制限されます。合計は返された行だけを集計します。期間全体を取得するには、期間を狭めるか`limit`を増やしてください。

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

```json 200: Success theme={"system"}
{
  "status": "success",
  "history": [
    {
      "accountId": "a2_abc123",
      "adId": "2707300000000000001",
      "adName": "Spring sale",
      "budgetDaily": 50,
      "budgetType": "",
      "currency": "USD",
      "deliveryStatus": null,
      "goal": { "type": "website_visits" },
      "isActive": true,
      "isComplete": false,
      "metrics": {
        "clicks": 42,
        "cpc": 0.2,
        "cpp": 0,
        "cpm": 3.5,
        "ctr": 1.75,
        "frequency": 0,
        "impressions": 2400,
        "reach": 0
      },
      "network": "reddit",
      "postId": "DE6gpw8kxlonHy6eb721",
      "redditPostId": "1abc27",
      "socialPostId": "1abc27",
      "spend": 8.4,
      "spendDate": "2026-11-21T00:00:00.000Z",
      "spendUsd": 8.4,
      "status": "ACTIVE"
    }
  ],
  "dateRange": {
    "start": "2026-11-20T00:00:00.000Z",
    "end": "2026-12-02T10:15:00.000Z",
    "adId": "2707300000000000001"
  },
  "metrics": {
    "totalSpend": null,
    "totalSpendByCurrency": { "USD": 8.4 },
    "totalClicks": 42,
    "totalImpressions": 2400,
    "totalReach": 0,
    "averageCTR": 1.75,
    "averageFrequency": 0,
    "cpm": 3.5,
    "cpp": 0,
    "cpc": 0.2,
    "costPerResult": 0.2,
    "byGoalType": {
      "website_visits": {
        "spend": 8.4,
        "impressions": 2400,
        "clicks": 42,
        "reach": 0,
        "count": 1,
        "ctr": 1.75,
        "cpm": 3.5,
        "cpp": 0,
        "cpc": 0.2
      }
    },
    "byGoalTitle": {},
    "goalPerformance": {
      "bestPerformingGoalType": { "type": "website_visits", "clicks": 42, "spend": 8.4, "ctr": 1.75 },
      "mostEfficientGoalType": { "type": "website_visits", "cpc": 0.2, "spend": 8.4 }
    },
    "count": 1,
    "firstDay": "2026-11-21T00:00:00.000Z",
    "lastDay": "2026-11-21T00:00:00.000Z"
  }
}
```

```json 400: Bad dates 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": "Start date must be before end date."
}
```


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