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 التي أنشأتها باستخدام تعزيز المنشور. للحصول على أرقام مباشرة، استخدم الرؤى.
- يمثّل كل إدخال في
historyإعلانًا واحدًا في يوم واحد، الأحدث أولًا. - عندما لا يُعثر على شيء، تظل الاستجابة ناجحة: تكون
historyفارغة، وتتضمنwarningsإدخالًا واحدًا معcode: 401. - يكون
spendبعملة حساب الإعلانات، الموضّحة فيcurrency. لا يتم تعيينspendUsdإلا عندما تكون هذه العملة USD، وتكون قيمتهnullفي غير ذلك. تكونtotalSpendدائمًاnull: استخدمtotalSpendByCurrency. - لا يُبلغ Reddit عن مدى الوصول لهذه الأيام، لذا تكون
reachوfrequencyوcppمساوية لـ0. - تُطبَّق عوامل التصفية بهذا الترتيب، ولا يُستخدم إلا أول عامل مُرسَل:
adId،postId،accountId،socialPostId.
معاملات الترويسة
معاملات الاستعلام
أيام الإعلانات المُعزَّزة من معرّف منشور Ayrshare هذا فقط.
أيام الإعلانات التي تروّج لمنشور Reddit هذا فقط. أرسل المعرّف بدون
t3_، وبأحرف صغيرة، على سبيل المثال 1abc27. يُقبل redditPostId باعتباره الحقل نفسه.أول يوم يُضمَّن، كتاريخ بتنسيق ISO 8601، على سبيل المثال
2026-11-01.أقصى عدد من الصفوف المُرجَعة، الأحدث أولًا. يمثّل كل صف إعلانًا واحدًا في يوم واحد، لذا مع عدة إعلانات يغطي ذلك أيامًا أقل من
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."
}