Skip to content

Facebook Post Transcript API

Transcript for a public Facebook video or reel, as one text block plus timed cues. Reads the caption track Facebook publishes for the video, auto-generated when the uploader added none (source: "captions"). Transcription of videos without captions is coming soon; until then such a video answers not_configured (501) and is not charged. Calls cost 1 credit each. A cache hit is free, and a failed or empty response is never charged.

Try it

Prefilled with the request that produced the example below. No key yet? Get a free key.

Request

GET/v1/facebook/post-transcript
ParameterTypeRequiredDescription
urlstringyesFull video or reel URL
languagestringnoPreferred caption locale, e.g. "en" or "en_US"

Also accepts cache_max_age (a hit costs 0 credits) and include_raw (returns the untouched upstream payload under raw).

curl
curl "$API/v1/facebook/post-transcript?url=https%3A%2F%2Fwww.facebook.com%2Freel%2F2166091230582141%2F&cache_max_age=7d" \
  -H "x-api-key: $KEY"
JavaScript
const query = new URLSearchParams({
  url: 'https://www.facebook.com/reel/2166091230582141/',
  cache_max_age: '7d',
});

const response = await fetch(`${API}/v1/facebook/post-transcript?${query}`, {
  headers: { 'x-api-key': KEY },
});

const body = await response.json();
if (!body.success) throw new Error(body.error.code);

// 1 credit, 0 on a cache hit
console.log(body.data, body.meta.creditsCharged);
Python
import os, httpx

r = httpx.get(
    f"{os.environ['API']}/v1/facebook/post-transcript",
    params={
        "url": "https://www.facebook.com/reel/2166091230582141/",
        "cache_max_age": "7d",
    },
    headers={"x-api-key": os.environ["KEY"]},
    timeout=30,
)

body = r.json()
if not body["success"]:
    raise RuntimeError(body["error"]["code"])

print(body["data"], body["meta"]["creditsCharged"])

Example response

Captured on , with raw removed and lists cut to two items. A live call returns current data.

response
{
  "success": true,
  "data": {
    "platform": "facebook",
    "postId": "2166091230582141",
    "url": "https://www.facebook.com/reel/2166091230582141/",
    "language": "id_ID",
    "isAutoGenerated": false,
    "text": "Seberapa jauh terlalu jauh? Hanya ada satu cara untuk mengetahuinya.",
    "cues": [
      {
        "start": 8.161,
        "end": 13.301,
        "text": "Seberapa jauh terlalu jauh?"
      },
      {
        "start": 17.661,
        "end": 22.081,
        "text": "Hanya ada satu cara untuk mengetahuinya."
      }
    ],
    "durationSeconds": 22.081,
    "source": "captions",
    "fetchedAt": "2026-10-21T01:59:01.279Z"
  },
  "meta": {
    "platform": "facebook",
    "endpoint": "facebook.postTranscript",
    "creditsCharged": 1,
    "cached": false,
    "cacheAgeSeconds": null,
    "durationMs": 3418,
    "requestId": "req_xlrpf820eo7h1mfa2uxj"
  }
}

Returns

Returns one Transcript.

Cost and behaviour

Credits1 per live request, 0 on a cache hit
Cacheableyes: cache_max_age accepts a cached copy
Batchableyes: usable as a target in POST /v1/jobs/batch
Subscribableyes: as often as every 3600 seconds, firing a webhook only on a change

Other Facebook endpoints