querystringwymagane
Keyword to search advertiser pages for (e.g. "nike").
https://api.sandbase.ai/v1/api/facebook/search-companiesSearch the Meta Ad Library for advertisers by keyword and get matching pages: page ID, category, verification, follower counts, and linked Instagram.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Keyword to search advertiser pages for (e.g. "nike"). |
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
}
| Field | Meaning |
|---|---|
data.companies[].pageId | Facebook page ID as a string. Use it to look up the page's ads or other page data. |
data.companies[].name / data.companies[].pageAlias | Display name of the page and its URL alias, such as Nike and nike. |
data.companies[].category | Page category, such as Sportswear Store. |
data.companies[].verification | Verification status of the page. The sample shows BLUE_VERIFIED. |
data.companies[].likes | Number of likes on the Facebook page. |
data.companies[].igUsername | Username of the linked Instagram account. |
data.companies[].igFollowers / data.companies[].igVerified | Follower count of the linked Instagram account, and whether that account is verified. |
data.companies[].pageDeleted | true if the page has been deleted, false if not. |
data.companies[].imageUrl | URL of the page's profile image. |
found | true when the search returned matching pages. |
query. The request has no pagination parameter.pageId from a result and pass it to Facebook Company Ads to see that advertiser's ads.country is an empty string for every result.Billed at the actual cost of each call, about $0.0011 for the request above. Failed calls are not charged.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
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"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
querystringwymaganeKeyword to search advertiser pages for (e.g. "nike").
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Facebook Company SearchTo API Facebook | Od $0.0011 za wywołanie | JSON |
Facebook | Od $0.0012 za wywołanie | JSON |
Facebook | Od $0.00462 za wywołanie | JSON |
Facebook | Od $0.0012 za wywołanie | JSON |
Facebook | Od $0.0011 za wywołanie | JSON |
Facebook | Od $0.0011 za wywołanie | JSON |
Przewodniki:Best Facebook API in 2026: Pricing Compared
Pytania
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.
Od $0.0011 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: query (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
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.