Facebook URL to ID — Bulk Page, Profile & Group ID Finder avatar

Facebook URL to ID — Bulk Page, Profile & Group ID Finder

Pricing

from $6.00 / 1,000 results

Go to Apify Store
Facebook URL to ID — Bulk Page, Profile & Group ID Finder

Facebook URL to ID — Bulk Page, Profile & Group ID Finder

Convert Facebook page, profile, group, post and video URLs to their numeric IDs in bulk, with name, type and canonical URL.

Pricing

from $6.00 / 1,000 results

Rating

0.0

(0)

Developer

Maged

Maged

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 days ago

Last modified

Share

Convert Facebook URLs to numeric IDs in bulk. Paste page, profile, group, post or video links and get the Facebook ID, type, name, username and canonical URL for each one — thousands per run.

What does Facebook URL to ID do?

Facebook URL to ID resolves Facebook links and usernames to their permanent numeric identifiers. For every input it returns the ID, the type (page, profile or group), the name, the username, the canonical URL, and for pages also the legacy page ID that older tools and ad platforms use. For post, video, photo and event links it also returns the content ID alongside the ID of the page, profile or group it belongs to.

Running on Apify gives you an API, scheduling and integrations with Google Sheets, Zapier, Make and webhooks, so you can resolve IDs inside your existing workflows.

Why use Facebook URL to ID?

  • Ads and audiences — many ad, analytics and social-listening tools ask for page or group IDs, not URLs.
  • Data pipelines — usernames change, numeric IDs don't. Store IDs as stable keys.
  • Deduplication — different URLs (vanity name, profile.php?id=, mobile links) map to the same ID.
  • API work — the Graph API and many integrations require numeric IDs.
  • Research — resolve large lists of pages and groups in minutes instead of inspecting page source by hand.

How to find Facebook IDs in bulk

  1. Click Try for free.
  2. Paste URLs or usernames into Facebook URLs, one per line.
  3. Click Start.
  4. Download the IDs as CSV, Excel or JSON, or fetch them through the API.

Input

FieldDescription
urlsPage, profile, group, post or video URLs, usernames or numeric IDs. Up to 5,000 per run.
proxyConfigurationProxy settings; the default works well.

Output

One row per input. You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

[
{ "input": "https://www.facebook.com/NASA", "status": "ok", "type": "page", "id": "100044561550831",
"legacyPageId": "54971236771", "name": "NASA - National Aeronautics and Space Administration",
"username": "NASA", "canonicalUrl": "https://www.facebook.com/NASA/" },
{ "input": "https://www.facebook.com/groups/python", "status": "ok", "type": "group", "id": "270834543757117", "name": "Python" },
{ "input": "zuck", "status": "ok", "type": "profile", "id": "4", "name": "Mark Zuckerberg", "username": "zuck" },
{ "input": "https://www.facebook.com/NASA/videos/1095816435362573", "status": "ok", "type": "page",
"id": "100044561550831", "contentType": "video", "contentId": "1095816435362573" }
]

Data fields

FieldMeaning
idNumeric ID of the page, profile or group
typepage, profile or group
legacyPageIdClassic page ID (pages only)
name, username, canonicalUrlIdentity
contentType, contentIdFor post/video/photo/event links
status, errorok, not_found or error

How many results will I get?

Exactly one row per unique input, so your output lines up with your list.

Tips

  • Mixed input is fine: vanity URLs, profile.php?id= links, mobile links and bare usernames.
  • Private profiles and closed groups still resolve when Facebook shows their public header.

FAQ

Which ID should I use for ads tools? Most modern tools accept id. Some legacy tools expect legacyPageId for pages.

Is it legal? It reads only public identifiers. Use them in line with Facebook's terms.

Need something else? Open an issue in the Issues tab.