Docs
控制台

实时获取Facebook帖文详情

5 个接口 • Base: https://openapi.scdata.cc

直接从平台采集单条 Facebook 帖文,返回调用时刻的内容与互动计数。

GET/api/v1/facebook/realtime/post/detail

额度扣减: 本接口每次成功请求会从套餐额度中扣减 100 单位。

请求参数

必填参数

名称位置类型说明
post_urlquerystringpost url
example: https://www.facebook.com/nike/posts/pfbid0Z2KUg35AkAJeQJ6NRMyZViPnZD1b6wDMNP8L1UUNUFuYryVnw5DJUZGskYSWue4kl

响应字段

名称类型说明
successbooleanSuccess
codeintegerCode
messagestringMessage
dataobject-
data.post_idstringPost ID
data.post_urlstringPost URL
data.descriptionstringPost text
data.cover_urlstringCover image URL
data.publish_atstringPublish time
data.like_countintegerLike count
data.comment_countintegerComment count
data.share_countintegerShare count
data.view_countintegerPlay count
data.media_typestringMedia type
data.resourcesarray<string>Resource URLs
data.author_idstringAuthor ID
data.author_namestringAuthor name
data.author_urlstringAuthor URL
data.caption_textstringCaption text
data.duration_secondsnumberDuration (seconds)
data.video_sd_urlstringSD video URL
data.video_hd_urlstringHD video URL
data.caption_urlsarray<string>Subtitle URLs

在线调试

https://openapi.scdata.cc/api/v1/facebook/realtime/post/detail
请先从 Dashboard 选择一个 API key
发送请求前请先准备一个 API key。前往 Dashboard

查询参数

post_url*

cURL 示例

bash
curl -X GET "https://openapi.scdata.cc/api/v1/facebook/realtime/post/detail?post_url=https%3A%2F%2Fwww.facebook.com%2Fnike%2Fposts%2Fpfbid0Z2KUg35AkAJeQJ6NRMyZViPnZD1b6wDMNP8L1UUNUFuYryVnw5DJUZGskYSWue4kl" \
-H "Authorization: YOUR_API_KEY"

响应示例 (200 application/json)

json
{
"success": true,
"code": 200,
"message": "Request successful",
"data": {
"post_id": "string",
"post_url": "string",
"description": "string",
"cover_url": "string",
"publish_at": "string",
"like_count": 0,
"comment_count": 0,
"share_count": 0,
"view_count": 0,
"media_type": "string",
"resources": [
"string"
],
"author_id": "string",
"author_name": "string",
"author_url": "string",
"caption_text": "string",
"duration_seconds": 0,
"video_sd_url": "string",
"video_hd_url": "string",
"caption_urls": [
"string"
]
}
}

使用场景

  • 赞助帖文报告 — 记录付费帖文的最终互动数据。
  • 爆款帖文监测 — 定时重新查询快速传播的帖文,衡量扩散速度。

相关接口