Developer tutorial
How to scrape Instagram profiles with Node.js (2026)
This tutorial shows how to scrape Instagram profiles in Node.js using the SocialCrawl API. You get a profile's follower and following counts, bio, verification status, post count, external URL, avatar, and a computed engagement rate from one GET request, with no Instagram developer account, proxies, or HTML parsing. The code below is runnable as-is, and the response underneath it is a real, unedited call.
Code tested July 2026
How it works
- 1Get a free API keyCreate a SocialCrawl account and copy your API key from the dashboard. Every new account starts with free credits.
- 2Set up Node.jsUse Node.js 18 or newer, which includes the fetch API with no extra packages.
- 3Call the Instagram Profile endpointSend a GET request to /v1/instagram/profile with your API key in the x-api-key header and the `handle` parameter.
- 4Read the responseParse the JSON. SocialCrawl returns a profile's follower and following counts, bio, verification status, post count, external URL, avatar, and a computed engagement rate in one normalized schema, so you write no HTML parsing or proxy code.
The code
A real, unedited response from the request above.
const params = new URLSearchParams({
"handle": "nasa",
});
const response = await fetch(
`https://www.socialcrawl.dev/v1/instagram/profile?${params}`,
{ headers: { "x-api-key": "YOUR_API_KEY" } },
);
const data = await response.json();
console.log(data);[ RESPONSE ]
{
"success": true,
"platform": "instagram",
"endpoint": "/v1/instagram/profile",
"data": {
"author": {
"id": "528817151",
"username": "nasa",
"display_name": "NASA",
"avatar_url": "https://scontent-ord5-2.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg?stp=dst-jpg_s320x320_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-ord5-2.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gEUxJkBYYopmPB73LG7FoEImUwsO0sbFN_kRJMlX69O73lo1TZfKkSmIM7IOUpHFIM&_nc_ohc=Nw8H9lTngQgQ7kNvwGCEhU8&_nc_gid=K9-QyXdZqJ5WsIpwpG8log&edm=AOQ1c0wBAAAA&ccb=7-5&oh=00_AQBeM0kPm5dy2saIGZVz6pV-YSOJiOShKlFQfdmunfzu2Q&oe=6A6353A9&_nc_sid=8b3546",
"bio": "Making the seemingly impossible, possible. ✨",
"verified": true,
"followers": 104306949,
"following": 91,
"posts_count": 4853,
"likes_count": null,
"url": "https://www.nasa.gov/",
"private": false,
"joined_at": null
},
"computed": {
"engagement_rate": 0.001933,
"language": "en",
"content_category": "other",
"estimated_reach": null
}
},
"credits_used": 1,
"credits_remaining": 9999,
"request_id": "req_example000000",
"cached": false
}Prefer another language?
FAQ
Have a question? We got answers
Find answers to frequently asked questions about SocialCrawl's API, pricing, and capabilities.
Contact usDo I need a Instagram developer account to scrape Instagram profiles?
No. SocialCrawl handles authentication and proxies upstream, so you never register a Instagram app, manage OAuth tokens, or run your own scrapers. One API key returns Instagram data directly.
What does the Instagram Profile endpoint return?
It returns a profile's follower and following counts, bio, verification status, post count, external URL, avatar, and a computed engagement rate. The response is normalized into SocialCrawl's unified schema, identical in shape across every platform.
How much does it cost to scrape Instagram profiles?
Each call costs a small number of credits, and new accounts start with free credits. There are no monthly minimums, so you pay only for the calls you make.
Can I use this Node.js code in production?
Yes. The snippet on this page is the real request against the live API. For production, add error handling and follow the response cursor to paginate through large result sets.
Ask AI about SocialCrawl
