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
Historial
Obtén el gasto y el rendimiento diarios que Ayrshare ha registrado para tus anuncios impulsados de Reddit, con totales.
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."
}
Obtén el gasto y el rendimiento diarios que Ayrshare ha registrado para los anuncios de Reddit que creaste con Impulsar publicación. Para cifras en tiempo real, usa Insights.
- Cada entrada de
historyes un anuncio en un día, de la más reciente a la más antigua. - Cuando no se encuentra nada, la respuesta sigue siendo un éxito:
historyestá vacío ywarningscontiene una entrada concode: 401. spendestá en la moneda de la cuenta publicitaria, indicada encurrency.spendUsdsolo se establece cuando esa moneda es USD; en caso contrario, esnull.totalSpendsiempre esnull: usatotalSpendByCurrency.- Reddit no informa el alcance de estos días, por lo que
reach,frequencyycppson0. - Los filtros se aplican en este orden y solo se usa el primero que se envía:
adId,postId,accountId,socialPostId.
Parámetros del encabezado
Parámetros de consulta
Solo los días de los anuncios impulsados a partir de este ID de publicación de Ayrshare.
Solo los días de los anuncios que promocionan esta publicación de Reddit. Envía el ID sin
t3_, en minúsculas, por ejemplo 1abc27. redditPostId se acepta como el mismo campo.Primer día que se incluye, como fecha ISO 8601, por ejemplo
2026-11-01.Último día que se incluye, como fecha ISO 8601. No puede ser anterior a
startDate.El máximo de filas que se devuelven, de la más reciente a la más antigua. Cada fila es un anuncio en un día, así que con varios anuncios esto cubre menos días que
limit. Los valores superiores a 300 se limitan a 300. Los totales suman solo las filas devueltas: para obtener todo el rango de fechas, acota las fechas o aumenta 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."
}