urlstring
Full Facebook page URL.
https://api.sandbase.ai/v1/api/facebook/profileFetch a Facebook page's public profile (likes, followers, category, about) by URL or handle.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
Returns the public profile of a Facebook page, including its name, category, like and follower counts, contact details and ad status. It needs either a full page url or a page handle.
likes and followers counts of competing brand pages.id and adLibraryPageId for use in other lookups.curl -X POST "https://api.sandbase.ai/v1/api/facebook/profile" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.facebook.com/nike"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | No | Facebook page handle/username. |
url | string | No | Full Facebook page URL. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"about": "",
"adLibraryPageId": "15087023444",
"adStatus": "This Page is currently running ads.",
"avatarUrl": "https://scontent-ord5-1.xx.fbcdn.net/v/t39.30808-1/284964043_10159903868513445_7…",
"category": "Sportswear Store",
"coverPhotoUrl": "https://scontent-ord5-2.xx.fbcdn.net/v/t39.30808-6/285211224_10159903868008445_5…",
"createdUtc": 1211328000,
"followers": 39000000,
"id": "100044541544829",
"likes": 39488396,
"name": "Nike",
"pageActive": false
},
"found": true
}
| Field | Meaning |
|---|---|
data.name | Display name of the page. |
data.id | Numeric ID of the page. |
data.category | Category label of the page, for example Sportswear Store. |
data.likes / data.followers | Number of likes and number of followers the page has. |
data.talkingAboutCount | Count of people talking about the page, as reported on the page. |
data.adStatus | Text that says whether the page is currently running ads. |
data.adLibraryPageId | ID of the page in the Facebook ad library. Use it to look up the page's ads. |
data.createdUtc | Page creation time as a Unix timestamp in seconds (UTC). |
data.website / data.phone | Website and phone number listed on the page. |
data.avatarUrl / data.coverPhotoUrl | Image URLs for the page's profile picture and cover photo. |
url or handle. The example request uses url.found first. A lookup that finds no page returns found: false.about can be an empty string when the page has no description.Billed at the actual cost of each call, about $0.0012 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/profile" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.facebook.com/nike"
}'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.
urlstringFull Facebook page URL.
handlestringFacebook page handle/username.
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 ProfileEsta API Facebook | A partir de $0.0012 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/profile 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.0012 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Nenhum parâmetro é obrigatório. Opcionais: url (string) e handle (string). 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 Profile 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.