API

Facebook API

約20億人の日常的なユーザーが投稿、写真、動画、グループ、イベント、マーケットプレースのリストを共有しており、コミュニティのリーチ、顧客サービス、地域の発見、ソーシャルコマースにおいて重要です。

APIリファレンス バージョン: 1.0.0 29 エンドポイント 認証
Facebook

ベース URL

https://api.pressmonitor.com

認証

すべてのリクエストはベアラートークン認証を使用します。すべての呼び出しにAuthorizationヘッダーを追加してください。

Authorization: Bearer YOUR_API_KEY
x-subscription-id: YOUR_SUB_ID
GET /get-post

投稿の取得

パラメータ

名前 タイプ 場所 必須 説明
post_id string query はい 投稿ID

コード例

curl -X GET "https://api.pressmonitor.com/get-post?post_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /group-info

グループ情報

パラメータ

名前 タイプ 場所 必須 説明
id string query はい ID

コード例

curl -X GET "https://api.pressmonitor.com/group-info?id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /marketplace-product

マーケットプレイス製品

パラメータ

名前 タイプ 場所 必須 説明
product_id string query はい 製品ID

コード例

curl -X GET "https://api.pressmonitor.com/marketplace-product?product_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /marketplace-profile

マーケットプレイスプロフィール

パラメータ

名前 タイプ 場所 必須 説明
user_id string query はい ユーザーID
end_cursor string query いいえ 終了カーソル

コード例

curl -X GET "https://api.pressmonitor.com/marketplace-profile?user_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /page-albums

ページのアルバム

パラメータ

名前 タイプ 場所 必須 説明
id string query はい ID
end_cursor string query いいえ 終了カーソル

コード例

curl -X GET "https://api.pressmonitor.com/page-albums?id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /page-details

ページの詳細

パラメータ

名前 タイプ 場所 必須 説明
id string query はい ID

コード例

curl -X GET "https://api.pressmonitor.com/page-details?id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /page-feed

ページのフィード

パラメータ

名前 タイプ 場所 必須 説明
id string query はい ID
end_cursor string query いいえ 終了カーソル

コード例

curl -X GET "https://api.pressmonitor.com/page-feed?id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /pages-search-post

ページ検索投稿

パラメータ

名前 タイプ 場所 必須 説明
query string query はい 検索クエリ
end_cursor string query いいえ 終了カーソル

コード例

curl -X GET "https://api.pressmonitor.com/pages-search-post?query=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /post-comments

投稿のコメント

パラメータ

名前 タイプ 場所 必須 説明
post_id string query はい 投稿ID
end_cursor string query いいえ 終了カーソル
order string query いいえ 順序

コード例

curl -X GET "https://api.pressmonitor.com/post-comments?post_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /post-reactions

投稿へのリアクション

パラメータ

名前 タイプ 場所 必須 説明
post_id string query はい 投稿ID
end_cursor string query いいえ 終了カーソル

コード例

curl -X GET "https://api.pressmonitor.com/post-reactions?post_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /post-reactions-count

投稿のリアクション数

パラメータ

名前 タイプ 場所 必須 説明
post_id string query はい 投稿ID

コード例

curl -X GET "https://api.pressmonitor.com/post-reactions-count?post_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /post-shares

投稿の共有数

パラメータ

名前 タイプ 場所 必須 説明
post_id string query はい 投稿ID
end_cursor string query いいえ 終了カーソル

コード例

curl -X GET "https://api.pressmonitor.com/post-shares?post_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /posts-search-post

投稿検索投稿

パラメータ

名前 タイプ 場所 必須 説明
query string query はい 検索クエリ
end_cursor string query いいえ 終了カーソル

コード例

curl -X GET "https://api.pressmonitor.com/posts-search-post?query=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /profile-about

プロフィールについて

パラメータ

名前 タイプ 場所 必須 説明
user_id string query はい ユーザーID

コード例

curl -X GET "https://api.pressmonitor.com/profile-about?user_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /profile-albums

プロフィールのアルバム

パラメータ

名前 タイプ 場所 必須 説明
user_id string query はい ユーザーID
end_cursor string query いいえ 終了カーソル

コード例

curl -X GET "https://api.pressmonitor.com/profile-albums?user_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /profile-feed

プロフィールのフィード

パラメータ

名前 タイプ 場所 必須 説明
user_id string query はい ユーザーID
end_cursor string query いいえ 終了カーソル

コード例

curl -X GET "https://api.pressmonitor.com/profile-feed?user_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /profile-friends

プロフィールの友達

パラメータ

名前 タイプ 場所 必須 説明
user_id string query はい ユーザーID
end_cursor string query いいえ 終了カーソル

コード例

curl -X GET "https://api.pressmonitor.com/profile-friends?user_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /profile-likes

プロフィールのいいね

パラメータ

名前 タイプ 場所 必須 説明
user_id string query はい ユーザーID
end_cursor string query いいえ 終了カーソル

コード例

curl -X GET "https://api.pressmonitor.com/profile-likes?user_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /profile-page

プロフィールページ

パラメータ

名前 タイプ 場所 必須 説明
user_id string query はい ユーザーID

コード例

curl -X GET "https://api.pressmonitor.com/profile-page?user_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /profile-photos

プロフィールの写真

パラメータ

名前 タイプ 場所 必須 説明
user_id string query はい ユーザーID
end_cursor string query いいえ 終了カーソル

コード例

curl -X GET "https://api.pressmonitor.com/profile-photos?user_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /profile-search-post

プロフィール検索投稿

パラメータ

名前 タイプ 場所 必須 説明
query string query はい 検索クエリ
end_cursor string query いいえ 終了カーソル

コード例

curl -X GET "https://api.pressmonitor.com/profile-search-post?query=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /profile-videos

プロフィール動画

パラメータ

名前 タイプ 場所 必須 説明
user_id string query はい ユーザーID
end_cursor string query いいえ 終了カーソル

コード例

curl -X GET "https://api.pressmonitor.com/profile-videos?user_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /share-post-url

投稿URLを共有

パラメータ

名前 タイプ 場所 必須 説明
url string query はい URL

コード例

curl -X GET "https://api.pressmonitor.com/share-post-url?url=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功
GET /video-id-url

動画IDのURL

パラメータ

名前 タイプ 場所 必須 説明
url string query はい URL

コード例

curl -X GET "https://api.pressmonitor.com/video-id-url?url=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

レスポンス

200 成功