Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

Facebook Profile ID

API-Dokumentation
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.

Preis
$0.028571USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
1 erforderlich · 0 optional

Playground

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

Ihre Ausgabe wird hier angezeigt

Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.

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.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
Facebook$0.028571 pro AufrufJSON
FacebookAb $0.0012 pro AufrufJSON
FacebookAb $0.00462 pro AufrufJSON
FacebookAb $0.0012 pro AufrufJSON
FacebookAb $0.0011 pro AufrufJSON
FacebookAb $0.0011 pro AufrufJSON

Anleitungen:Best Facebook API in 2026: Pricing Compared

Fragen

FAQ

Wie verwende ich die Facebook Profile ID API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/facebook/profile-id mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.

Was kostet die Facebook Profile ID API?

$0.028571 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.

Welche Parameter akzeptiert die Facebook Profile ID API?

Erforderlich: url (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die Facebook Profile ID API zurück?

Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.

Benötige ich ein Facebook-Entwicklerkonto oder einen API-Schlüssel?

Nein. Facebook Profile ID läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Facebook API beantragen.