Facebook Page
Get structured data for a Facebook page: name, category, follower count, contact info, posts and reactions. For use cases, pricing and up to 5,000 free requests, see the Facebook Scraper page.
Use the JS token
Facebook scrapers work best with your JavaScript token.
API usage
Add &scraper=facebook-page to a Crawling API request. URL-encode the target URL in the url parameter.
curl 'https://api.crawlbase.com/?token=YOUR_TOKEN' \
--data-urlencode 'url=https://www.facebook.com/Amazon/' \
--data-urlencode 'scraper=facebook-page' -Gfrom crawlbase import CrawlingAPI
api = CrawlingAPI({'token': 'YOUR_TOKEN'})
res = api.get(
'https://www.facebook.com/Amazon/',
{'scraper': 'facebook-page'}
)
import json
data = json.loads(res['body'])const { CrawlingAPI } = require('crawlbase');
const api = new CrawlingAPI({ token: 'YOUR_TOKEN' });
const res = await api.get(
'https://www.facebook.com/Amazon/',
{ scraper: 'facebook-page' }
);
const data = JSON.parse(res.body);require 'crawlbase'
api = Crawlbase::API.new(token: 'YOUR_TOKEN')
res = api.get('https://www.facebook.com/Amazon/', scraper: 'facebook-page')
data = JSON.parse(res.body)Example input URL
The URL passed in the url parameter (URL-decoded for readability):
https://www.facebook.com/Amazon/Response shape
JSON response body. Field types may be null when the source page omits the value.
Page name.
Page category (e.g. "Retail company").
About-section text.
Followers.
Page likes.
Contact phone if listed.
External website URL.
Listed address.
Profile image URL.
Cover image URL.
Sample response
{
"name": "Amazon",
"category": "Retail company",
"about": "Amazon's mission is to be Earth's most customer-centric company.",
"followers_count": 29000000,
"likes_count": 29380000,
"website": "https://www.amazon.com",
"address": "410 Terry Ave N, Seattle, WA"
}