Instagram profile API
Send an Instagram username or numeric id, get the public profile back as JSON: name, bio, website, category, verified and business flags, HD profile picture, and follower, following and post counts. 1 credit per successful call, no Meta app review.
- 1 credit per successful call
- Cached 60 s, repeats free
- $0.83–$1.45 per 1,000
- 10–30 req/s
One profile, one call
Use /v1/users/by-username/{username} when you have a handle, /v1/users/by-id/{id} when you stored ids (ids survive renames). The profile call is the lookup, so it never adds lookup credits.
- Follower, following and post counts
- Bio, external link, category, business and verified flags
- Numeric
idfor every follow-up call
curl "https://api.handlehaul.com/v1/users/by-username/natgeo" \
-H "X-Api-Key: $HANDLEHAUL_API_KEY"
const res = await fetch(
"https://api.handlehaul.com/v1/users/by-username/natgeo",
{ headers: { "X-Api-Key": process.env.HANDLEHAUL_API_KEY } }
);
const { data, meta } = await res.json();
console.log(data, meta.credits_charged);
import os, requests
r = requests.get(
"https://api.handlehaul.com/v1/users/by-username/natgeo",
headers={"X-Api-Key": os.environ["HANDLEHAUL_API_KEY"]},
)
print(r.json()["data"])
// npm install handlehaul
import { HandleHaul } from 'handlehaul';
const hh = new HandleHaul(); // reads HANDLEHAUL_API_KEY
const { data, meta } = await hh.instagram.profileByUsername('natgeo');
console.log(data, meta.credits_charged);
# pip install handlehaul
from handlehaul import HandleHaul
hh = HandleHaul() # reads HANDLEHAUL_API_KEY
res = hh.instagram.profile_by_username("natgeo")
print(res.data, res.meta["credits_charged"])
{
"data": {
"id": "787132",
"username": "natgeo",
"full_name": "National Geographic",
"is_private": false,
"is_verified": true,
"profile_pic_url": "https://scontent.cdninstagram.com/…",
"biography": "Experience the world through the eyes of our photographers.",
"external_url": "https://www.nationalgeographic.com",
"category": "Media/news company",
"is_business": true,
"profile_pic_url_hd": "https://scontent.cdninstagram.com/…",
"counts": {
"followers": 280000000,
"following": 160,
"posts": 30500
}
},
"meta": {
"request_id": "req_Zt0q…",
"cached": false,
"cache_age_seconds": 0,
"credits_charged": 1,
"credits_remaining": 26943
}
}
Endpoints for this job
Each costs 1 credit per successful call; lists take a cursor. Every Instagram endpoint is on the Instagram API page, full parameters in the docs.
- GET/v1/users/by-username/{username}in: usernameProfile by usernameName, bio, avatar, follower/following/post counts, verified, business category
- GET/v1/users/by-id/{id}in: numeric idProfile by user IDSame profile, looked up by numeric ID
- GET/v1/users/{user}in: username or idProfile by username or IDSame profile; send whichever you have
- GET/v1/users/{user}/account-detailsin: username or idAccount detailsWhen the account joined, its country and past username changes
- GET/v1/users/{user}/relatedin: username or id, cursorSimilar accountsAccounts similar to this one
- GET/v1/search/usersin: q, cursorSearch accountsAccounts matching a name
What it costs
1 credit per successful call on every pack, so the bill is calls × the pack's price per 1,000. Naming an account by a handle we have not looked up in the last 7 days adds 1 lookup credit; send the numeric id from any result to skip it. Failed calls are free and credits never expire.
| Pack | Per 1,000 calls | 10,000 profiles 10,000 calls | 1,000 profiles daily for 30 days 30,000 calls | 10,000 profiles daily for 30 days 300,000 calls |
|---|---|---|---|---|
| $29 · 20,000 credits | $1.45 | $14.50 | $43.50 | $435.00 |
| $99 · 80,000 credits | $1.24 | $12.40 | $37.20 | $372.00 |
| $249 · 250,000 credits | $1.00 | $10.00 | $30.00 | $300.00 |
| $499 · 600,000 credits | $0.83 | $8.30 | $24.90 | $249.00 |
A repeat of the same profile within 60 seconds comes from cache and is free. Failed calls (missing accounts) cost nothing. Scale (1M+ calls a month) starts at $0.75 per 1,000. See pricing.
Good to know
Account details
/v1/users/{user}/account-details adds what the profile does not show: when the account joined, its country and past username changes. 1 credit per successful call.
Private accounts
A private account returns its public profile fields with is_private: true. Its posts and lists are not available.
Daily snapshots
Analytics apps store one profile call per account per day and chart growth. Snapshot on a schedule instead of on every page view, and the bill stays flat.
Instagram profile API questions
How do I get an Instagram profile with an API?
GET /v1/users/by-username/natgeo. The response holds the bio, links, category, flags and counts with followers, following and posts. 1 credit per successful call.How do I get someone’s Instagram follower count?
data.counts.followers. For a one-off check, use the free Instagram follower count tool.Is this the official Instagram API?
How fresh is the data?
meta.cache_age_seconds tells you the age. Add fresh=true for a live read at full price.What does it cost to track 1,000 accounts every day?
Related
Instagram followers API
Followers and following, newest first.
Read more →Instagram comments API
Comments, replies and likers of any post.
Read more →Analytics apps
Daily snapshots and post performance.
Read more →More: all Instagram endpoints · Instagram profile API docs · Account details docs · pricing · free tools · MCP, CLI and SDKs
Start with the Instagram profile API
$29 for 20,000 calls on Instagram and TikTok. Credits never expire.
Want to test first? Sandbox keys are free and unlimited, with sample data in the live schema.