querystringrequerido
Name to look up, as you would type it into Facebook's search box (e.g. NASA or plumber chicago).
https://api.sandbase.ai/v1/api/facebook/page-lookupLook up Facebook Pages and profiles by name with Facebook's own quick search. A name lookup that returns basic identity fields only: name, URL, profile image, Facebook id, and verified status. Matches can include personal profiles as well as Pages. For full Page details (category, followers, phone, website), use facebook.search_pages.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
This API looks up Facebook Pages and profiles by name and returns up to 7 matches. It needs one input, query, the name you would type into Facebook's search box. Each match has only basic identity fields.
id of a brand or organization from its name.id or url, then pass it to another Facebook API for deeper data.curl -X POST "https://api.sandbase.ai/v1/api/facebook/page-lookup" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"limit": 5, "query": "NASA"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Name to look up, as you would type it into Facebook's search box (e.g. NASA or plumber chicago). |
limit | integer | No | Maximum number of matches to return (1-7, default 7). Facebook's quick search answers a name with at most 7 matches. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"items": [
{
"id": "100044561550831",
"image": "https://scontent-mia5-2.xx.fbcdn.net/v/t39.30808-1/243095782_416661036495945_384…",
"isVerified": true,
"name": "NASA - National Aeronautics and Space Administration",
"url": "https://www.facebook.com/NASA"
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
found | true when the lookup returned at least one match. A lookup with no matches returns found: false. |
data.items[] | One match for the name. The list holds at most limit entries, and never more than 7. |
data.items[].name | Display name of the Page or profile, for example NASA - National Aeronautics and Space Administration. |
data.items[].url | Public Facebook URL of the match, for example https://www.facebook.com/NASA. |
data.items[].id | Facebook id of the match, returned as a string of digits. |
data.items[].isVerified | true when the match shows as verified on Facebook. |
data.items[].image | URL of the small profile image for the match. The sample URLs point to 120x120 images. |
name and url before you use a result.limit between 1 and 7. The default is 7, and there is no pagination.Billed at the actual cost of each call, about $0.00975 for the request above. Failed calls are not charged.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
curl -X POST "https://api.sandbase.ai/v1/api/facebook/page-lookup" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": 5,
"query": "NASA"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
querystringrequeridoName to look up, as you would type it into Facebook's search box (e.g. NASA or plumber chicago).
limitintegerMaximum number of matches to return (1-7, default 7). Facebook's quick search answers a name with at most 7 matches.
Valor predeterminado: 7
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
Facebook Page LookupEsta API Facebook | Desde $0.00975 por llamada | JSON |
Facebook | Desde $0.0012 por llamada | JSON |
Facebook | Desde $0.00462 por llamada | JSON |
Facebook | Desde $0.0012 por llamada | JSON |
Facebook | Desde $0.0011 por llamada | JSON |
Facebook | Desde $0.0011 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/facebook/page-lookup 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.
Desde $0.00975 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: query (string). Opcionales: limit (integer). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
No. Facebook Page Lookup 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.