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
履歴
ブーストしたReddit広告について、Ayrshareが記録した日次の費用とパフォーマンスを合計とともに取得します。
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."
}
投稿をブーストで作成したReddit広告について、Ayrshareが記録した日次の費用とパフォーマンスを取得します。リアルタイムの数値にはインサイトを使用してください。
historyの各エントリは、1つの広告の1日分で、新しい順に並びます。- 何も見つからない場合でも、レスポンスは成功になります。
historyは空になり、warningsにはcode: 401のエントリが1件含まれます。 spendは広告アカウントの通貨で、通貨はcurrencyに示されます。spendUsdはその通貨がUSDの場合にのみ設定され、それ以外の場合はnullになります。totalSpendは常にnullです。totalSpendByCurrencyを使用してください。- Redditはこれらの日のリーチをレポートしないため、
reach、frequency、cppは0になります。 - フィルターは
adId、postId、accountId、socialPostIdの順に適用され、最初に送信されたものだけが使われます。
ヘッダーパラメータ
クエリパラメータ
このAyrshareの投稿IDからブーストした広告の日のみを返します。
このReddit投稿をプロモーションする広告の日のみを返します。IDは
t3_を付けずに小文字で送信してください。例: 1abc27。redditPostIdも同じフィールドとして受け付けます。返す行の最大数(新しい順)。各行は1つの広告の1日分なので、広告が複数ある場合、対象となる日数は
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."
}