Facebook URL to Id Extractor avatar

Facebook URL to Id Extractor

Pricing

$14.99/month + usage

Go to Apify Store
Facebook URL to Id Extractor

Facebook URL to Id Extractor

Converts any Facebook profile, page, group, or post URL into its unique numeric ID. Ideal for automation workflows, API integrations, data mapping, analytics, and tools that require stable Facebook identifiers at scale

Pricing

$14.99/month + usage

Rating

0.0

(0)

Developer

Scrapio

Scrapio

Maintained by Community

Actor stats

0

Bookmarked

16

Total users

1

Monthly active users

3 days ago

Last modified

Share

πŸ†” Facebook URL β†’ ID Plus

Convert public Facebook URLs into stable numeric IDs β€” and resolve numeric IDs back into canonical URLs. This Facebook ID scraper / Facebook URL to ID converter takes pages, groups, posts, videos, reels, and profile links and returns clean, typed columns (name, username, canonical URL, category, verified status, follower/like counts, member counts, profile picture, ad-library ID, and post author) instead of raw JSON blobs.

Ideal for CRMs, ad tooling, analytics dashboards, social-media monitoring, and research pipelines that need a reliable Facebook link β†’ ID mapping.

✨ What it does

  • URL β†’ numeric ID for public Pages, Groups, Posts / Videos / Reels / Watch / Story links, and Profiles.
  • Reverse mode: numeric ID β†’ canonical URL β€” a differentiator most converters don't offer. Give it 100064368354094 and get back the canonical page URL and name.
  • Clean typed columns (not stringified JSON): entityName, username, canonicalUrl, category, isVerified, followerCount, likeCount, memberCount, joinState, profilePictureUrl, adLibraryId, authorName, authorId, createdAt.
  • Broad input handling: full URLs, @handle, bare vanity (NintendoAmerica), profile.php?id=, permalink.php, story.php, /reel/, /watch, fb.me, m.facebook.com, and l.facebook.com redirect wrappers.
  • No fabricated data: a link that cannot be resolved to a genuine numeric ID is skipped β€” never emitted with a guessed or null ID, and never charged.

πŸ“₯ Input

FieldTypeDescription
startUrlsarrayFacebook URLs, @handles, bare vanities, or (with reverse mode) numeric IDs. One per line.
reverseModebooleanON (default): bare numeric input is treated as an ID and resolved to its canonical URL. OFF: numeric input is looked up as a profile.php URL.
entityTypesarrayOptional allow-list: page, profile, group, post. Empty = keep all.
includeRawJsonbooleanAdd a raw field with the underlying Facebook JSON object. Off by default.
proxyConfigurationobjectApify Proxy. Residential is recommended; the Actor auto-escalates datacenter β†’ residential on a block.

Example input

{
"startUrls": [
"https://www.facebook.com/NintendoAmerica",
"https://www.facebook.com/groups/9gag",
"https://www.facebook.com/reel/1234567890",
"100064368354094"
],
"reverseMode": true,
"entityTypes": [],
"proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}

πŸ“€ Output

Each resolved input produces one flat, typed row. Example (page):

{
"facebookUrl": "https://www.facebook.com/NintendoAmerica",
"facebookId": "100064368354094",
"resolved": true,
"type": "page",
"entityName": "Nintendo of America",
"username": "NintendoAmerica",
"canonicalUrl": "https://www.facebook.com/NintendoAmerica",
"category": null,
"isVerified": true,
"followerCount": 5338483,
"likeCount": 5338483,
"memberCount": null,
"joinState": null,
"adLibraryId": "119240841493711",
"profilePictureUrl": "https://scontent.xx.fbcdn.net/...",
"authorName": null,
"authorId": null,
"createdAt": null,
"postId": null,
"scrapedAt": "2026-07-02T12:00:00Z"
}

Groups add memberCount + joinState; posts add authorName, authorId, createdAt, and postId (the pfbid token) alongside the numeric facebookId (the story ID).

🧠 Notes & limits

  • Works on publicly reachable Facebook content only; no login or private data.
  • Follower/like/member counts are parsed from Facebook's public Open Graph metadata and may be absent for some entities β€” in that case the field is null, never faked.
  • Resolution depends on Facebook's anti-bot behaviour. Residential proxy gives the best success rate; the run log reports the real resolution rate.

Only public, login-free data is accessed. You are responsible for complying with Facebook's terms and applicable laws when using the results.