querystringobbligatorio
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.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
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.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
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"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
querystringobbligatorioName 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.
Predefinito: 7
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Facebook Page LookupQuesta API Facebook | Da $0.00975 per chiamata | JSON |
Facebook | Da $0.0012 per chiamata | JSON |
Facebook | Da $0.00462 per chiamata | JSON |
Facebook | Da $0.0012 per chiamata | JSON |
Facebook | Da $0.0011 per chiamata | JSON |
Facebook | Da $0.0011 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/facebook/page-lookup con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
A partire da $0.00975 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: query (string). Facoltativi: limit (integer). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. Facebook Page Lookup funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Facebook.