Anmelden
Verwenden Sie den JS-Token

Facebook-Scraper funktionieren am besten mit Ihrem JavaScript token.

API-Verwendung

Fügen Sie &scraper=facebook-profile zu einer Crawling API-Anfrage hinzu. URL-kodieren Sie die Ziel-URL im Parameter url.

curl 'https://api.crawlbase.com/?token=YOUR_TOKEN' \
  --data-urlencode 'url=https://www.facebook.com/zuck' \
  --data-urlencode 'scraper=facebook-profile' -G
from crawlbase import CrawlingAPI

api = CrawlingAPI({'token': 'YOUR_TOKEN'})
res = api.get(
    'https://www.facebook.com/zuck',
    {'scraper': 'facebook-profile'}
)

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/zuck',
  { scraper: 'facebook-profile' }
);
const data = JSON.parse(res.body);
require 'crawlbase'
api = Crawlbase::API.new(token: 'YOUR_TOKEN')

res = api.get('https://www.facebook.com/zuck', scraper: 'facebook-profile')
data = JSON.parse(res.body)

Beispiel-Eingabe-URL

Die im Parameter url übergebene URL (zur besseren Lesbarkeit URL-dekodiert):

https://www.facebook.com/zuck

Response-Struktur

JSON-Response-Body. Feldtypen können null sein, wenn die Quellseite den Wert nicht enthält.

name
string
Anzeigename des Profilinhabers.
profile_image
string
URL des Profilbilds.
cover_image
string | null
URL des Titelbilds.
intro
string | null
Bio- / Intro-Text aus dem Profil.
work
array
Aufgeführte berufliche Stationen.
work[].employer
string
Name des Arbeitgebers.
work[].title
string
Berufsbezeichnung.
work[].period
string | null
Zeitraum (z. B. "2004 - present").
education
array
Bildungseinträge mit school, degree, period.
similar_profiles
array<string>
Namen von Profilen, die Facebook als ähnlich anzeigt.

Beispiel-Response

{
  "name": "Mark Zuckerberg",
  "profile_image": "https://scontent.fbcd…/profile.jpg",
  "intro": "Founder and CEO of Meta.",
  "work": [
    {
      "employer": "Meta",
      "title": "Founder & CEO",
      "period": "Feb 2004 – present"
    }
  ]
}