Facebook URL to ID Scraper
Pricing
from $0.34 / 1,000 item extracteds
Facebook URL to ID Scraper
Resolve public Facebook URLs into stable numeric IDs, typed canonical URLs, and clear per-link resolution metadata.
Pricing
from $0.34 / 1,000 item extracteds
Rating
0.0
(0)
Developer
Hanna Nosova
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
11 days ago
Last modified
Categories
Share
Facebook ID Finder — URL to Numeric ID Scraper
Use this Facebook ID finder to convert public Facebook URLs into stable numeric IDs, typed canonical URLs, and integration-ready resolution records. Process pages, profiles, posts, photos, reels, videos, groups, and events in one batch without logging in or scraping private content. It works as a bulk Facebook page ID finder and Facebook URL converter for downstream workflows.
Use the Actor to normalize social links before API calls, CRM enrichment, deduplication, analytics joins, or spreadsheet exports. Numeric URL formats resolve locally; public vanity Page and Profile links are resolved when Facebook exposes a target-bound public identity.
Input example
{"facebookUrls": [{"url": "https://www.facebook.com/nasa"},{"url": "https://www.facebook.com/profile.php?id=4"},{"url": "https://www.facebook.com/reel/10155466919515153"}],"maxItems": 3}
Output example
{"sourceUrl": "https://www.facebook.com/profile.php?id=4","canonicalUrl": "https://www.facebook.com/profile.php?id=4","facebookId": "4","objectType": "profile","parentId": null,"ownerHandle": null,"canonicalEntityUrl": "https://www.facebook.com/profile.php?id=4","resolutionMethod": "query_parameter","status": "resolved","error": null,"resolvedAt": "2026-08-13T12:00:00.000Z"}
What Facebook URLs are supported?
- Pages and profiles: numeric paths,
profile.php?id=..., and publicly visible vanity aliases - Posts: numeric
/posts/and group post/permalink paths, plusstory_fbid - Photos:
photo.php?fbid=... - Videos and reels:
/videos/,/reel/, andwatch/?v=... - Groups and events: numeric
/groups/IDand/events/IDlinks - Desktop, mobile,
facebook.com, andfb.comhosts
Opaque pfbid... tokens, vanity groups/events, private objects, deleted links, and login-only pages may be returned as unresolved. The Actor never guesses an ID.
Input settings
| Field | Type | Description |
|---|---|---|
facebookUrls | array | One or more public Facebook URL objects, up to 10,000 |
maxItems | integer | Maximum unique URLs to process, from 1 to 10,000 |
The runtime also accepts facebookUrls entries as plain strings through the API. Legacy startUrls and fbUrls aliases remain accepted for workflow compatibility.
Output fields
| Field | Description |
|---|---|
sourceUrl | Exact URL supplied by the user |
canonicalUrl | Normalized HTTPS Facebook URL with tracking removed |
facebookId | Stable numeric ID, or null when unresolved |
objectType | Page, profile, group, event, post, photo, video, reel, or unknown |
parentId | Explicit numeric owner/parent from the source URL, when present |
ownerHandle | Explicit vanity owner handle from the source URL, when present |
canonicalEntityUrl | Type-specific URL built from the resolved numeric ID |
resolutionMethod | How the ID was resolved |
status | resolved or unresolved |
error | Clear reason for an unresolved row |
resolvedAt | ISO 8601 processing timestamp |
Input recipes
Resolve known numeric objects cheaply
{"facebookUrls":[{"url":"https://www.facebook.com/groups/20531316728"},{"url":"https://www.facebook.com/events/113779332012976"}]}
Normalize mixed URLs for a CRM import
{"facebookUrls":[{"url":"https://m.facebook.com/profile.php?id=4&utm_source=test"},{"url":"https://www.facebook.com/nasa"}],"maxItems":2}
Who is it for?
- Developers normalizing Facebook links before API calls
- Data teams deduplicating social profiles and joining records by stable IDs
- CRM and automation teams validating public links in bulk
- Analysts preparing clean Facebook URL datasets for spreadsheets or databases
Pricing
This Actor uses pay-per-event pricing: one Start event per run and one Item resolved event for each successfully resolved row. Unresolved diagnostic rows do not incur an item event. See the live Pricing tab for current plan-specific rates.
Tips and limits
- Keep numeric IDs in links whenever your upstream source provides them.
- Filter on
status = resolvedbefore passing IDs to downstream APIs. - Preserve
sourceUrlfor lineage and usefacebookIdfor stable joins. - Duplicate normalized URLs are processed once per run.
- One inaccessible URL does not discard successful rows from the same batch.
- Facebook can change what anonymous public pages expose; unresolved rows explain the limitation.
API usage
JavaScript
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: process.env.APIFY_TOKEN });const run = await client.actor('fetch_cat/facebook-url-to-id-scraper').call({facebookUrls: [{ url: 'https://www.facebook.com/nasa' }],maxItems: 1,});const { items } = await client.dataset(run.defaultDatasetId).listItems();
Python
from apify_client import ApifyClientclient = ApifyClient("YOUR_APIFY_TOKEN")run = client.actor("fetch_cat/facebook-url-to-id-scraper").call(run_input={"facebookUrls": [{"url": "https://www.facebook.com/profile.php?id=4"}],"maxItems": 1,})
cURL
curl -X POST "https://api.apify.com/v2/acts/fetch_cat~facebook-url-to-id-scraper/runs?token=YOUR_APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"facebookUrls":[{"url":"https://www.facebook.com/nasa"}],"maxItems":1}'
MCP and AI agents
Add Apify MCP to Claude Code:
$claude mcp add apify --transport http "https://mcp.apify.com?tools=fetch_cat/facebook-url-to-id-scraper"
Or configure any MCP-compatible client:
{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=fetch_cat/facebook-url-to-id-scraper"}}}
Example prompts:
- “Resolve these Facebook URLs and return only records whose status is resolved.”
- “Convert this list of Facebook page, group, and post links to numeric IDs.”
- “Normalize these Facebook links and preserve the source URL for each row.”
Use only public URLs you are authorized to process. Facebook IDs can be personal data when linked to individuals, so apply appropriate privacy and retention controls. The Actor does not log in, bypass access controls, or access private Facebook content.
Related Actors
- Facebook Pages Scraper for public Page details
- Facebook Reels Scraper for public reel records
- Facebook Marketplace Scraper for marketplace listings
- Facebook Groups Scraper for public group data
- Facebook Posts Scraper for public post records
FAQ
What data can I export with Facebook ID Finder?
Each row includes the source and canonical URLs, numeric Facebook ID, object type, parent ID when present, owner handle, canonical entity URL, resolution method, status, error detail, and resolution timestamp. Export the dataset as JSON, CSV, Excel, XML, or another Apify-supported format.
Can I run Facebook URL to ID Scraper through an API, schedule, or MCP client?
Yes. Use the Apify API or client libraries for programmatic runs, Schedules for recurring batches, webhooks for completion events, or the Apify MCP server from a compatible AI client.
How much does it cost to use Facebook URL to ID Scraper?
The Actor charges one Start event per run and one Item extracted event only for each successfully resolved Facebook ID. Rates vary by Apify plan; the live Pricing tab is authoritative.
Why is a vanity group unresolved?
Vanity groups do not consistently expose a public numeric identity. Use a URL containing the numeric group ID.
Why is a pfbid post unresolved?
A pfbid is opaque. The Actor will not mislabel it as a stable numeric ID.
Are unresolved rows charged?
No item event is charged for an unresolved row; it remains in the dataset so your workflow can review it.
Does this Actor scrape Facebook content?
No. It resolves URL identity and normalization metadata only.
Support
If a public URL format should resolve but does not, open an issue on the Actor page with a non-private example URL and the run ID. Do not share credentials or private links.


