Facebook Ad Details API
Get Facebook Ad Details via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by ScrapeCreators, pass parameters such as id, and retrieve structured data including returned aaa info value, returned credits charged field, returned credits remaining field, returned end date field, and returned is aaaeligible field to search interfaces and source review, and integration reference.
- Selected price
- $0.00188 / billing creditPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
Facebook Ad Details API
Prepare your request, then continue with your agent.
Selected price
$0.00188 / billing credit
A billing credit measures provider usage. Credits consumed depend on the operation and request options; one credit is not necessarily one call.
- Provider
- API
- Pricing
On this page
Overview
Facebook Ad Details API
Retrieve detailed information about a specific Facebook ad by its ID or URL. Review the optional inputs supported by the selected implementation. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | query: allow_long_transcription, get_transcript, id, url, trim, cache_max_age |
| Selected implementation | scrapecreators · Facebook Ad Details |
| Billing | Follow the selected implementation pricing, billing unit, quantity and charge rules |
What You Can Build
- Search interfaces and source review: Keep returned sources and query context together.
- Integration reference: Use the selected request format and keep source identifiers with the returned result.
Documented Response Fields
| Field | Meaning |
|---|---|
aaa_info |
Returned aaa info value (nullable in the reference) |
adArchiveID |
Returned ad archive id field |
credits_charged |
Returned credits charged field |
credits_remaining |
Returned credits remaining field |
endDate |
Returned end date field |
endDateString |
Returned end date string field |
isAAAEligible |
Returned is aaaeligible field |
isActive |
Returned is active field |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the supported inputs and set any required query value shown in the template.
- Check the HTTP response and business result before reading optional fields.
curl \
'https://api.openany.si/v1/agent-apis/scrapecreators/v1/facebook/adLibrary/ad?id=702369045530963' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
Request and Response Examples
The response is a published documentation reference; its values may be historical. The request is an independent calling template. Use current returned identifiers and optional fields for your target resource.
Published Facebook Ad Details API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
scrapecreatorsCurrent Facebook Ad Details · GET · View API reference | $0.00188 / billing credit | 0 | —successP50— |
- Unit price
- $0.00188
A billing credit measures provider usage. Credits consumed depend on the operation and request options; one credit is not necessarily one call.
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 7. Price update time: not supplied.
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/scrapecreators/v1/facebook/adLibrary/ad- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
allow_long_transcription | URL query parametersquery | boolean | No | Paid opt-in, enabled only by the literal query value 'true' (allow_long_transcription=true). Defaults to false when omitted; other values do not enable paid mode. By default, successful AI transcription of videos up to 120 seconds (two minutes, inclusive) costs a flat 1 credit per request. Over 120 seconds, videos cannot be AI-transcribed by default. Set allow_long_transcription=true to opt into paid AI with no fixed duration cap: ALL successful AI transcriptions in this mode cost 10 credits per started minute, including short videos: 10 * ceil(duration_seconds / 60). For example, 177 seconds costs 30 credits and an opted-in 60 seconds costs 10 credits. Empty AI results and errors cost 0 credits for AI transcription. This flag does not force AI and does not enable transcription or AI fallback by itself. Keep get_transcript=true or use_ai_as_fallback=true where required by the endpoint. Returned native captions still cost 1 credit on dedicated transcript routes, even for long videos with this flag; on detail routes they leave the base price unchanged. These routes remain synchronous. Allow at least 30 seconds on your client. Paid long transcription can exceed resource limits or timeouts, so successful transcription of long videos is not guaranteed. |
get_transcript | URL query parametersquery | boolean | No | Transcription is opt-in via get_transcript=true. Default short AI (up to 120 seconds, inclusive) is included in the existing base endpoint price, with no extra AI fee. By default, successful AI transcription of videos up to 120 seconds (two minutes, inclusive) costs a flat 1 credit per request. Over 120 seconds, videos cannot be AI-transcribed by default. Set allow_long_transcription=true to opt into paid AI with no fixed duration cap: ALL successful AI transcriptions in this mode cost 10 credits per started minute, including short videos: 10 * ceil(duration_seconds / 60). For example, 177 seconds costs 30 credits and an opted-in 60 seconds costs 10 credits. Empty AI results and errors cost 0 credits for AI transcription. On detail routes, successful paid-mode AI costs are in addition to the existing base endpoint cost; media-download pricing is unchanged. Returned native captions leave the base endpoint price unchanged. Empty AI results and errors incur no AI fee; the base scrape fee still applies when the detail scrape succeeds. These routes remain synchronous. Allow at least 30 seconds on your client. Paid long transcription can exceed resource limits or timeouts, so successful transcription of long videos is not guaranteed. |
id | URL query parametersquery | string | No | Facebook Ad Id |
url | URL query parametersquery | string | No | Facebook Ad URL |
trim | URL query parametersquery | boolean | No | Set to true for a trimmed down version of the response |
cache_max_age | URL query parametersquery | string | 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; default short AI is included; allow_long_transcription=true adds 10 credits per started minute to the existing base cost). [See the Caching page for details.](https://docs.scrapecreators.com/caching) enum: "1d", "3d", "7d", "14d", "30d" |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
aaa_infonulladArchiveIDintegercredits_chargedintegercredits_remainingintegerendDateintegerendDateStringstringisAAAEligiblebooleanisActivebooleanpageIDintegerpageNamestringpoliticalCountriesunknown[]publisherPlatformstring[]reachEstimatenullsnapshotobjectad_creative_idintegeradditional_infonullbodystringbody_translationsobjectbranded_contentnullbrazil_tax_idnullbylinenullcaptionstringcardsunknown[]country_iso_codenullcreation_timeintegercta_textstringcta_typestringcurrent_page_namestringdisclaimer_labelnulldisplay_formatstringdynamic_item_flagsobjectdynamic_versionsnullec_certificatesnulledited_snapshotsunknown[]effective_authorization_categorystringeventunknown[]extra_imagesobject[]original_image_handlestringresized_image_handlestring
extra_linksstring[]extra_textsunknown[]extra_videosunknown[]imagesobject[]image_cropsobjectoriginal_image_urlstringresized_image_urlstringwatermarked_resized_image_urlstring
instagram_actor_namestringinstagram_branded_contentnullinstagram_handlestringinstagram_profile_pic_urlstringinstagram_shopping_productsunknown[]instagram_urlstringis_resharedbooleanlink_descriptionnulllink_urlstringpage_categoriesobject1713352298924731string
page_entity_typestringpage_idintegerpage_is_deletedbooleanpage_is_profile_pagebooleanpage_like_countintegerpage_namestringpage_profile_picture_urlstringpage_profile_uristringpage_welcome_messagenullroot_reshared_postnulltitlestringversionintegervideosunknown[]
spendnullstartDateintegerstartDateStringstringsuccessbooleantotalActiveTimeintegerurlstring
Usage billing
A billing credit measures provider usage. Credits consumed depend on the operation and request options; one credit is not necessarily one call.
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example · Ad ID
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 6
Review these request fields before running. Keep the published provider and request method unchanged.
allow_long_transcription- Paid opt-in, enabled only by the literal query value 'true' (allow_long_transcription=true). Defaults to false when omitted; other values do not enable paid mode. By default, successful AI transcription of videos up to 120 seconds (two minutes, inclusive) costs a flat 1 credit per request. Over 120 seconds, videos cannot be AI-transcribed by default. Set allow_long_transcription=true to opt into paid AI with no fixed duration cap: ALL successful AI transcriptions in this mode cost 10 credits per started minute, including short videos: 10 * ceil(duration_seconds / 60). For example, 177 seconds costs 30 credits and an opted-in 60 seconds costs 10 credits. Empty AI results and errors cost 0 credits for AI transcription. This flag does not force AI and does not enable transcription or AI fallback by itself. Keep get_transcript=true or use_ai_as_fallback=true where required by the endpoint. Returned native captions still cost 1 credit on dedicated transcript routes, even for long videos with this flag; on detail routes they leave the base price unchanged. These routes remain synchronous. Allow at least 30 seconds on your client. Paid long transcription can exceed resource limits or timeouts, so successful transcription of long videos is not guaranteed.
get_transcript- Transcription is opt-in via get_transcript=true. Default short AI (up to 120 seconds, inclusive) is included in the existing base endpoint price, with no extra AI fee. By default, successful AI transcription of videos up to 120 seconds (two minutes, inclusive) costs a flat 1 credit per request. Over 120 seconds, videos cannot be AI-transcribed by default. Set allow_long_transcription=true to opt into paid AI with no fixed duration cap: ALL successful AI transcriptions in this mode cost 10 credits per started minute, including short videos: 10 * ceil(duration_seconds / 60). For example, 177 seconds costs 30 credits and an opted-in 60 seconds costs 10 credits. Empty AI results and errors cost 0 credits for AI transcription. On detail routes, successful paid-mode AI costs are in addition to the existing base endpoint cost; media-download pricing is unchanged. Returned native captions leave the base endpoint price unchanged. Empty AI results and errors incur no AI fee; the base scrape fee still applies when the detail scrape succeeds. These routes remain synchronous. Allow at least 30 seconds on your client. Paid long transcription can exceed resource limits or timeouts, so successful transcription of long videos is not guaranteed.
id- Facebook Ad Id
url- Facebook Ad URL
trim- Set to true for a trimmed down version of the response
cache_max_age- 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; default short AI is included; allow_long_transcription=true adds 10 credits per started minute to the existing base cost). [See the Caching page for details.](https://docs.scrapecreators.com/caching)
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/scrapecreators/v1/facebook/adLibrary/ad?id=702369045530963' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "aaa_info": null, "adArchiveID": 1185617869915074, "credits_charged": 1, "credits_remaining": 1000000, "endDate": 1750316400, "endDateString": "2025-06-19T07:00:00.000Z", "isAAAEligible": false, "isActive": true, "pageID": 15087023444, "pageName": "Nike", "politicalCountries": [], "publisherPlatform": [ "facebook" ], "reachEstimate": null, "snapshot": { "ad_creative_id": 1809449763118705, "additional_info": null, "body": "Aprovechá 6 cuotas sin interés con todos los bancos. ¿Te lo vas a perder? Comprá ahora.", "body_translations": {}, "branded_content": null, "brazil_tax_id": null, "byline": null, "caption": "fb.com", "cards": [], "country_iso_code": null, "creation_time": 1750344986, "cta_text": "Learn more", "cta_type": "LEARN_MORE", "current_page_name": "Nike", "disclaimer_label": null, "display_format": "image", "dynamic_item_flags": {}, "dynamic_versions": null, "ec_certificates": null, "edited_snapshots": [], "effective_authorization_category": "NONE", "event": [], "extra_images": [ { "original_image_handle": "https://scontent-ord5-1.xx.fbcdn.net/v/t39.35426-6/508997149_744746594672572_3057533797808431470_n.jpg?_nc_cat=108&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=eKgqs7-b06UQ7kNvwGSYm41&_nc_oc=AdnV_v1Anh3aqBBXDa3xwDrMtLJUCvE8yKIgP5ODbX3xsSMCtTv2ucMTy36I8Bq20HU&_nc_zt=14&_nc_ht=scontent-ord5-1.xx&_nc_gid=ocFZ2kPWmNZ0nKyk5HCtkQ&oh=00_AfNfDJHp6d0Ie9tIXLBIXFQiMgWHVl1i48DahYYOgANgHg&oe=685A4B4A", "resized_image_handle": "https://scontent-ord5-1.xx.fbcdn.net/v/t39.35426-6/508997149_744746594672572_3057533797808431470_n.jpg?stp=dst-jpg_s600x600_tt6&_nc_cat=108&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=eKgqs7-b06UQ7kNvwGSYm41&_nc_oc=AdnV_v1Anh3aqBBXDa3xwDrMtLJUCvE8yKIgP5ODbX3xsSMCtTv2ucMTy36I8Bq20HU&_nc_zt=14&_nc_ht=scontent-ord5-1.xx&_nc_gid=ocFZ2kPWmNZ0nKyk5HCtkQ&oh=00_AfMe107fPkaznD6Pw8_wDaon3p-31ZXLHIeglHU_P3NYNw&oe=685A4B4A" } ], "extra_links": [ "https://www.nike.com.ar/" ], "extra_texts": [], "extra_videos": [], "images": [ { "image_crops": {}, "original_image_url": "https://scontent-ord5-2.xx.fbcdn.net/v/t39.35426-6/499542231_3815578848587795_5060085138610262269_n.jpg?_nc_cat=104&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=yk26_frcPLkQ7kNvwF5EWnq&_nc_oc=Adk8Xjt1SjUg-mBxkm6iUuDfXpyGXD5G5g6PBae8g0WWsJT-MfnhNGII7JL-KM5MJBE&_nc_zt=14&_nc_ht=scontent-ord5-2.xx&_nc_gid=ocFZ2kPWmNZ0nKyk5HCtkQ&oh=00_AfP6zfVuLkcD2Zts0gItXp801QK1k0lhEfqwwdqfNAU9gw&oe=685A3E80", "resized_image_url": "https://scontent-ord5-3.xx.fbcdn.net/v/t39.35426-6/509090139_3448752085259208_8196922920009954562_n.jpg?stp=dst-jpg_s600x600_tt6&_nc_cat=107&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=tV3v2Y_NIh0Q7kNvwEMM-Vk&_nc_oc=AdnpccGMqNlM0k9O87VmMBIp9pGtj3l1dkO5HaKRCti2V4X6AKUn8BR08SXOc_Y-8TY&_nc_zt=14&_nc_ht=scontent-ord5-3.xx&_nc_gid=ocFZ2kPWmNZ0nKyk5HCtkQ&oh=00_AfPXGzKezcPJSpAq8Ql2Xgx6Rn0a3Poit-iTirfhAwuiHA&oe=685A5634", "watermarked_resized_image_url": "" } ], "instagram_actor_name": "Nike", "instagram_branded_content": null, "instagram_handle": "", "instagram_profile_pic_url": "https://scontent-ord5-3.xx.fbcdn.net/v/t39.35426-6/499229861_3519049748228633_8442052921006945421_n.jpg?_nc_cat=109&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=eJcuzztd8e4Q7kNvwEpFLbr&_nc_oc=AdlI7WAi5QRhAOZCLwHcU3ZgxpxWSTzJr9PjPiwtUN9U2mkMB49Surq8HsQcDWfnTVc&_nc_zt=14&_nc_ht=scontent-ord5-3.xx&_nc_gid=ocFZ2kPWmNZ0nKyk5HCtkQ&oh=00_AfNnIjlMGopiAeVY7yEOxCT0sEvrij87SMrpkGJHs1lT-w&oe=685A55E2", "instagram_shopping_products": [], "instagram_url": "", "is_reshared": false, "link_description": null, "link_url": "https://fb.com/canvas_doc/1952657995267951", "page_categories": { "1713352298924731": "Sportswear" }, "page_entity_type": "person_profile", "page_id": 15087023444, "page_is_deleted": false, "page_is_profile_page": false, "page_like_count": 37497720, "page_name": "Nike", "page_profile_picture_url": "https://scontent-ord5-2.xx.fbcdn.net/v/t39.35426-6/508670148_9776464209142246_4487234065380829819_n.jpg?stp=dst-jpg_s60x60_tt6&_nc_cat=105&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=Q0UJas7Kz2wQ7kNvwGKBRCa&_nc_oc=AdnobFr6ScYQJzp_Za4UEgMY34n373z6WuZwOA3h-ixlpbii4wA8lxcgAsbtBpCE3t4&_nc_zt=14&_nc_ht=scontent-ord5-2.xx&_nc_gid=ocFZ2kPWmNZ0nKyk5HCtkQ&oh=00_AfMlwCCMXN-4KPAZac9pYLWrHGZpld9SoTX1r9S9xRHB8Q&oe=685A5861", "page_profile_uri": "https://www.facebook.com/nike/", "page_welcome_message": null, "root_reshared_post": null, "title": "6 cuotas sin interés", "version": 3, "videos": [] }, "spend": null, "startDate": 1750316400, "startDateString": "2025-06-19T07:00:00.000Z", "success": true, "totalActiveTime": 23488, "url": "https://www.facebook.com/ads/library?id=1185617869915074" }