Docs
Log in
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' -G
from 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.

name
string
Page name.
category
string
Page category (e.g. "Retail company").
about
string
About-section text.
followers_count
integer
Followers.
likes_count
integer
Page likes.
phone
string | null
Contact phone if listed.
website
string | null
External website URL.
address
string | null
Listed address.
profile_image
string
Profile image URL.
cover_image
string
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"
}