Scrape an Instagram profile or post
curl --request POST \
--url https://api.scrapeunblocker.com/social/instagram \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/social/instagram"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/social/instagram', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Plugins
Scrape an Instagram profile or post
Given an Instagram username (or url), returns the public profile as JSON: username, full_name, biography, followers, following, posts_count, verified, private, avatar_url, external_urls and recent_posts (shortcode, url, caption, thumbnail, media type). A post/reel URL returns that single post with its engagement instead. Instagram does not ship per-post counts on a profile page, so profile recent_posts carry no like/comment counts.
Scrape an Instagram profile or post
curl --request POST \
--url https://api.scrapeunblocker.com/social/instagram \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/social/instagram"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/social/instagram', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Your ScrapeUnblocker API key. Apply on every request.
Query Parameters
Instagram username/handle, e.g. 'nasa' (with or without a leading @).
An instagram.com profile or post/reel URL (alternative to username).
Exit-IP country (ISO-2). Leave blank for a smart exit.
Response
JSON with a data object (profile or post).

