Facebook投稿の詳細を取得(リアルタイム)

5 件のエンドポイント • ベース: https://openapi.scdata.cc

Facebookの投稿1件をプラットフォームから直接収集し、呼び出し時点の内容とエンゲージメント数を返します。

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

クォータ消費: このエンドポイントへの成功したリクエスト 1 件あたり、プランのクォータが 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
ダッシュボードのAPIキーを選択
リクエストを送信する前にAPIキーを入力してください。ダッシュボードを開く

クエリパラメータ

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"
]
}
}

ユースケース

  • スポンサー投稿の報告 — 有料投稿の最終エンゲージメント数を記録します。
  • バイラル投稿監視 — 急速に拡散している投稿を一定間隔で再取得し、拡散度を計測します。

関連エンドポイント