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

# इतिहास

> आपके boosted Reddit ads के लिए Ayrshare द्वारा दर्ज किया गया दैनिक खर्च और प्रदर्शन, कुल योग के साथ पाएँ।

[Boost Post](https://www.ayrshare.com/docs/apis/ads/reddit/boost-post.md) से बनाए गए Reddit ads के लिए Ayrshare द्वारा दर्ज किया गया दैनिक खर्च और प्रदर्शन पाएँ। Live आँकड़ों के लिए [इनसाइट्स](https://www.ayrshare.com/docs/apis/ads/reddit/get-ad-insights.md) का उपयोग करें।

<ul>
  <li>`history` की हर entry एक दिन का एक ad है, सबसे नई पहले।</li>
  <li>कुछ न मिलने पर भी response success होता है: `history` खाली होता है और `warnings` में `code: 401` वाली एक entry होती है।</li>
  <li>`spend` ad account की currency में होता है, जो `currency` में दिखती है। `spendUsd` केवल तभी सेट होता है जब वह currency USD हो, अन्यथा यह `null` होता है। `totalSpend` हमेशा `null` होता है: `totalSpendByCurrency` का उपयोग करें।</li>
  <li>Reddit इन दिनों के लिए reach report नहीं करता, इसलिए `reach`, `frequency` और `cpp` का मान `0` होता है।</li>
  <li>Filters इस क्रम में लागू होते हैं, और भेजा गया सिर्फ़ पहला filter उपयोग होता है: `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 ad के दिन।

**postId** `string`

सिर्फ़ इस Ayrshare [post ID](https://www.ayrshare.com/docs/apis/overview.md#ayrshare-post-id) से boost किए गए ads के दिन।

**accountId** `string`

सिर्फ़ इस Reddit ad account के ads के दिन, उदाहरण के लिए `a2_abc123`।

**socialPostId** `string`

सिर्फ़ इस Reddit post को promote करने वाले ads के दिन। ID को `t3_` के बिना, lower case में भेजें, उदाहरण के लिए `1abc27`। `redditPostId` को इसी field के रूप में स्वीकार किया जाता है।

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

शामिल किया जाने वाला पहला दिन, ISO 8601 date के रूप में, उदाहरण के लिए `2026-11-01`।

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

शामिल किया जाने वाला आख़िरी दिन, ISO 8601 date के रूप में। यह `startDate` से पहले नहीं होना चाहिए।

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

लौटाई जाने वाली अधिकतम rows, सबसे नई पहले। हर row एक दिन का एक ad है, इसलिए कई ads होने पर यह `limit` से कम दिनों को कवर करता है। 300 से ऊपर के मान 300 पर सीमित कर दिए जाते हैं। कुल योग सिर्फ़ लौटाई गई rows को जोड़ते हैं: पूरी date range पाने के लिए तारीखें सीमित करें या `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.