curl --request GET \
--url https://api.sociavault.com/v1/scrape/facebook-ad-library/ad-details \
--header 'X-API-Key: <api-key>'Get details for a specific Facebook Ad Library entry by Ad ID. For ads with multiple versions, the title should be sourced from the cards object in the response.
curl --request GET \
--url https://api.sociavault.com/v1/scrape/facebook-ad-library/ad-details \
--header 'X-API-Key: <api-key>'Documentation Index
Fetch the complete documentation index at: https://docs.sociavault.com/llms.txt
Use this file to discover all available pages before exploring further.
Facebook Ad Id
"702369045530963"
Facebook Ad URL
"https://www.facebook.com/ads/library?id=1185617869915074"
Get the transcript of the ad. This is a new feature, so let me know if its not working how you expected.
false
Set to true for a trimmed down version of the response
false
Successful response
Key Response Fields:
data.adArchiveID: The actual ad ID (note: adid is always 0 — always use adArchiveID)data.isActive: Whether the ad is currently runningdata.pageName: Name of the Facebook page running the addata.pageID: Facebook page IDdata.startDateString: ISO timestamp of when the ad started runningdata.endDateString: ISO timestamp of when the ad stopped (or is scheduled to stop)data.publisherPlatform: Platforms the ad runs on (e.g., facebook, instagram, messenger)data.snapshot.title: Ad headline/titledata.snapshot.body: Ad body copydata.snapshot.cta_text: Call-to-action button text (e.g., "Install Now", "Shop Now")data.snapshot.cta_type: CTA type identifier (e.g., "INSTALL_MOBILE_APP", "SHOP_NOW")data.snapshot.cards[0].title: Title from the first carousel card (for multi-creative ads)data.snapshot.cards[0].body: Body text from the first carousel card