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
/v1/facebook/post-transcript| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | yes | Full video or reel URL |
| language | string | no | Preferred 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 "$API/v1/facebook/post-transcript?url=https%3A%2F%2Fwww.facebook.com%2Freel%2F2166091230582141%2F&cache_max_age=7d" \
-H "x-api-key: $KEY"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);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.
{
"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
| Credits | 1 per live request, 0 on a cache hit |
| Cacheable | yes: cache_max_age accepts a cached copy |
| Batchable | yes: usable as a target in POST /v1/jobs/batch |
| Subscribable | yes: as often as every 3600 seconds, firing a webhook only on a change |
Other Facebook endpoints
- /v1/facebook/ad-library/ad Ad details
- /v1/facebook/ad-library/ad-transcript Ad video transcript
- /v1/facebook/ad-library/advertisers Find advertisers running ads
- /v1/facebook/ad-library/page-ads All ads for one advertiser
- /v1/facebook/ad-library/search Search the Meta Ad Library
- /v1/facebook/city-events Get the events of a city
- /v1/facebook/comment-replies Replies to a comment
- /v1/facebook/event Event details