# Facebook Advertiser search API (facebook.advertiser_search)

- Canonical page: https://everyinfra.com/en/facebook-api/advertiser_search
- Endpoint: POST /api/v1/social with {"platform": "facebook", "action": "advertiser_search", "params": {...}}
- Price: $0.000875 per call ($0.88 per 1,000 requests); failed and empty results are not charged
- Returns: list, default 15, max 15 per call (larger values are capped)
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=facebook&action=advertiser_search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | A brand or advertiser name, such as `nike`. Returns the Pages that advertise under that name in the Ad Library; each `id` is a Page ID. |
| limit | integer (1–15) | no | 15 | The most rows to return in this call, an integer from 1 to 15. The default applies when you leave it out, and a call can return fewer rows. Larger values are accepted and capped at the maximum. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| name | Name of the object itself, for account, product and business capabilities. |
| username | Username (@handle). |
| url | Link to the record on the platform. |
| category | Category name in the platform's own taxonomy, not normalized across platforms. |
| avatar_url | Avatar image link. Some platforms return sized CDN links that can expire. |
| page_like_count | platform-native meaning |
| is_verified | Whether the platform verified the account. null means it cannot be determined. |
| instagram_username | platform-native meaning |
| instagram_follower_count | platform-native meaning |
| instagram_verified | platform-native meaning |
| country | Country or region: a full name or an ISO code depending on the platform, not normalized. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "facebook",
  "action": "advertiser_search",
  "params": {
    "keyword": "nike"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "facebook",
        "action": "advertiser_search",
        "params": {
            "keyword": "nike",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "facebook",
  "action": "advertiser_search",
  "results": [
    {
      "id": …,
      "name": …,
      "username": …,
      "url": …,
      "category": …,
      "avatar_url": …,
      "page_like_count": …,
      "is_verified": …,
      "instagram_username": …,
      "instagram_follower_count": …,
      "instagram_verified": …,
      "country": …,
      "platform": …
    }
  ],
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=facebook
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
