API · Facebook
GET /facebook/ads/{id}
One Meta Ad Library ad with its details panel (EU reach by age and gender, payer, beneficiary).
| |
|---|
| Request | GET /v1/facebook/ads/{id} |
| Operation id | facebook.ads.get |
| Cost | 2 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
One Meta Ad Library ad with its details panel (EU reach by age and gender, payer, beneficiary).
| Name | Type | Required | Description |
|---|
id | string | yes | Ad Library id, or its facebook.com/ads/library/?id=… URL. Example: 1550534860016399. |
| Name | Type | Required | Description |
|---|
country | string | no | ISO 3166-1 alpha-2 country the ads reached (US, GB, DE…), or ALL (default). |
| Status | Meaning | Schema |
|---|
200 | The ad and its details panel. | FacebookAdResponse |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The ad, Page or advertiser is not in the Meta Ad Library. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Facebook is temporarily unavailable. Retryable; nothing was charged. | Error |
| Field | Type | Description |
|---|
ad | FacebookAd | One ad in the Meta Ad Library. |
ad_details | FacebookAdDetails | Null when Meta did not return the details panel for this ad. |
Errors use one shape everywhere; see Errors for every code and what to do.