# Resolve a Facebook Page ID

Converts a Facebook Page `url` (page URL or username) to the numeric Ad Library `page_id` used by the page endpoints. A bare numeric id or a `profile.php?id=` URL is returned as-is.

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

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `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-id?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.
