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

# History

> Get the daily spend and performance Ayrshare has recorded for your boosted Reddit ads, with totals.

Get the daily spend and performance Ayrshare has recorded for the Reddit ads you created with [Boost Post](https://www.ayrshare.com/docs/apis/ads/reddit/boost-post.md). For live numbers, use [Insights](https://www.ayrshare.com/docs/apis/ads/reddit/get-ad-insights.md).

<ul>
  <li>Each entry in `history` is one ad on one day, newest first.</li>
  <li>When nothing is found, the answer is still a success: `history` is empty and `warnings` holds one entry with `code: 401`.</li>
  <li>`spend` is in the ad account's currency, shown in `currency`. `spendUsd` is set only when that currency is USD, and is `null` otherwise. `totalSpend` is always `null`: use `totalSpendByCurrency`.</li>
  <li>Reddit reports no reach for these days, so `reach`, `frequency` and `cpp` are `0`.</li>
  <li>Filters apply in this order, and only the first one sent is used: `adId`, `postId`, `accountId`, `socialPostId`.</li>
</ul>

## Header Parameters

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

**adId** `string`

Only the days of this Reddit ad.

**postId** `string`

Only the days of ads boosted from this Ayrshare [post ID](https://www.ayrshare.com/docs/apis/overview.md#ayrshare-post-id).

**accountId** `string`

Only the days of ads in this Reddit ad account, for example `a2_abc123`.

**socialPostId** `string`

Only the days of ads that promote this Reddit post. Send the ID without `t3_`, in lower case, for example `1abc27`. `redditPostId` is accepted as the same field.

**startDate** `string` (default: 30 days before endDate)

First day to include, as an ISO 8601 date, for example `2026-11-01`.

**endDate** `string` (default: now)

Last day to include, as an ISO 8601 date. Must not be before `startDate`.

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

The most rows to return, newest first. Each row is one ad on one day, so with several ads this covers fewer days than `limit`. Values above 300 are capped at 300. The totals add up only the rows returned: to get the whole date range, narrow the dates or raise `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.