Instagram API for JavaScript
herascrape is a real-time Instagram data API you call over plain HTTPS, so fetch or any Node HTTP client works. Install the client with npm, send your key in the X-Api-Key header, and read public profiles, followers, posts, comments, hashtags and more.
$0.0004 per request ($0.40 per 1,000), flat. Only successful calls are billed.
Install
npm install herascrapeExample
const res = await fetch(
'https://api.herascrape.com/users/username/nasa',
{ headers: { 'X-Api-Key': process.env.HERASCRAPE_KEY } },
)
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const profile = await res.json()
console.log(profile.follower_count)