# 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`.

- Platform: Meta Ads
- Request: `GET https://api.toolzerhub.com/v1/meta/page-by-url`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/meta-ads/get-page-ads-without-id

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `country` | query | no | string | ISO 3166-1 alpha-2 country code. Examples: IN, US, GB, DE. |
| `active_status` | query | no | enum: all, active, inactive | Ad delivery status. all = active and inactive ads, active = currently running ads, inactive = stopped ads. |
| `media_type` | query | no | enum: all, image, video, meme | Creative format filter. all = every format, image = static images, video = videos, meme = image/text meme-style creatives. |
| `sort_mode` | query | no | enum: total_impressions | Sort by total impressions. |
| `sort_direction` | query | no | enum: desc | Sort direction. Use with sort_mode. |
| `date_min` | query | no | string | Start Date in YYYY-MM-DD format. |
| `date_max` | query | no | string | End Date in YYYY-MM-DD format. |
| `cursor` | query | no | string | Pass pageInfo.cursor from the previous response to get the next page. Omit for the first page. |
| `page_size` | query | no | integer | Number of ads to return per request. Accepted range: 1-50. |
| `content_languages` | query | no | string | Comma-separated ISO 639-1 language codes, for example en,hi. |
| `publisher_platforms` | query | no | string | Comma-separated platforms. Accepted values: FACEBOOK, INSTAGRAM, AUDIENCE_NETWORK, MESSENGER. |
| `raw` | query | no | boolean | Set to true to return the unprocessed Ad Library payload instead of the normalized response. |
| `url` | query | yes | string | 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. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/meta/page-by-url?url=<url>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
