# Facebook Ad Library Advertisers

Look up advertiser pages whose ads appear in the ad transparency library, by name fragment. Returns the numeric page id for each match along with the page name, profile link, categories and linked Instagram handle. Use the returned page_id with the search endpoint to retrieve that advertiser's ads. This lookup is a separate request with its own credit; the search endpoint does not resolve page ids for you.

- **Documentation:** [https://scrappa.co/docs/facebook-ad-library-api/meta_ad_library_advertisers](https://scrappa.co/docs/facebook-ad-library-api/meta_ad_library_advertisers)
- **API group:** Facebook Ad Library API
- **Endpoint:** `GET https://scrappa.co/api/facebook-ad-library/advertisers`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | Yes | Name or name fragment of the advertiser to look up. |
| `country` | string | No | Two-letter ISO country code to search within. |
| `ad_type` | string | No | Ad category to match against: ALL, POLITICAL_AND_ISSUE_ADS, CREDIT_ADS, FINANCIAL_PRODUCTS_AND_SERVICES_ADS, EMPLOYMENT_ADS, HOUSING_ADS or UNCATEGORIZED_ADS. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/facebook-ad-library/advertisers?query=nike"
```

## Example response

```json
{
    "advertisers": [
        {
            "page_id": "15087023444",
            "page_name": "Nike",
            "page_profile_uri": "https://www.facebook.com/nike",
            "page_image_uri": "https://example.com/nike.jpg",
            "page_categories": [
                "Retail"
            ],
            "instagram_username": "nike"
        }
    ],
    "advertisers_count": 1,
    "response_time_ms": 420
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 503 | Ad library temporarily unavailable | The public ad library could not be reached. The request is not billed. |
| 422 | Unsupported filter value | One of the filter values is outside the published set. No upstream request is made and no credits are charged. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
