Facebook URL to ID avatar
Facebook URL to ID
Try for free

No credit card required

View all Actors
Facebook URL to ID

Facebook URL to ID

apify/facebook-url-to-id
Try for free

No credit card required

Scraping any Facebook URL as data object with internal Facebook ID and metadata if-when available.

Facebook URL to Identified object

Allowed any publicly available (without login) Facebook URLs for desktop web https://www.facebook.com/*. Supported pages, posts, videos, groups and more. For profiles only ID might be available (depends on profile privacy).

Input example

Redirect from https://www.facebook.com/nintendo resolved as https://www.facebook.com/NintendoAmerica and public group germtheory.vs.terraintheory resolved as group with post.

1{
2   "fbUrls": [
3        "https://www.facebook.com/nintendo",
4        "https://www.facebook.com/NintendoAmerica/posts/pfbid02JESEPSvyiLGjvewuFYhviAwQjTdxZW1ZfnWTeCzxVWgZLT3xgoLHVDwvuenVRyKKl",
5        "https://www.facebook.com/NintendoAmerica/posts/pfbid02AB8FNERMDYwpsgVJVYaEQ8K2vpH4JLzPTvTB71WqiMfNQhu99ZMBmqvKZSt2tqT4l",
6        "https://www.facebook.com/groups/germtheory.vs.terraintheory/permalink/5671657859577842/"
7    ]
8}

Output example

details stripped since too dirrerent across data. Pattern is url as was provided in input, facebookId calculated by actor from data (more like a suggestion) and typed object with details:

1[
2   {
3      "url": "https://www.facebook.com/nintendo",
4      "facebookId": "119240841493711",
5      "page": { ...details }
6   },
7   {
8      "url": "https://www.facebook.com/groups/germtheory.vs.terraintheory",
9      "facebookId": "430027810407566",
10      "group": { ...details }
11   },
12   {
13      "url": "https://www.facebook.com/NintendoAmerica/videos/432168259120897/",
14      "facebookId": "432168259120897",
15      "video_home_www_related_videos_section": { ...details }
16   }
17]
Developer
Maintained by Apify
Actor metrics
  • 133 monthly users
  • 99.7% runs succeeded
  • 0.5 days response time
  • Created in Dec 2022
  • Modified 3 days ago
Categories