curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/snapchat/history?adId=c3a1e2d4-0000-4000-8000-0000000000ad&startDate=2026-11-20&endDate=2026-11-22"
{
"status": "success",
"history": [
{
"accountId": "5a0d0000-0000-4000-8000-000000000003",
"adId": "c3a1e2d4-0000-4000-8000-0000000000ad",
"adName": "Acme - Snap - 2026-11-20T15:04",
"budgetDaily": 20,
"budgetType": "",
"currency": "USD",
"deliveryStatus": null,
"goal": { "type": "brand_awareness" },
"isActive": true,
"isComplete": false,
"metrics": {
"clicks": 42,
"cpc": 0.43,
"cpp": 0,
"cpm": 4.5,
"ctr": 1.05,
"frequency": 0,
"impressions": 4000,
"reach": 0
},
"network": "snapchat",
"postId": "DE6gpw8kxlonHy6eb7L1",
"snapchatSnapId": "6f1c2d3e-0000-4000-8000-00000000000a",
"socialPostId": "6f1c2d3e-0000-4000-8000-00000000000a",
"spend": 18,
"spendDate": "2026-11-21T00:00:00.000Z",
"spendUsd": 18,
"status": "ACTIVE"
}
],
"dateRange": {
"start": "2026-11-20T00:00:00.000Z",
"end": "2026-11-22T00:00:00.000Z",
"adId": "c3a1e2d4-0000-4000-8000-0000000000ad"
},
"metrics": {
"totalSpend": null,
"totalSpendByCurrency": { "USD": 18 },
"totalClicks": 42,
"totalImpressions": 4000,
"totalReach": 0,
"averageCTR": 1.05,
"averageFrequency": 0,
"cpm": 4.5,
"cpp": 0,
"cpc": 0.43,
"costPerResult": 0.43,
"byGoalType": {
"brand_awareness": {
"spend": 18,
"impressions": 4000,
"clicks": 42,
"reach": 0,
"count": 1,
"ctr": 1.05,
"cpm": 4.5,
"cpp": 0,
"cpc": 0.42857142857142855
}
},
"byGoalTitle": {},
"goalPerformance": {
"bestPerformingGoalType": { "type": "brand_awareness", "clicks": 42, "spend": 18, "ctr": 1.05 },
"mostEfficientGoalType": { "type": "brand_awareness", "cpc": 0.43, "spend": 18 }
},
"count": 1,
"firstDay": "2026-11-21T00:00:00.000Z",
"lastDay": "2026-11-21T00:00:00.000Z"
}
}
{
"action": "request",
"status": "error",
"code": 101,
"message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
"details": "Invalid date format. Please use ISO 8601 format (YYYY-MM-DD)."
}
Snapchat Ads
History
Get the daily spend and performance of the Snapchat ads you boosted through Ayrshare, with totals per currency and date filters.
GET
/
ads
/
snapchat
/
history
curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/snapchat/history?adId=c3a1e2d4-0000-4000-8000-0000000000ad&startDate=2026-11-20&endDate=2026-11-22"
{
"status": "success",
"history": [
{
"accountId": "5a0d0000-0000-4000-8000-000000000003",
"adId": "c3a1e2d4-0000-4000-8000-0000000000ad",
"adName": "Acme - Snap - 2026-11-20T15:04",
"budgetDaily": 20,
"budgetType": "",
"currency": "USD",
"deliveryStatus": null,
"goal": { "type": "brand_awareness" },
"isActive": true,
"isComplete": false,
"metrics": {
"clicks": 42,
"cpc": 0.43,
"cpp": 0,
"cpm": 4.5,
"ctr": 1.05,
"frequency": 0,
"impressions": 4000,
"reach": 0
},
"network": "snapchat",
"postId": "DE6gpw8kxlonHy6eb7L1",
"snapchatSnapId": "6f1c2d3e-0000-4000-8000-00000000000a",
"socialPostId": "6f1c2d3e-0000-4000-8000-00000000000a",
"spend": 18,
"spendDate": "2026-11-21T00:00:00.000Z",
"spendUsd": 18,
"status": "ACTIVE"
}
],
"dateRange": {
"start": "2026-11-20T00:00:00.000Z",
"end": "2026-11-22T00:00:00.000Z",
"adId": "c3a1e2d4-0000-4000-8000-0000000000ad"
},
"metrics": {
"totalSpend": null,
"totalSpendByCurrency": { "USD": 18 },
"totalClicks": 42,
"totalImpressions": 4000,
"totalReach": 0,
"averageCTR": 1.05,
"averageFrequency": 0,
"cpm": 4.5,
"cpp": 0,
"cpc": 0.43,
"costPerResult": 0.43,
"byGoalType": {
"brand_awareness": {
"spend": 18,
"impressions": 4000,
"clicks": 42,
"reach": 0,
"count": 1,
"ctr": 1.05,
"cpm": 4.5,
"cpp": 0,
"cpc": 0.42857142857142855
}
},
"byGoalTitle": {},
"goalPerformance": {
"bestPerformingGoalType": { "type": "brand_awareness", "clicks": 42, "spend": 18, "ctr": 1.05 },
"mostEfficientGoalType": { "type": "brand_awareness", "cpc": 0.43, "spend": 18 }
},
"count": 1,
"firstDay": "2026-11-21T00:00:00.000Z",
"lastDay": "2026-11-21T00:00:00.000Z"
}
}
{
"action": "request",
"status": "error",
"code": 101,
"message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
"details": "Invalid date format. Please use ISO 8601 format (YYYY-MM-DD)."
}
Get the daily spend record of the Snapchat ads you created with Boost Post. Each entry in
history is one ad on one day.
- History is Ayrshare’s daily record of your spend, so today’s spend may not show yet. For live numbers, use Insights.
- An ad shows on each day Snapchat reports stats for it. Ads made in Snapchat Ads Manager are not included.
- When no days are found in the date range, the response is still a success:
historyis empty andwarningsholds one entry with code401. - Each day’s
spendis in the ad account’s currency, shown incurrency.totalSpendByCurrencygives the total in each currency. If your ad accounts use different currencies, filter byaccountId. clickscounts swipe-ups. Snapchat does not report daily reach, soreach,frequencyandcppare0.spendUsdis the day’sspendwhen the currency is USD, andnullotherwise.totalSpendis alwaysnull: usetotalSpendByCurrency.byGoalTypeandgoalPerformancegroup the numbers by the boost’s goal:brand_awareness,video_viewsortraffic.
Header Parameters
Query Parameters
Send at most one ofadId, postId, accountId and socialPostId. If you send more than one, the first in that order is used. Leave them all out to get every Snapchat ad.
Only the ads boosted from this Ayrshare post ID.
Only the ads boosted from this Snap: the
mediaId in the post’s Snapchat result. snapchatSnapId is accepted as the same parameter.Start of the date range, in ISO 8601 format, for example
2026-11-01.The most daily entries to return, newest first. Maximum is 300; higher values are capped at 300.
curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/snapchat/history?adId=c3a1e2d4-0000-4000-8000-0000000000ad&startDate=2026-11-20&endDate=2026-11-22"
{
"status": "success",
"history": [
{
"accountId": "5a0d0000-0000-4000-8000-000000000003",
"adId": "c3a1e2d4-0000-4000-8000-0000000000ad",
"adName": "Acme - Snap - 2026-11-20T15:04",
"budgetDaily": 20,
"budgetType": "",
"currency": "USD",
"deliveryStatus": null,
"goal": { "type": "brand_awareness" },
"isActive": true,
"isComplete": false,
"metrics": {
"clicks": 42,
"cpc": 0.43,
"cpp": 0,
"cpm": 4.5,
"ctr": 1.05,
"frequency": 0,
"impressions": 4000,
"reach": 0
},
"network": "snapchat",
"postId": "DE6gpw8kxlonHy6eb7L1",
"snapchatSnapId": "6f1c2d3e-0000-4000-8000-00000000000a",
"socialPostId": "6f1c2d3e-0000-4000-8000-00000000000a",
"spend": 18,
"spendDate": "2026-11-21T00:00:00.000Z",
"spendUsd": 18,
"status": "ACTIVE"
}
],
"dateRange": {
"start": "2026-11-20T00:00:00.000Z",
"end": "2026-11-22T00:00:00.000Z",
"adId": "c3a1e2d4-0000-4000-8000-0000000000ad"
},
"metrics": {
"totalSpend": null,
"totalSpendByCurrency": { "USD": 18 },
"totalClicks": 42,
"totalImpressions": 4000,
"totalReach": 0,
"averageCTR": 1.05,
"averageFrequency": 0,
"cpm": 4.5,
"cpp": 0,
"cpc": 0.43,
"costPerResult": 0.43,
"byGoalType": {
"brand_awareness": {
"spend": 18,
"impressions": 4000,
"clicks": 42,
"reach": 0,
"count": 1,
"ctr": 1.05,
"cpm": 4.5,
"cpp": 0,
"cpc": 0.42857142857142855
}
},
"byGoalTitle": {},
"goalPerformance": {
"bestPerformingGoalType": { "type": "brand_awareness", "clicks": 42, "spend": 18, "ctr": 1.05 },
"mostEfficientGoalType": { "type": "brand_awareness", "cpc": 0.43, "spend": 18 }
},
"count": 1,
"firstDay": "2026-11-21T00:00:00.000Z",
"lastDay": "2026-11-21T00:00:00.000Z"
}
}
{
"action": "request",
"status": "error",
"code": 101,
"message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
"details": "Invalid date format. Please use ISO 8601 format (YYYY-MM-DD)."
}