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

# इनसाइट्स

> Ayrshare से boost किए गए Snapchat ads के लाइव दैनिक metrics पाएँ, जिनमें खर्च, impressions, swipe-ups, CPM, CPC और CTR शामिल हैं।

[Boost Post](https://www.ayrshare.com/docs/apis/ads/snapchat/boost-post.md) से बनाए गए ads के लिए Snapchat ad का लाइव प्रदर्शन पाएँ, हर ad के लिए हर दिन एक row।

<ul>
  <li>आँकड़े कॉल करते समय Snapchat से पढ़े जाते हैं। दैनिक खर्च रिकॉर्ड के लिए [इतिहास](https://www.ayrshare.com/docs/apis/ads/snapchat/get-ad-history.md) का उपयोग करें।</li>
  <li>Snapchat ad के स्तर पर report करता है, इसलिए `level=ad` भेजें। अन्य levels `code: 101` लौटाते हैं।</li>
  <li>दिन ad account के दिन होते हैं, उसके time zone में। पैसों के मान ad account की currency में होते हैं, जो हर row में `currency` में लौटाई जाती है।</li>
  <li>एक request एक ad account को कवर करता है। कई ad accounts के ads `code: 101` लौटाते हैं।</li>
  <li>किसी दूसरी profile के लिए Ayrshare से बनाया गया ad `code: 400` लौटाता है।</li>
  <li>हर ad को range के हर 31 दिनों के लिए Snapchat से एक बार पढ़ा जाता है, और एक request अधिकतम 100 ऐसे reads कर सकता है। उदाहरण के लिए, 62 दिनों में 50 ads = 100 reads। इससे बड़ा request `code: 101` लौटाता है: कम ads या छोटी range भेजें।</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`

Comma से अलग Snapchat ad IDs, अधिकतम 50।

आप `ids` छोड़कर उसकी जगह `accountId` भेज सकते हैं। यह उस ad account में इस profile के लिए Ayrshare से boost किए गए ads पर report करता है। अगर account में आपके 50 से ज़्यादा ads हैं, तो request `code: 101` लौटाता है: इसके बजाय उनके IDs भेजें। अगर कोई नहीं मिलता, तो report खाली होती है।

**accountId** `string`

Snapchat ad account ID। `ids` छोड़ने पर आवश्यक। `ids` के साथ, हर वह ad जिसका Ayrshare के पास रिकॉर्ड है, इसी account में होना चाहिए। जिस ID का Ayrshare के पास रिकॉर्ड नहीं है, उसे आपके उस ad account से पढ़ा जाता है जिसमें वह है, इसलिए `accountId` उसे सीमित नहीं करता।

**metrics** `string`

लौटाए जाने वाले metrics, comma से अलग। सभी पाने के लिए इसे छोड़ दें। देखें [Metrics](#metrics)।

**startDate** `string` (default: 30 days ago)

पहला दिन, `YYYY-MM-DD` के रूप में। यह अधिकतम 37 महीने पहले तक हो सकता है।

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

आखिरी दिन, `YYYY-MM-DD` के रूप में।

## Metrics

| Metric | Type | अर्थ |
| - | - | - |
| `spend` | number | खर्च की गई राशि |
| `impressions` | number | Ad कितनी बार दिखाया गया |
| `clicks` | number | Ad पर swipe-ups |
| `cpm` | number या `null` | प्रति 1,000 impressions लागत। बिना impressions वाले दिन `null` |
| `cpc` | number या `null` | प्रति swipe-up लागत। बिना swipe-ups वाले दिन `null` |
| `ctr` | number या `null` | प्रति impression swipe-ups, प्रतिशत में। बिना impressions वाले दिन `null` |

हर row में `swipes` भी होता है, जो `clicks` जितनी ही गिनती है, और `spendUsd`, जो currency USD होने पर `spend` होता है और अन्यथा `null`।

Snapchat दिन के हिसाब से `reach`, `actions` या `conversionValue` नहीं बताता। इन्हें माँगने पर `code: 101` लौटता है। Snapchat में breakdowns भी नहीं हैं, इसलिए `breakdowns` भेजने पर `code: 101` लौटता है।

## Paging

हर row एक ही response में आती है, इसलिए `meta.pagination.hasMore` हमेशा `false` होता है।

## Errors

| Code | कब |
| - | - |
| `101` | कोई parameter गायब या गलत है, `level` `ad` नहीं है, कोई metric या breakdown समर्थित नहीं है, `startDate` 37 महीने से पहले का है, 50 से ज़्यादा ids भेजे गए हैं, अकेला `accountId` आपके 50 से ज़्यादा ads कवर करता है, ads एक से ज़्यादा ad account में हैं, कोई ad `accountId` में नहीं है, या request को 100 से ज़्यादा reads चाहिए |
| `400` | कोई ad आपका नहीं है, या `accountId` वह ad account नहीं है जो Ayrshare के रिकॉर्ड में इन ads के लिए है |
| `364` | Snapchat की rate limit पूरी हो गई। एक मिनट रुककर फिर प्रयास करें |
| `370` | Snapchat insights नहीं लौटा सका। फिर प्रयास करें |

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

```json 200: Success theme={"system"}
{
  "status": "success",
  "platform": "snapchat",
  "level": "ad",
  "startDate": "2026-11-20",
  "endDate": "2026-11-21",
  "insights": [
    {
      "date": "2026-11-20",
      "level": "ad",
      "id": "c3a1e2d4-0000-4000-8000-0000000000ad",
      "currency": "USD",
      "spend": 12.5,
      "impressions": 3000,
      "clicks": 30,
      "cpm": 4.17,
      "cpc": 0.42,
      "ctr": 1,
      "swipes": 30,
      "spendUsd": 12.5
    },
    {
      "date": "2026-11-21",
      "level": "ad",
      "id": "c3a1e2d4-0000-4000-8000-0000000000ad",
      "currency": "USD",
      "spend": 18,
      "impressions": 4000,
      "clicks": 42,
      "cpm": 4.5,
      "cpc": 0.43,
      "ctr": 1.05,
      "swipes": 42,
      "spendUsd": 18
    }
  ],
  "count": 2,
  "meta": { "pagination": { "hasMore": false } }
}
```

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


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