Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Facebook Company Search

Dokumentacja 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.

Cena
Od $0.0011USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 0 opcjonalnych

Playground

Wejście
Keyword to search advertiser pages for (e.g. "nike").
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

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.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
FacebookOd $0.0011 za wywołanieJSON
FacebookOd $0.0012 za wywołanieJSON
FacebookOd $0.00462 za wywołanieJSON
FacebookOd $0.0012 za wywołanieJSON
FacebookOd $0.0011 za wywołanieJSON
FacebookOd $0.0011 za wywołanieJSON

Przewodniki:Best Facebook API in 2026: Pricing Compared

Pytania

FAQ

Jak używać API Facebook Company Search?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/facebook/search-companies z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API Facebook Company Search?

Od $0.0011 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API Facebook Company Search?

Wymagane: query (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Facebook Company Search?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego Facebook lub klucza API?

Nie. Facebook Company Search działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Facebook.