toolzerhub API Docs

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.

1 credit / requestBilled only on success
GET
/v1/meta/page-id

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Query Parameters

url*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.

Length1 <= length <= 2000
curl -X GET "https://example.com/v1/meta/page-id?url=https%3A%2F%2Fwww.facebook.com%2Fnike" \  -H "x-api-key: YOUR_API_KEY"
{  "data": {    "page_id": "string",    "input": "string",    "source": "resolved_from_url"  }}