curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/reddit/history?adId=2707300000000000001&startDate=2026-11-20"
{
"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"
}
}
{
"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."
}
Reddit Ads
Історія
Отримуйте щоденні витрати й показники, які Ayrshare зафіксував для ваших просунутих оголошень Reddit, з підсумками.
GET
/
ads
/
reddit
/
history
curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/reddit/history?adId=2707300000000000001&startDate=2026-11-20"
{
"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"
}
}
{
"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."
}
Отримуйте щоденні витрати й показники, які Ayrshare зафіксував для оголошень Reddit, створених через Просування допису. Для актуальних даних використовуйте Insights.
- Кожен запис у
history— одне оголошення за один день, від найновіших. - Якщо нічого не знайдено, відповідь усе одно успішна:
historyпорожній, аwarningsмістить один запис ізcode: 401. spendвказано у валюті рекламного облікового запису, яку показуєcurrency.spendUsdзаповнюється лише тоді, коли ця валюта USD, в іншому разі він дорівнюєnull.totalSpendзавждиnull: використовуйтеtotalSpendByCurrency.- Reddit не повідомляє охоплення за ці дні, тому
reach,frequencyіcppдорівнюють0. - Фільтри застосовуються в такому порядку, і використовується лише перший надісланий:
adId,postId,accountId,socialPostId.
Параметри заголовка
Параметри запиту
Лише дні оголошень, просунутих з цього ID допису Ayrshare.
Лише дні оголошень, які просувають цей допис Reddit. Надсилайте ID без
t3_, у нижньому регістрі, наприклад 1abc27. redditPostId приймається як те саме поле.Перший день, який потрібно включити, як дата ISO 8601, наприклад
2026-11-01.Останній день, який потрібно включити, як дата ISO 8601. Не може бути раніше за
startDate.Максимальна кількість рядків у відповіді, від найновіших. Кожен рядок — одне оголошення за один день, тож за кількох оголошень це охоплює менше днів, ніж
limit. Значення понад 300 обмежуються до 300. Підсумки враховують лише повернені рядки: щоб отримати весь діапазон дат, звузьте дати або збільште limit.curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/reddit/history?adId=2707300000000000001&startDate=2026-11-20"
{
"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"
}
}
{
"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."
}