All scrapers

Social & video

Instagram

instagram.com

86.7% Success rate
6.4s Avg response
In-house anti-bot Protection
6,000 calls Measured over

Instagram is aggressive about session state and shows a login wall to anything it does not trust. At 86.7% it is one of our lower rates, and it is here because partial coverage of a hard target is more useful than pretending it is solved.

What you can extract

  • Public profile: username, bio, follower and following counts
  • Post caption, like and comment counts
  • Post media URLs
  • Hashtag and location pages
  • Public business contact details where shown

How to scrape it

curl -X POST \
  -H "X-ScrapeUnblocker-Key: $SU_API_KEY" \
  "https://api.scrapeunblocker.com/getPageSource?url=https%3A%2F%2Fwww.instagram.com%2F&parsed_data=true"
import requests

resp = requests.post(
    "https://api.scrapeunblocker.com/getPageSource",
    headers={"X-ScrapeUnblocker-Key": SU_API_KEY},
    params={"url": "https://www.instagram.com/", "parsed_data": True},
)
print(resp.text)
import { ScrapeUnblockerClient } from 'scrapeunblocker';

const su = new ScrapeUnblockerClient({ apiKey: process.env.SU_API_KEY });

const results = await su.getPageSource({
  url: 'https://www.instagram.com/',
  parsedData: true,
});
console.log(results);

Requests are POST and take their parameters in the query string. Browser rendering always happens - there is no flag to enable.

Read the API docs

Related scrapers

Start scraping this site today

Free tier included. No credit card required to test it.