Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Facebook Ad Transcript

Docs API
https://api.sandbase.ai/v1/api/facebook/ad-transcript

Get the spoken-word transcript of a Meta Ad Library video ad by ad ID or URL.

Prix
À partir de $0.0012USD / appel
Méthode
POST
Réponse
JSON
Paramètres
0 obligatoires · 2 facultatifs

Bac à sable

Entrée
Meta Ad Library ad ID (e.g. "1020359190509080"). Provide either id or url.
Meta Ad Library ad URL (e.g. "https://www.facebook.com/ads/library?id=1020359190509080"). Provide either id or url.
SortiePrêt

Votre sortie apparaîtra ici

Complétez les entrées, puis cliquez sur Exécuter.

README de l'API

Facebook Ad Transcript API

This API returns the spoken-word transcript of a video ad in the Meta Ad Library. It needs either an ad ID (id) or an Ad Library ad URL (url).

Use cases

  • Pull the script of a competitor's video ad to study its hook and offer.
  • Index ad transcripts to search for repeated claims or phrases across campaigns.
  • Check whether a video ad has a transcript before sending it to a review or translation step.

Request

curl -X POST "https://api.sandbase.ai/v1/api/facebook/ad-transcript" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id": "2045879599391945"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
idstringNoMeta Ad Library ad ID (e.g. "1020359190509080"). Provide either id or url.
urlstringNoMeta Ad Library ad URL (e.g. "https://www.facebook.com/ads/library?id=1020359190509080"). Provide either id or url.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "adId": "2045879599391945",
    "transcript": "",
    "transcriptAvailable": false,
    "url": "https://www.facebook.com/ads/library?id=2045879599391945"
  },
  "found": true
}

Response fields

FieldMeaning
data.adIdThe ID of the ad that was looked up.
data.transcriptThe spoken-word text of the ad. It is an empty string when no transcript exists.
data.transcriptAvailabletrue when a transcript was found for the ad, false when not. Check this before you use transcript.
data.urlThe Meta Ad Library URL for the ad.
foundtrue when the lookup returned a result for the ad.

Notes

  • Send either id or url. The id is the number in the id query parameter of an Ad Library URL, for example 2045879599391945.
  • A response can have found: true and still return an empty transcript with transcriptAvailable: false. Treat this as an ad with no transcript.
  • To find ad IDs, use Facebook Ad Search or Facebook Company Ads. For ad creative data, call Facebook Ad Creative Details.

Pricing

Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
FacebookÀ partir de $0.0012 par appelJSON
FacebookÀ partir de $0.0012 par appelJSON
FacebookÀ partir de $0.00462 par appelJSON
FacebookÀ partir de $0.0011 par appelJSON
FacebookÀ partir de $0.0011 par appelJSON
FacebookÀ partir de $0.0012 par appelJSON

Guides :Best Facebook API in 2026: Pricing Compared

Questions

FAQ

Comment utiliser l’API Facebook Ad Transcript ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/facebook/ad-transcript avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API Facebook Ad Transcript ?

À partir de $0.0012 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API Facebook Ad Transcript accepte-t-elle ?

Aucun paramètre n’est requis. Facultatif : id (string) et url (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Facebook Ad Transcript ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API Facebook ?

Non. Facebook Ad Transcript fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Facebook séparément.