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. spendUsd is the same spend in US dollars.
  • Non-USD spend is converted to USD at that day’s exchange rate from Open Exchange Rates. totalSpend, cpm, cpp, cpc, costPerResult and the goal spend totals are in US dollars.
  • totalSpendByCurrency gives the total spend in each currency before conversion. unconvertedRows counts the days not converted yet: they count at face value in totalSpend, and their spendUsd is null.
  • Spend from before October 2026 may show currency: "USD" even when the ad account uses another currency, and is counted in totalSpend as recorded.
  • The goalPerformance section highlights your best-performing ad objectives.
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 500.
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)