querystringrequerido
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.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
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.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
querystringrequeridoKeyword to search advertiser pages for (e.g. "nike").
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
Facebook Company SearchEsta API Facebook | Desde $0.0011 por llamada | JSON |
Facebook | Desde $0.0012 por llamada | JSON |
Facebook | Desde $0.00462 por llamada | JSON |
Facebook | Desde $0.0012 por llamada | JSON |
Facebook | Desde $0.0011 por llamada | JSON |
Facebook | Desde $0.0011 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/facebook/search-companies con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
Desde $0.0011 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: query (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
No. Facebook Company Search funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Facebook por separado.