FACEBOOK AD LIBRARY API

Ad Transcript

Retrieve ad transcript from Facebook Ad Library with a single API request.

GET/api/data/v1/facebook/adLibrary/ad/transcript
1credit base costZero-credit cache supported

Request parameters

Up to 1 credit

Facebook Ad Id

Facebook Ad URL

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.]

Try in the console

Live requests use your prepaid balance. Cached responses cost zero where supported.

curl --request GET \
  --url 'https://fetchgoblin.com/api/data/v1/facebook/adLibrary/ad/transcript?id=1020359190509080' \
  --header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'

Response

Example
{
  "success": true,
  "credits_charged": 1,
  "data": {
    "ad_id": "1020359190509080",
    "url": "https://www.facebook.com/ads/library?id=1020359190509080",
    "transcript": "Sample transcript text from the ad video...",
    "transcript_available": true
  }
}
Example data from the API specification. Run a request to retrieve current data.

Response shape

This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.

View JSON Schema +
{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "credits_remaining": {
      "type": "integer"
    },
    "credits_charged": {
      "type": "integer"
    },
    "data": {
      "type": "object",
      "properties": {
        "ad_id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "transcript": {
          "type": "string"
        },
        "transcript_available": {
          "type": "boolean"
        }
      }
    }
  }
}