querystringobrigatório
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.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
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.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento 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"
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
querystringobrigatórioName 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.
Padrão: 7
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
Facebook Page LookupEsta API Facebook | A partir de $0.00975 por chamada | JSON |
Facebook | A partir de $0.0012 por chamada | JSON |
Facebook | A partir de $0.00462 por chamada | JSON |
Facebook | A partir de $0.0012 por chamada | JSON |
Facebook | A partir de $0.0011 por chamada | JSON |
Facebook | A partir de $0.0011 por chamada | JSON |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/facebook/page-lookup com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
A partir de $0.00975 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: query (string). Opcionais: limit (integer). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. Facebook Page Lookup funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Facebook separadamente.