Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

Facebook Company Search

Documentazione API
https://api.sandbase.ai/v1/api/facebook/search-companies

Search the Meta Ad Library for advertisers by keyword and get matching pages: page ID, category, verification, follower counts, and linked Instagram.

Prezzo
Da $0.0011USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
1 obbligatori · 0 opzionali

Playground

Input
Keyword to search advertiser pages for (e.g. "nike").
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

README API

Facebook Company Search API

This API searches the Meta Ad Library for advertiser pages that match a keyword. It returns a list of matching pages with page ID, category, verification status, like count, and linked Instagram account. It needs one input, query.

Use cases

  • Find the official Facebook page ID of a brand before you pull its ads.
  • Compare follower and like counts across a brand's regional or product pages, such as Nike, Nike Football and Nike Run Club.
  • Check whether a page is verified and has a linked Instagram account before you add it to a monitoring list.
  • Build a list of advertiser pages that match a keyword for competitor research.

Request

curl -X POST "https://api.sandbase.ai/v1/api/facebook/search-companies" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "nike"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
querystringYesKeyword to search advertiser pages for (e.g. "nike").

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "companies": [
      {
        "category": "Sportswear Store",
        "country": "",
        "entityType": "PERSON_PROFILE",
        "igFollowers": 290838453,
        "igUsername": "nike",
        "igVerified": true,
        "imageUrl": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.30808-1/284964043_10159903868513445_7…",
        "likes": 39489880,
        "name": "Nike",
        "pageAlias": "nike",
        "pageDeleted": false,
        "pageId": "15087023444"
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
data.companies[].pageIdFacebook page ID as a string. Use it to look up the page's ads or other page data.
data.companies[].name / data.companies[].pageAliasDisplay name of the page and its URL alias, such as Nike and nike.
data.companies[].categoryPage category, such as Sportswear Store.
data.companies[].verificationVerification status of the page. The sample shows BLUE_VERIFIED.
data.companies[].likesNumber of likes on the Facebook page.
data.companies[].igUsernameUsername of the linked Instagram account.
data.companies[].igFollowers / data.companies[].igVerifiedFollower count of the linked Instagram account, and whether that account is verified.
data.companies[].pageDeletedtrue if the page has been deleted, false if not.
data.companies[].imageUrlURL of the page's profile image.
foundtrue when the search returned matching pages.

Notes

  • Pass any brand or advertiser keyword in query. The request has no pagination parameter.
  • Take pageId from a result and pass it to Facebook Company Ads to see that advertiser's ads.
  • To search regular Facebook pages instead of advertisers, use Facebook Page Search.
  • Some fields can be empty. In the sample, country is an empty string for every result.

Pricing

Billed at the actual cost of each call, about $0.0011 for the request above. Failed calls are not charged.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
FacebookDa $0.0011 per chiamataJSON
FacebookDa $0.0012 per chiamataJSON
FacebookDa $0.00462 per chiamataJSON
FacebookDa $0.0012 per chiamataJSON
FacebookDa $0.0011 per chiamataJSON
FacebookDa $0.0011 per chiamataJSON

Guide:Best Facebook API in 2026: Pricing Compared

Domande

FAQ

Come uso l'API Facebook Company Search?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/facebook/search-companies 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.

Quanto costa l'API Facebook Company Search?

A partire da $0.0011 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API Facebook Company Search?

Richiesti: query (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API Facebook Company Search?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API Facebook?

No. Facebook Company Search 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.