Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Facebook Profile ID

Documentación de la 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.

Precio
$0.028571USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 0 opcionales

Entorno de pruebas

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

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Facebook$0.028571 por llamadaJSON
FacebookDesde $0.0012 por llamadaJSON
FacebookDesde $0.00462 por llamadaJSON
FacebookDesde $0.0012 por llamadaJSON
FacebookDesde $0.0011 por llamadaJSON
FacebookDesde $0.0011 por llamadaJSON

Guías:Best Facebook API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de Facebook Profile ID?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/facebook/profile-id con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Facebook Profile ID?

$0.028571 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Facebook Profile ID?

Requeridos: url (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Facebook Profile ID?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Facebook?

No. Facebook Profile ID funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Facebook por separado.