List Meta ads by page URL
Lists Meta Ad Library ads for a Facebook Page given its url (page URL or username), with no numeric page_id needed. Filters and cursor pagination match Get Page Ads.
Authorization
ApiKeyAuth In: header
Query Parameters
ISO 3166-1 alpha-2 country code. Examples: IN, US, GB, DE.
2 <= length <= 2Ad delivery status. all = active and inactive ads, active = currently running ads, inactive = stopped ads.
Value in
- "all"
- "active"
- "inactive"
Creative format filter. all = every format, image = static images, video = videos, meme = image/text meme-style creatives.
Value in
- "all"
- "image"
- "video"
- "meme"
Sort by total impressions.
Value in
- "total_impressions"
Sort direction. Use with sort_mode.
Value in
- "desc"
Start Date in YYYY-MM-DD format.
^\d{4}-\d{2}-\d{2}$End Date in YYYY-MM-DD format.
^\d{4}-\d{2}-\d{2}$Pass pageInfo.cursor from the previous response to get the next page. Omit for the first page.
Number of ads to return per request. Accepted range: 1-50.
1 <= value <= 50Comma-separated ISO 639-1 language codes, for example en,hi.
Comma-separated platforms. Accepted values: FACEBOOK, INSTAGRAM, AUDIENCE_NETWORK, MESSENGER.
Set to true to return the unprocessed Ad Library payload instead of the normalized response.
A public Facebook Page URL or its username/handle — for example https://www.facebook.com/nike, facebook.com/nike, or just nike. A profile.php?id= URL or a bare numeric Page ID is accepted and used as-is.
1 <= length <= 2000curl -X GET "https://example.com/v1/meta/page-by-url?url=https%3A%2F%2Fwww.facebook.com%2Fnike" \ -H "x-api-key: YOUR_API_KEY"{ "data": { "items": [ { "ad_archive_id": "string", "page_id": "string", "property1": null, "property2": null } ], "pageInfo": { "cursor": "string", "hasNextPage": true } }}