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"
{
"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 } }
}
{
"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."
}
Snapchat Ads
इनसाइट्स
Ayrshare से boost किए गए Snapchat ads के लाइव दैनिक metrics पाएँ, जिनमें खर्च, impressions, swipe-ups, CPM, CPC और CTR शामिल हैं।
GET
/
ads
/
snapchat
/
insights
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"
{
"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 } }
}
{
"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."
}
Boost Post से बनाए गए ads के लिए Snapchat ad का लाइव प्रदर्शन पाएँ, हर ad के लिए हर दिन एक row।
हर row में
- आँकड़े कॉल करते समय Snapchat से पढ़े जाते हैं। दैनिक खर्च रिकॉर्ड के लिए इतिहास का उपयोग करें।
- Snapchat ad के स्तर पर report करता है, इसलिए
level=adभेजें। अन्य levelscode: 101लौटाते हैं। - दिन ad account के दिन होते हैं, उसके time zone में। पैसों के मान ad account की currency में होते हैं, जो हर row में
currencyमें लौटाई जाती है। - एक request एक ad account को कवर करता है। कई ad accounts के ads
code: 101लौटाते हैं। - किसी दूसरी profile के लिए Ayrshare से बनाया गया ad
code: 400लौटाता है। - हर ad को range के हर 31 दिनों के लिए Snapchat से एक बार पढ़ा जाता है, और एक request अधिकतम 100 ऐसे reads कर सकता है। उदाहरण के लिए, 62 दिनों में 50 ads = 100 reads। इससे बड़ा request
code: 101लौटाता है: कम ads या छोटी range भेजें।
हैडर पैरामीटर
क्वेरी पैरामीटर
Comma से अलग Snapchat ad IDs, अधिकतम 50।आप
ids छोड़कर उसकी जगह accountId भेज सकते हैं। यह उस ad account में इस profile के लिए Ayrshare से boost किए गए ads पर report करता है। अगर account में आपके 50 से ज़्यादा ads हैं, तो request code: 101 लौटाता है: इसके बजाय उनके IDs भेजें। अगर कोई नहीं मिलता, तो report खाली होती है।Snapchat ad account ID।
ids छोड़ने पर आवश्यक। ids के साथ, हर वह ad जिसका Ayrshare के पास रिकॉर्ड है, इसी account में होना चाहिए। जिस ID का Ayrshare के पास रिकॉर्ड नहीं है, उसे आपके उस ad account से पढ़ा जाता है जिसमें वह है, इसलिए accountId उसे सीमित नहीं करता।लौटाए जाने वाले metrics, comma से अलग। सभी पाने के लिए इसे छोड़ दें। देखें Metrics।
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 |
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 नहीं लौटा सका। फिर प्रयास करें |
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"
{
"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 } }
}
{
"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."
}