Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Facebook Company Search

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

Harga
Dari $0.0011USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib · 0 opsional

Playground

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

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
FacebookDari $0.0011 per panggilanJSON
FacebookDari $0.0012 per panggilanJSON
FacebookDari $0.00462 per panggilanJSON
FacebookDari $0.0012 per panggilanJSON
FacebookDari $0.0011 per panggilanJSON
FacebookDari $0.0011 per panggilanJSON

Panduan:Best Facebook API in 2026: Pricing Compared

Pertanyaan

FAQ

Bagaimana cara menggunakan API Facebook Company Search?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/facebook/search-companies dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Facebook Company Search?

Mulai dari $0.0011 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Facebook Company Search?

Wajib: query (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Facebook Company Search?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Facebook?

Tidak. Facebook Company Search berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Facebook secara terpisah.