Ad Details
facebook_ad_library_ad_detailsRetrieve detailed Facebook ad data by ID or URL, including status, dates, creative snapshot, and transparency metrics.
Instructions
Retrieves detailed information about a specific Facebook ad by its ID or URL. Returns adArchiveID, pageName, isActive, startDate, endDate, and a snapshot containing body, images, videos, display_format, link_url, and cta_text. Regulated ads may also include source-dependent aaa_info using the structure shown below. Political and social issue delivery data is normalized to location_audience and age_country_gender_reach_breakdown. Political location_audience rows include reach, and political delivery values are fractional shares, so 0.08 means 8%. Regional transparency data may use absolute reach counts. For ads with multiple versions, the ad creative is found in the snapshot.cards array rather than snapshot.body. Potentially consumes paid API credits; requires confirm=true. Read-like POST requests do not publish to social platforms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Facebook Ad Id | |
| url | No | Facebook Ad URL | |
| trim | No | Set to true for a trimmed down version of the response | |
| account | No | Named private ScrapeCreators account; selects credentials, not a remote account ID. | |
| confirm | No | Must be true for the specific approved credit-consuming research call. | |
| cache_max_age | No | If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "cached_at" timestamp). Otherwise, scrape a live result (1 credit). [See the Caching page for details.](https://docs.scrapecreators.com/caching) |