# Facebook Ad Details

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.

Documentation: https://openany.si/market/apis/facebook/facebook-ad-details-f10649c1/?offering=ecb12733-74f2-4651-a776-1f5bcc72f6f0
API ID: ecb12733-74f2-4651-a776-1f5bcc72f6f0
Provider: scrapecreators
Contract revision: 7
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/scrapecreators/v1/facebook/adLibrary/ad
Page update time: 2026-12-03T02:50:43.758Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
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.
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:50:43.125Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "usage",
  "priceMicroUsd": "1880",
  "rounding": "ceil",
  "unit": "credit",
  "unitQuantity": "1"
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Facebook Ad Details request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "allow_long_transcription": {
          "type": "boolean",
          "description": "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": {
          "type": "boolean",
          "description": "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": {
          "type": "string",
          "description": "Facebook Ad Id"
        },
        "url": {
          "type": "string",
          "description": "Facebook Ad URL"
        },
        "trim": {
          "type": "boolean",
          "description": "Set to true for a trimmed down version of the response"
        },
        "cache_max_age": {
          "type": "string",
          "description": "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"
          ]
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "aaa_info": {
      "type": "null"
    },
    "adArchiveID": {
      "type": "integer"
    },
    "credits_charged": {
      "type": "integer"
    },
    "credits_remaining": {
      "type": "integer"
    },
    "endDate": {
      "type": "integer"
    },
    "endDateString": {
      "type": "string"
    },
    "isAAAEligible": {
      "type": "boolean"
    },
    "isActive": {
      "type": "boolean"
    },
    "pageID": {
      "type": "integer"
    },
    "pageName": {
      "type": "string"
    },
    "politicalCountries": {
      "type": "array",
      "items": {}
    },
    "publisherPlatform": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "reachEstimate": {
      "type": "null"
    },
    "snapshot": {
      "type": "object",
      "properties": {
        "ad_creative_id": {
          "type": "integer"
        },
        "additional_info": {
          "type": "null"
        },
        "body": {
          "type": "string"
        },
        "body_translations": {
          "type": "object",
          "properties": {}
        },
        "branded_content": {
          "type": "null"
        },
        "brazil_tax_id": {
          "type": "null"
        },
        "byline": {
          "type": "null"
        },
        "caption": {
          "type": "string"
        },
        "cards": {
          "type": "array",
          "items": {}
        },
        "country_iso_code": {
          "type": "null"
        },
        "creation_time": {
          "type": "integer"
        },
        "cta_text": {
          "type": "string"
        },
        "cta_type": {
          "type": "string"
        },
        "current_page_name": {
          "type": "string"
        },
        "disclaimer_label": {
          "type": "null"
        },
        "display_format": {
          "type": "string"
        },
        "dynamic_item_flags": {
          "type": "object",
          "properties": {}
        },
        "dynamic_versions": {
          "type": "null"
        },
        "ec_certificates": {
          "type": "null"
        },
        "edited_snapshots": {
          "type": "array",
          "items": {}
        },
        "effective_authorization_category": {
          "type": "string"
        },
        "event": {
          "type": "array",
          "items": {}
        },
        "extra_images": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "original_image_handle": {
                "type": "string"
              },
              "resized_image_handle": {
                "type": "string"
              }
            }
          }
        },
        "extra_links": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "extra_texts": {
          "type": "array",
          "items": {}
        },
        "extra_videos": {
          "type": "array",
          "items": {}
        },
        "images": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "image_crops": {
                "type": "object",
                "properties": {}
              },
              "original_image_url": {
                "type": "string"
              },
              "resized_image_url": {
                "type": "string"
              },
              "watermarked_resized_image_url": {
                "type": "string"
              }
            }
          }
        },
        "instagram_actor_name": {
          "type": "string"
        },
        "instagram_branded_content": {
          "type": "null"
        },
        "instagram_handle": {
          "type": "string"
        },
        "instagram_profile_pic_url": {
          "type": "string"
        },
        "instagram_shopping_products": {
          "type": "array",
          "items": {}
        },
        "instagram_url": {
          "type": "string"
        },
        "is_reshared": {
          "type": "boolean"
        },
        "link_description": {
          "type": "null"
        },
        "link_url": {
          "type": "string"
        },
        "page_categories": {
          "type": "object",
          "properties": {
            "1713352298924731": {
              "type": "string"
            }
          }
        },
        "page_entity_type": {
          "type": "string"
        },
        "page_id": {
          "type": "integer"
        },
        "page_is_deleted": {
          "type": "boolean"
        },
        "page_is_profile_page": {
          "type": "boolean"
        },
        "page_like_count": {
          "type": "integer"
        },
        "page_name": {
          "type": "string"
        },
        "page_profile_picture_url": {
          "type": "string"
        },
        "page_profile_uri": {
          "type": "string"
        },
        "page_welcome_message": {
          "type": "null"
        },
        "root_reshared_post": {
          "type": "null"
        },
        "title": {
          "type": "string"
        },
        "version": {
          "type": "integer"
        },
        "videos": {
          "type": "array",
          "items": {}
        }
      }
    },
    "spend": {
      "type": "null"
    },
    "startDate": {
      "type": "integer"
    },
    "startDateString": {
      "type": "string"
    },
    "success": {
      "type": "boolean"
    },
    "totalActiveTime": {
      "type": "integer"
    },
    "url": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Ad ID
```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'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "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"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- scrapecreators: https://openany.si/market/apis/facebook/facebook-ad-details-f10649c1/?offering=ecb12733-74f2-4651-a776-1f5bcc72f6f0

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
