Skip to main content
GET
Retrieve detailed daily ad spend and performance metrics for your Facebook ads. This endpoint provides comprehensive analytics on your ads with daily breakdowns, goal-specific performance, and aggregated metrics.
The history array contains historical daily spend and performance metrics for each ad. The data is as of 8 AM EST. If real-time spend data is needed or spend has not yet occurred, please use the ads endpoint.The ad will NOT be returned if no spend data is available or spend has not yet occurred.When no ad has spend in the date range, the response is still a success: history is empty and warnings holds one entry with code 401.
  • Metrics are calculated from Facebook’s reporting API and may have slight delays (up to 24 hours).
  • The byGoalType and byGoalTitle sections group performance metrics by goal objectives.
  • Use either adId or postId filters to narrow results to specific campaigns.
  • Each day’s spend is in the ad account’s currency, shown in currency.
  • totalSpendByCurrency gives the total spend in each currency. cpm, cpp, cpc, costPerResult and the goal spend totals add each day’s spend as it is, so they are in the ad account’s currency. If your ad accounts use different currencies, filter by accountId.
  • Spend from before October 2026 may show currency: "USD" even when the ad account uses another currency.
  • The goalPerformance section highlights your best-performing ad objectives.
Spend is no longer converted to US dollars. totalSpend answers null, and each day’s spendUsd is its spend on a USD day and null on any other. Use totalSpendByCurrency and spend instead. unconvertedRows is no longer returned.
This endpoint only returns Facebook ads created via the Boost Post endpoint. Ads created in Facebook Ads Manager or other third-party tools are not returned.

Header Parameters

Query Parameters

string
Filter results to a specific account ID.
string
Filter results to a specific ad ID.
string
Filter results to ads associated with a specific Ayrshare post ID.
string
Filter results to ads associated with a specific Facebook social post ID.
number
default:25
Retrieve a maximum of limit ads. Maximum is 300; higher values are capped at 300.
string
default:"30 days ago"
Start date for the reporting period in ISO 8601 format (default: 30 days ago)
string
default:"today"
End date for the reporting period in ISO 8601 format (default: today)