OpenAny
Get API keyAPI Key
APIDataDeveloper

facebook logo
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
USE THIS API

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
Connect your agent
On this page

Overview

Overview
Facebook Ad Details API

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

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the supported inputs and set any required query value shown in the template.
  3. Check the HTTP response and business result before reading optional fields.
bash
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

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Optional parameters (6)
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.
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.
Facebook Ad Id
Facebook Ad URL
Set to true for a trimmed down version of the response
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)

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
Facebook Ad Details · GET · View API reference$0.00188 / billing credit0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · scrapecreatorsUSD / billing credit
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
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
allow_long_transcriptionURL query parametersquerybooleanNo

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_transcriptURL query parametersquerybooleanNo

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.

idURL query parametersquerystringNo

Facebook Ad Id

urlURL query parametersquerystringNo

Facebook Ad URL

trimURL query parametersquerybooleanNo

Set to true for a trimmed down version of the response

cache_max_ageURL query parametersquerystringNo

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

Inferred from examples
  • aaa_infonull
  • adArchiveIDinteger
  • credits_chargedinteger
  • credits_remaininginteger
  • endDateinteger
  • endDateStringstring
  • isAAAEligibleboolean
  • isActiveboolean
  • pageIDinteger
  • pageNamestring
  • politicalCountriesunknown[]
  • publisherPlatformstring[]
  • reachEstimatenull
  • snapshotobject
    • ad_creative_idinteger
    • additional_infonull
    • bodystring
    • body_translationsobject
    • branded_contentnull
    • brazil_tax_idnull
    • bylinenull
    • captionstring
    • cardsunknown[]
    • country_iso_codenull
    • creation_timeinteger
    • cta_textstring
    • cta_typestring
    • current_page_namestring
    • disclaimer_labelnull
    • display_formatstring
    • dynamic_item_flagsobject
    • dynamic_versionsnull
    • ec_certificatesnull
    • edited_snapshotsunknown[]
    • effective_authorization_categorystring
    • eventunknown[]
    • extra_imagesobject[]
      • original_image_handlestring
      • resized_image_handlestring
    • extra_linksstring[]
    • extra_textsunknown[]
    • extra_videosunknown[]
    • imagesobject[]
      • image_cropsobject
      • original_image_urlstring
      • resized_image_urlstring
      • watermarked_resized_image_urlstring
    • instagram_actor_namestring
    • instagram_branded_contentnull
    • instagram_handlestring
    • instagram_profile_pic_urlstring
    • instagram_shopping_productsunknown[]
    • instagram_urlstring
    • is_resharedboolean
    • link_descriptionnull
    • link_urlstring
    • page_categoriesobject
      • 1713352298924731string
    • page_entity_typestring
    • page_idinteger
    • page_is_deletedboolean
    • page_is_profile_pageboolean
    • page_like_countinteger
    • page_namestring
    • page_profile_picture_urlstring
    • page_profile_uristring
    • page_welcome_messagenull
    • root_reshared_postnull
    • titlestring
    • versioninteger
    • videosunknown[]
  • spendnull
  • startDateinteger
  • startDateStringstring
  • successboolean
  • totalActiveTimeinteger
  • urlstring

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.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect 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.

  1. 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 / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. 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 · cURL
    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'
  3. 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"
    }

Common questions

Does this implementation require business input parameters?

No business input is marked as required by the selected schema. Review any optional filters and the documented request format before calling.

Which values can I use for cache_max_age?

The selected schema accepts 1d, 3d, 7d, 14d, 30d. Keep the documented string type and exact spelling for this input.

Where do URL parameters belong?

Use the documented path and query inputs. This GET implementation does not use a JSON request body; keep path values and URL query values in their declared locations.

How should I map the returned fields?

Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

Which API key should I use?

Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

Where can I check the current request price?

Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

Use Facebook Ad Details API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.