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.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more

Node.js

Python

curl

1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7  "fbUrls": [
8    {
9      "url": "https://www.facebook.com/nintendo"
10    },
11    {
12      "url": "https://www.facebook.com/NintendoAmerica/posts/pfbid02JESEPSvyiLGjvewuFYhviAwQjTdxZW1ZfnWTeCzxVWgZLT3xgoLHVDwvuenVRyKKl"
13    },
14    {
15      "url": "https://www.facebook.com/NintendoAmerica/posts/pfbid02AB8FNERMDYwpsgVJVYaEQ8K2vpH4JLzPTvTB71WqiMfNQhu99ZMBmqvKZSt2tqT4l"
16    },
17    {
18      "url": "https://www.facebook.com/groups/germtheory.vs.terraintheory/permalink/5671657859577842/"
19    }
20  ]
21}
22EOF
23
24# Run the Actor using an HTTP API
25# See the full API reference at https://docs.apify.com/api/v2
26curl "https://api.apify.com/v2/acts/apify~facebook-url-to-id/runs?token=$API_TOKEN" \
27  -X POST \
28  -d @input.json \
29  -H 'Content-Type: application/json'
Developer
Maintained by Apify
Actor metrics
  • 92 monthly users
  • 100.0% runs succeeded
  • days response time
  • Created in Dec 2022
  • Modified 9 days ago
Categories