Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Facebook Profile ID

APIドキュメント
https://api.sandbase.ai/v1/api/facebook/profile-id

Resolve the numeric Facebook profile ID behind a profile path such as "zuck", for use with endpoints that need a profile ID.

料金
$0.028571USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 0 件

プレイグラウンド

入力
The path portion of the Facebook profile URL, such as /<profile-path>. Do not include the scheme or host.
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

Facebook Profile ID API

This API returns the numeric Facebook profile ID for a profile path such as zuck. It needs one input, the url path of the profile.

Use cases

  • Convert a profile path into a numeric ID before you call an endpoint that only accepts profile IDs.
  • Store a numeric ID for each tracked profile next to its path in your own database.
  • Build a lookup table that maps many profile paths to their IDs in one batch job.

Request

curl -X POST "https://api.sandbase.ai/v1/api/facebook/profile-id" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "zuck"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
urlstringYesThe path portion of the Facebook profile URL, such as /<profile-path>. Do not include the scheme or host.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "profile_id": "4"
}

Response fields

FieldMeaning
profile_idThe numeric Facebook profile ID for the requested profile path. For the path zuck the value is 4.
profile_idThe value arrives as a string of digits, not as a JSON number. Keep it as a string in your code.
profile_idPass this value to any endpoint that asks for a profile ID. It is the only field in the response.

Notes

Pricing

$0.028571 per successful call. Failed calls are not charged.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
Facebook$0.028571 / 回JSON
Facebook1回あたり $0.0012 からJSON
Facebook1回あたり $0.00462 からJSON
Facebook1回あたり $0.0012 からJSON
Facebook1回あたり $0.0011 からJSON
Facebook1回あたり $0.0011 からJSON

ガイド:Best Facebook API in 2026: Pricing Compared

質問

FAQ

Facebook Profile ID API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/facebook/profile-id に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Facebook Profile ID API の料金はいくらですか?

1回あたり $0.028571、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Facebook Profile ID API はどのパラメータを受け付けますか?

必須: url (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Facebook Profile ID API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Facebook の開発者アカウントまたは API key は必要ですか?

いいえ。Facebook Profile ID は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Facebook の API アクセスを別途申請する必要はありません。