Watch live as our crew returns home from the International Space Station.
{"id": "25118307061088489","text": "Watch live as our crew returns home from the International Space Station.","likes": 2095,"comments": 48,"shares": 133,"views": 133000,"authorId": string,"authorImage": string,... 还有 10 个字段}
价格与服务商
Facebook 帖子 API 价格:一个 API,3 个可互换的服务商
最便宜的服务商优先响应。如果它失败,下一个会在同一次调用中接手。
试一试
一个请求获取 Facebook 帖子
这个示例展示了 28 个字段中的 8 个。查看全部字段
{
"found": true,
"data": {
"id": "25118307061088489",
"text": "Watch live as our crew returns home from the International Space Station.",
"likes": 2095,
"comments": 48,
"shares": 133,
"views": 133000
}
}完整的参数与响应参考:这个接口的每个字段、类型和示例。
参考
一个请求,一种响应结构。
你发送的每个字段和收到的每个字段,都附有真实示例。
最近验证于 2026-11-14 · 可用率和延迟按 30d 统计
请求体
JSON,POST 到这个接口。
- urlstring
https://www.facebook.com/nasa/posts/1204545088344463
完整的 Facebook 帖子 URL。
- requireFieldsarray
可选;省略时路由不变,由最便宜的数据源处理。列出本次请求必须能返回的输出字段,例如 `videoId` 或 `views`,请求就只会由能返回全部这些字段的数据源处理。未列出的字段,只要处理请求的数据源有,仍会照常返回。这可能提高你的价格:最便宜的数据源无法返回某个列出的字段时,会改由更贵的数据源处理,并按它的价格报价和扣费。如果某条帖子确实没有某个列出的字段,该字段仍可能缺失。如果列出的字段组合没有任何单一数据源能同时返回,请求会作为无效输入被拒绝,不扣费。
响应
JSON,每个字段一个示例值。
- authorIdstring
Numeric Facebook id of the page or profile that posted.
- authorImagestring
Profile picture URL of the page or profile that posted.
- authorNamestring
Display name of the page or profile that posted.
- authorVerifiedboolean可设为必填
Whether the posting page or profile carries a Facebook verification badge.
- commentsinteger
48
- createdUtcnumber
UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
- durationSecondsnumber
Length of the post's video in seconds, 0 when the post carries no video.
- feedbackIdstring可设为必填
Facebook feedback id of the post; pass it to facebook.post_comments as feedbackId to fetch its comments. Null when this source cannot read it.
- idstring
25118307061088489
Facebook post id. For a reel or video post this is NOT the id in the /reel/ URL; that one is videoId. Populated whenever the provider has data for the entity.
- imagestring
Preview image or video thumbnail URL for the post.
- likesinteger
2095
- sharesinteger
133
- textstring
Watch live as our crew returns home from the International Space Station.
Populated whenever the provider has data for the entity.
- urlstring
Canonical Facebook URL of the post.
- videoIdstring可设为必填
Facebook video id of the post's reel or video, the id that appears in its /reel/<id> URL. Null when the post carries no video or this lane cannot read it.
- videoUrlstring可设为必填
Playable video file URL of the post's reel or video. Null when the post carries no video or this source cannot read it.
- viewsinteger可设为必填
133000
Number of views on the post's video. Null when the source cannot report an exact count, for example when it gives only a rounded figure such as 14K.
Reaction counts on the post, broken down by reaction type. Null when this source reports only the total.
- angryinteger
Angry reactions.
- careinteger
Care reactions.
- hahainteger
Haha reactions.
- likeinteger
Like reactions.
- loveinteger
Love reactions.
- sadinteger
Sad reactions.
- wowinteger
Wow reactions.
- foundboolean
true
- reason"not_found"
Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
你在出售这个 API?查看你的接口必须返回的完整数据结构。
常见问题
关于 Facebook 帖子 API
AnyAPI 的 Facebook 帖子 API 只需一次 POST 请求 /v1/run/facebook.post,就以统一格式的 JSON 返回 Facebook 数据。通过 URL 获取单条 Facebook 帖子:文本和互动数据(点赞、评论、分享、观看)。AnyAPI 会在 3 个数据源之间路由每个请求,某个数据源失败时自动切换。费用:每千次请求 US$1.20 起,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 Facebook 帖子 API 调用中有 100.0% 成功,响应时间中位数为 2.0 秒,共测量 1,032,069 次调用。