Anmelden
Verwenden Sie das JS-Token

Instagram-Scrapers funktionieren am besten mit Ihrem JavaScript token.

API-Nutzung

Fügen Sie &scraper=instagram-profile zu einem Crawling API-Request hinzu. URL-kodieren Sie die Ziel-URL im Parameter url.

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

api = CrawlingAPI({'token': 'YOUR_TOKEN'})
res = api.get(
    'https://www.instagram.com/apple/',
    {'scraper': 'instagram-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.instagram.com/apple/',
  { scraper: 'instagram-profile' }
);
const data = JSON.parse(res.body);
require 'crawlbase'
api = Crawlbase::API.new(token: 'YOUR_TOKEN')

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

Beispiel-Input-URL

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

https://www.instagram.com/apple/

Response-Struktur

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

username
string
Profil-Benutzername (ohne @).
full_name
string
Anzeigename des Profils.
biography
string
Bio-Text.
followers_count
integer
Follower.
following_count
integer
Following.
posts_count
integer
Gesamtanzahl der Posts im Profil.
is_verified
boolean
Flag für verifiziertes Konto.
is_private
boolean
Flag für privates Konto.
profile_pic_url
string
URL des Profilbilds.
recent_posts
array
Bis zu 12 aktuelle Posts (gleiche Struktur wie instagram-post).

Beispiel-Response

{
  "username": "apple",
  "full_name": "Apple",
  "biography": "Welcome to @apple. The latest creativity going on around us.",
  "followers_count": 33800000,
  "following_count": 9,
  "posts_count": 1284,
  "is_verified": true,
  "is_private": false,
  "profile_pic_url": "https://scontent.cdninstagram.com/...jpg"
}