このエンドポイントが役立つこと
レスポンスは、選択した API 形式で、カウンターと主要な指標を含むすぐに使える プロフィール の概要を提供します。
使用に適した場面
指標のコンパクトなスナップショットが必要なダッシュボード、評価、定期レポートで「ユーザー ID による投稿の指標」を使用します。
まず結果と一般的なワークフローを確認し、次にパラメーターと動作するリクエスト例に進んでください。
レスポンスは、選択した API 形式で、カウンターと主要な指標を含むすぐに使える プロフィール の概要を提供します。
指標のコンパクトなスナップショットが必要なダッシュボード、評価、定期レポートで「ユーザー ID による投稿の指標」を使用します。
コレクション全体を読み込んで処理することなく、Facebook の主要な指標を表示します。
定期的なスナップショットを保存し、指標の推移を比較します。
集計指標をランキングや社内ルールの入力として使用します。
どちらのバージョンも同じタスクを解決し、同じパラメーターを受け付けます。切り替えを使ってレスポンス構造を比較し、クライアントが想定するバージョンを選んでください。
このページでバージョンを切り替えると、同じドキュメント URL でレスポンス構造を比較できます。
認証、必須パラメーター、リクエストの形は V1 と V2 で同じです。実際には、エンドポイントのパスを組み立てるときとレスポンスを読み取るときにバージョンを選びます。
主な違いはレスポンスのエンベロープです。新しい連携では V2 を使用し、既存のクライアント契約との互換性が必要な場合にのみ V1 を残してください。
どちらのバージョンでも、同じ API キーのヘッダーと同じクエリパラメーターを使用します。このドキュメントでは、まず共通のパラメーターを示し、次に各バージョンのパスとコードスニペットを示します。
| パラメーター | 必須 | 型 | 例 | 説明 |
|---|---|---|---|---|
user_id |
はい | str |
4 |
選択したプラットフォームにおけるユーザーの数値 ID。 |
エンドポイントの正確なパス、URL の例、コードスニペットをコピーするときにバージョンを選んでください。上のパラメーター一覧は変わりません。
GET /api/v2/facebook.com/profile/posts-metrics-by-user-idcurl --request GET \
--url "https://www.scrapestorm.net/api/v2/facebook.com/profile/posts-metrics-by-user-id" \
--header "X-API-Key: 00000000-0000-4000-8000-000000000000" \
--get --data-urlencode 'user_id=4'
from urllib.parse import urljoin
import requests
BASE_URL = "https://www.scrapestorm.net"
ENDPOINT = "/api/v2/facebook.com/profile/posts-metrics-by-user-id"
HEADERS = {"Accept": "application/json", "X-API-Key": "00000000-0000-4000-8000-000000000000"}
params = {
"user_id": "4",
}
with requests.Session() as session:
response = session.request(
method="GET",
url=urljoin(BASE_URL, ENDPOINT),
headers=HEADERS,
params=params,
timeout=30,
)
response.raise_for_status()
payload = response.json()
print(payload)
const BASE_URL = "https://www.scrapestorm.net";
const endpoint = "/api/v2/facebook.com/profile/posts-metrics-by-user-id";
const params = new URLSearchParams({
user_id: "4",
});
const response = await fetch(`${BASE_URL}${endpoint}?${params.toString()}`, {
method: "GET",
headers: {
Accept: "application/json",
"X-API-Key": "00000000-0000-4000-8000-000000000000",
},
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status} ${response.statusText}`);
}
const payload = await response.json();
console.log(payload);
import axios from "axios";
const client = axios.create({
baseURL: "https://www.scrapestorm.net",
timeout: 30000,
headers: {
Accept: "application/json",
"X-API-Key": "00000000-0000-4000-8000-000000000000",
},
});
const params = {
user_id: "4",
};
const { data: payload } = await client.request({
method: "GET",
url: endpoint,
params,
});
console.log(payload);
<?php
declare(strict_types=1);
use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;
$client = new Client([
'base_uri' => "https://www.scrapestorm.net",
'timeout' => 30.0,
'headers' => [
'Accept' => 'application/json',
'X-API-Key' => "00000000-0000-4000-8000-000000000000",
],
]);
$query = [
"user_id" => "4",
];
try {
$response = $client->request("GET", "/api/v2/facebook.com/profile/posts-metrics-by-user-id", [
'query' => $query,
]);
$payload = json_decode(
(string) $response->getBody(),
true,
512,
JSON_THROW_ON_ERROR
);
var_dump($payload);
} catch (GuzzleException $e) {
throw $e;
}
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"time"
)
func main() {
baseURL := "https://www.scrapestorm.net"
endpoint := "/api/v2/facebook.com/profile/posts-metrics-by-user-id"
params := url.Values{}
params.Set("user_id", "4")
req, err := http.NewRequest(
"GET",
fmt.Sprintf("%s%s?%s", baseURL, endpoint, params.Encode()),
nil,
)
if err != nil {
panic(err)
}
req.Header.Set("Accept", "application/json")
req.Header.Set("X-API-Key", "00000000-0000-4000-8000-000000000000")
client := &http.Client{Timeout: 30 * time.Second}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
var payload any
if err := json.NewDecoder(resp.Body).Decode(&payload); err != nil {
panic(err)
}
fmt.Printf("%+v\n", payload)
}
プレビューには主要なフィールドとコレクションの最初の要素が含まれているため、レスポンスの形をすばやく確認できます。バージョンを切り替えると JSON の形式が変わります。
このコンパクトな JSON の例は、V2 の直近の成功した検証実行から取得したものです。
{
"success": true,
"status": "ok",
"search_context": {
"user_id": "100044234596005"
},
"data": {
"profile": {
"user_id": "100044234596005",
"username": "DwayneJohnson",
"display_name": "Dwayne The Rock Johnson",
"alternate_name": null,
"profile_url": "https://www.facebook.com/DwayneJohnson",
"verified": true,
"gender": "male",
"category": "Public figure",
"description": "Dwayne The Rock Johnson. 66,022,044 likes · 745,861 talking about this. The official Facebook page for Dwayne \"The Rock\" Johnson.",
"external_links": [
{
"url": "https://therock.komi.io",
"label": "therock.komi.io",
"link_type": "website"
}
],
"emails": [],
"phone_numbers": [],
"followers_count": 66000000,
"following_count": 23,
"likes_count": 66022044,
"talking_about_count": 745861,
"avatar_url": "https://example.com/image.jpg",
"banner_url": "https://scontent-ord5-2.xx.fbcdn.net/v/t39.99422-6/738511563_2287489735394419_846629203386166573_n.png?stp=dst-png&cstp=mx2048x1152&ctp=s960x960&_nc_cat=105&ccb=1-7&_nc_sid=cc71…"
},
"analytics": {
"all_posts": {
"analyzed_posts_count": 9,
"last_post_date": "2026-07-19T18:11:09+00:00",
"total_engagement": 755632,
"avg_engagement_rate_per_post": 0.127211,
"peak_engagement_rate_per_post": 0.54697,
"avg_weighted_engagement_score": 88674.833333,
"total_engagement_rate": 1.144897,
"median_engagement_per_post": 11949.0,
"max_engagement_per_post": 361000,
"total_reactions": 688414,
"total_comments": 17665,
"total_shares": 49553,
"total_views": 34215,
"total_plays": 96386,
"total_media": 12,
"total_reaction_rate": 1.043052,
"total_comment_rate": 0.026765,
"total_share_rate": 0.07508,
"total_view_rate": 0.051841,
"total_play_rate": 0.146039,
"total_media_rate": 1.8e-05,
"avg_reactions_per_post": 76490,
"avg_comments_per_post": 1963,
"avg_shares_per_post": 5506,
"_more_fields": "14 more fields"
},
"sponsored_posts": {
"analyzed_posts_count": 0,
"total_engagement": 0,
"avg_engagement_rate_per_post": 0.0,
"peak_engagement_rate_per_post": 0.0,
"avg_weighted_engagement_score": 0.0,
"total_engagement_rate": 0.0,
"median_engagement_per_post": 0.0,
"max_engagement_per_post": 0,
"total_reaction_rate": 0.0,
"total_comment_rate": 0.0,
"total_share_rate": 0.0,
"total_view_rate": 0.0,
"total_play_rate": 0.0,
"total_media_rate": 0.0,
"avg_caption_length": 0,
"avg_posts_per_week": 0,
"avg_posts_per_month": 0,
"posts_count_last_7_days": 0,
"posts_count_last_30_days": 0
},
"organic_posts": {
"analyzed_posts_count": 9,
"last_post_date": "2026-07-19T18:11:09+00:00",
"total_engagement": 755632,
"avg_engagement_rate_per_post": 0.127211,
"peak_engagement_rate_per_post": 0.54697,
"avg_weighted_engagement_score": 88674.833333,
"total_engagement_rate": 1.144897,
"median_engagement_per_post": 11949.0,
"max_engagement_per_post": 361000,
"total_reactions": 688414,
"total_comments": 17665,
"total_shares": 49553,
"total_views": 34215,
"total_plays": 96386,
"total_media": 12,
"total_reaction_rate": 1.043052,
"total_comment_rate": 0.026765,
"total_share_rate": 0.07508,
"total_view_rate": 0.051841,
"total_play_rate": 0.146039,
"total_media_rate": 1.8e-05,
"avg_reactions_per_post": 76490,
"avg_comments_per_post": 1963,
"avg_shares_per_post": 5506,
"_more_fields": "14 more fields"
},
"segment_comparison": {
"sponsored_content_share": 0.0,
"organic_content_share": 100.0,
"organic_vs_sponsored_engagement_rate_gap": 0.1272,
"sponsored_to_organic_avg_engagement_ratio": 0.0
}
},
"feed": {
"count": 9,
"items": [
{
"is_sponsored": false,
"sponsored_detection_source": null,
"sponsored_detection_confidence": null,
"url": "https://www.facebook.com/1501519391332533",
"created_at": "2026-03-23T15:59:15Z",
"post_id": "1501519391332533",
"story_id": "1501519391332533",
"text": "The ocean chose her for a reason 🌊 Experience Disney’s MOANA only in thea ...",
"author": {
"url": "https://www.facebook.com/DwayneJohnson/",
"user_id": "100044234596005",
"username": "DwayneJohnson",
"display_name": "Dwayne The Rock Johnson"
},
"reaction_count": 316000,
"comment_count": 9000,
"share_count": 36000,
"attachments": [
{
"attachment_type": "VideoAttachment",
"url": "https://www.facebook.com/watch/?v=944805244845499"
},
{
"attachment_type": "ImageAttachment",
"media_url": "https://scontent-ams2-1.xx.fbcdn.net/v/t39.30808-6/741662427_1592394128911725_3434118842603641092_n.png?stp=c0.5000x0.5000f_dst-png_e15_p1170x400_q65_tt1_u&efg=eyJ1cmxnZW4iOiJ1cmxnZW5fZnJvbV91cmwifQ&_nc_cid=0&_nc_ad=z-m&_nc_rml=0&_nc_ht=scontent-ams2-1.xx&_nc_cat=109&_nc_ohc=A52zOQLPD7MQ7kNvwFs77g1&_nc_gid=jJxpKx9L1wFpltTo1vViJw&ccb=1-7&_nc_sid=08ce88&oh=00_AQAcZYU9l5Xeu9ILZRweE30zN-o2SaW2M95r5j8Znf_Ejg&oe=6A632F14"
},
{
"_more_items": 2
}
],
"media_count": 4,
"media_types": [
"video",
"image"
],
"comments_preview": [
{
"text": "the wig deserves a credit",
"reaction_count": 614,
"published_time": "16 weeks ago"
}
],
"thumbnail_url": "https://example.com/image.jpg"
},
{
"is_sponsored": false,
"sponsored_detection_source": null,
"sponsored_detection_confidence": null,
"url": "https://www.facebook.com/reel/26802119992796665/",
"created_at": "2026-07-19T18:11:09Z",
"post_id": "1601278088023329",
"story_id": "UzpfSTEwMDA0NDIzNDU5NjAwNToxNjAxMjc4MDg4MDIzMzI5OjE2MDEyNzgwODgwMjMzMjk=",
"feedback_id": "ZmVlZGJhY2s6MTYwMTI3ODA4ODAyMzMyOQ==",
"text": "Just landed in Tokyo 🛬 🇯🇵 \n130am, closing this gym out. Whenever I land in other countries/multiple time zones - I immediately hit the gym regardless of the time. Training is a…",
"author": {
"url": "https://www.facebook.com/DwayneJohnson",
"user_id": "100044234596005",
"display_name": "Dwayne The Rock Johnson"
},
"reaction_count": 4003,
"comment_count": 372,
"share_count": 80,
"video_view_count": 34215,
"video_play_count": 96386,
"attachments": [
{
"url": "https://www.facebook.com/reel/26802119992796665/",
"media_url": "https://scontent-arn2-1.xx.fbcdn.net/v/t51.82787-10/750016152_18655768657000183_7127400850037911919_n.jpg?stp=dst-jpg_tt6&cstp=mx720x1280&ctp=p296x100&_nc_cat=1&ccb=1-7&_nc_sid=5fad0e&_nc_aid=0&_nc_ohc=Fo55znelPAIQ7kNvwGgWL42&_nc_oc=AdppQeE_doRk3GX98f8Js-8efi85GkxVbHeNRUWzfz0rOg6Q6cUrNvywVCis022Dw8s&_nc_zt=23&_nc_ht=scontent-arn2-1.xx&_nc_gid=ZeZy1aGujTkIef2wMGH0zg&_nc_ss=7c289&oh=00_AQBDGiPGmvVOiC2MS9erEeuN2GaO5cyz2CG3cwwm086Ecg&oe=6A632568"
}
],
"media_count": 1,
"media_types": [
"video"
],
"comments_preview": [
{
"text": "Always \"Cookin\" good🫡",
"reaction_count": 5,
"published_time": "3 hours ago"
}
],
"commenting_disabled": true
},
{
"_more_items": 7
}
]
}
}
}
このドキュメントを最初の判断材料とし、継続的な利用のためにエンドポイントを接続する前に、料金、プラットフォームのカバー範囲、連携ルールを確認してください。
これらの回答を参考に、この API メソッドがワークフロー、バージョンの選択、導入計画に合うかどうかを判断してください。
このメソッドは プロフィール に対して「ユーザー ID による投稿の指標」を実行します。以下のコンパクトなレスポンス例で、フィールドの正確な構造を確認できます。
新しい連携では、正規化された構造を提供する V2 を選んでください。V1 は、既にプラットフォーム固有の形式を処理しているクライアントとの互換性のためにのみ使用してください。
API キーを作成し、リクエストヘッダーで送信し、表の必須パラメーターを指定してください。コード例には、正しいパスとリクエスト構造が既に含まれています。