Facebook 视频字幕 API
按帖子编号取 Facebook Reel 或视频帖里说的话,全文,连同视频时长。每次取一个对象;$0.0020 一次。出错、超时、对象不存在都不收费。
curl -G "https://api.dataxapi.com/v1/facebook/posts/transcript/get" \ --data-urlencode "id=1730255645138525" \ -H "Authorization: Bearer $DATAXAPI_API_KEY"
{
"code": "ok",
"request_id": "c8775773-424e-4d04-b57a-8745141775c6",
"data": {
"item": {
"post_id": "1105801068027157",
"text": "Hey everyone, today I am going through what I packed for weekend hiking. Short version: light, fits in one bag, hard to break. Let's go piece by piece.",
"duration": 28.736
}
},
"warnings": [],
"meta": {
"capability": "facebook.posts.transcript.get",
"result_status": "complete",
"fetched_at": "2026-12-02T13:59:44.000Z",
"cached": false,
"replayed": false,
"unavailable": {
"lang": "capability",
"segments": "capability",
"post": "capability",
"status": "capability",
"job": "capability",
"retry_after_seconds": "capability"
},
"billing": {
"amount": "0.002",
"currency": "USD",
"balance_after": "9.998"
}
}
}取自 2026-12-02 13:59 UTC 录下的真实返回。名字、正文和编号是示例,链接也是,都不是录到的原文(页面不展示任何人的个人信息);数字是原样。长列表做了截断。请求号、游标和余额是示意。
返回大小:标准档 899 B(精简 881 B,完整 899 B)。
curl -G "https://api.dataxapi.com/v1/facebook/posts/transcript/get" \ --data-urlencode "id=1730255645138525" \ -H "Authorization: Bearer $DATAXAPI_API_KEY"
# pip install dataxapi from dataxapi import DataXAPI dx = DataXAPI() # reads DATAXAPI_API_KEY result = dx.facebook.posts.transcript.get(id="1730255645138525") print(result["data"]["item"])
// npm i @dataxapi/sdk import { DataXAPI } from "@dataxapi/sdk"; const dx = new DataXAPI(); // reads DATAXAPI_API_KEY const result = await dx.facebook.posts.transcript.get({ id: "1730255645138525" }); console.log(result.data.item);
dataxapi call facebook.posts.transcript.get id=1730255645138525
{
"mcpServers": {
"dataxapi": {
"type": "http",
"url": "https://api.dataxapi.com/mcp",
"headers": {
"Authorization": "Bearer ${DATAXAPI_API_KEY}"
}
}
}
}把这段加进你的 MCP 客户端,然后让你的 AI 调用 facebook.posts.transcript.get。
参数
帖子编号,一串数字:主页 Reels 列表、帖子列表和帖子详情返回的 id;不是 Reel 链接里 /reel/ 后面的那串数字。示例:1730255645138525。
返回档位。三档价格相同。取值:compact、standard(默认)、full。
只要这些字段。按路径写,例如 author.name。
已知限制
- 每次取一个对象,不翻页。
- 这个对象有 25 个字段这个接口给不了
返回字段
data.item 是一个逐字稿对象。稳定:字段只增不改。
所属内容的编号
done 是文字已经在这里;processing 是长视频还在识别,文字还没有:过 retry_after_seconds 秒后带着 job 再调同一个接口取doneprocessing
长视频的凭证:带着它再调同一个接口取文字,提交后 24 小时内有效;只在 processing 时有
建议多少秒后再来取;只在 processing 时有
语言代码
全文
长文本:精简档只保留前 500 个字符,并在 warnings 里写明。
展开全部 31 个字段 →
带时间的分段
开始时间,秒
结束时间,秒
这一段的文字
这一段是谁说的(1、2…,同一个人同一个号);没要求区分说话人时为 null
这一段里每个字(词)的时间
开始时间,秒
结束时间,秒
这个字(词)
转写的音视频时长,秒;按分钟计费的接口按它收费
在这个平台上:视频时长,秒
这段话所在的内容:标题、文案、作者、时长、发布时间、点赞和评论数,平台有什么给什么
标题;没有标题的平台没有
文案或简介
长文本:精简档只保留前 500 个字符,并在 warnings 里写明。
内容的链接
发布时间
平台写的视频时长,秒
作者
作者编号
作者的名字
互动数
点赞数
评论数
这一条里哪些数是约数或下限;都是准确值时不出现
字段的路径,如 metrics.views
约数,还是下限approximatelower_bound
每条数据的典型体积:compact 415 B、standard 433 B、full 433 B(按 2026-12-02 13:59 UTC 录下的那次返回量的)。
这个接口给不了的
status这个接口不提供job这个接口不提供retry_after_seconds这个接口不提供lang这个接口不提供segments这个接口不提供segments[].start这个接口不提供segments[].end这个接口不提供segments[].text这个接口不提供segments[].speaker这个接口不提供segments[].words这个接口不提供segments[].words[].start这个接口不提供segments[].words[].end这个接口不提供segments[].words[].text这个接口不提供post这个接口不提供post.title这个接口不提供post.text这个接口不提供post.url这个接口不提供post.published_at这个接口不提供post.duration这个接口不提供post.author这个接口不提供post.author.id这个接口不提供post.author.name这个接口不提供post.metrics这个接口不提供post.metrics.likes这个接口不提供post.metrics.comments这个接口不提供什么时候收费
X-Max-Price 可以设自己的上限,超过就不执行)价格读取于 2026-12-05 10:35 UTC,按价目版本 66,2026-12-04 18:35 UTC 起生效;在 Playground 里运行前会再读一次当前价格。
对象不存在时
返回 404 not_found,不收费。reason 写明是哪一种:not_found(不存在)或 private_or_deleted(私密或已删除)。
常见报错
这个接口会返回的错误码;所有接口共有的见完整列表。
invalid_params参数不合法能否重试:改了再试未扣费insufficient_balance余额不足能否重试:改了再试未扣费not_found对象不存在、私密或已删除能否重试:不能未扣费upstream_failed这次没有取到结果,没有扣费,可以稍后重试能否重试:能未扣费timeout没有在时限内取到数据,可以用同一个幂等键重试能否重试:能未扣费常见问题
Facebook 视频字幕 API 多少钱?
$0.0020 一次。单次最高扣费 $0.0020。
什么情况下不收费?
出错、超时、对象不存在都不收费。
对象不存在会怎样?
返回 404 not_found,不收费。reason 写明是哪一种:not_found(不存在)或 private_or_deleted(私密或已删除)。
近 30 天可用率
已记录 3 天,满 14 天后在这里写出比例。
调用失败不收费。
Facebook的全部 4 个接口
在你的 AI 里用它
复制这段提示词
你的 API Key 已经写在里面,不用再配置什么。
还没有账户?注册只要一个邮箱,不用绑卡,失败的调用不收费。
贴给你的 agent
它会去读提示词指向的那一页,自己接好。
现在问点什么
用下面任意一句,或者用自己的话问。
想自己手动配置?
dataxapi setup给这台电脑上的 AI 代理(Claude Code、Codex、Cursor)装好 DataXAPI 的 MCP 服务和基础技能。Key 从环境变量 DATAXAPI_API_KEY 读,不写进任何文件。MCP 服务地址:https://api.dataxapi.com/mcp。你的客户端要填的配置在本页请求示例的“MCP”页签里;接好后让你的 AI 调用 facebook.posts.transcript.get。其他客户端 →展开全文
使用 DataXAPI 的接口 facebook.posts.transcript.get(Facebook 视频字幕)。按帖子编号取 Facebook Reel 或视频帖里说的话,全文,连同视频时长。 用 GET 请求 https://api.dataxapi.com/v1/facebook/posts/transcript/get,带请求头 "Authorization: Bearer $DATAXAPI_API_KEY"。Key 从环境变量 DATAXAPI_API_KEY 读,不要写进代码。 参数: - id (必填):帖子编号,一串数字:主页 Reels 列表、帖子列表和帖子详情返回的 id;不是 Reel 链接里 /reel/ 后面的那串数字。示例:1730255645138525。 - view:返回档位。三档价格相同。取值:compact、standard(默认)、full。 - fields:只要这些字段。按路径写,例如 author.name。 价格:$0.0020 一次。出错、超时、对象不存在都不收费。 返回 JSON:data.item 是逐字稿;meta.billing.amount 是这次调用的扣费。 示例: curl -G "https://api.dataxapi.com/v1/facebook/posts/transcript/get" \ --data-urlencode "id=1730255645138525" \ -H "Authorization: Bearer $DATAXAPI_API_KEY" 完整说明(Markdown):https://dataxapi.com/zh/apis/facebook/posts/transcript/get.md
名称和编号
- 英文名
- Facebook video transcript API
- 接口编号
facebook.posts.transcript.get- 地址
GET /v1/facebook/posts/transcript/get
一把 Key,开始用。
21 个平台 254 个接口,一次 $0.0003 起。出错和超时不收费。