Skip to content

GET/v1/users/by-username/{username}

Get a public Instagram profile as JSON: bio, website, category, verified status, HD profile picture, and follower, following and post counts.

GET https://api.handlehaul.com/v1/users/by-username/{username}
GET https://api.handlehaul.com/v1/users/by-id/{id}
GET https://api.handlehaul.com/v1/users/{user}            # username or id

All three return the same profile. Use by-id when you stored ids (ids survive renames), by-username when you have a handle, and {user} when you accept either.

Cost: 1 credit per successful call (free from cache). Profiles are cached for 60 seconds.

Try itsandbox data · no key needed

Every example on this page follows what you type here.

GET /v1/users/natgeo

Sample data in the live schema. Use private_x, ghost_x or hidden_x to see errors.

Parameters

usernamepathrequired
by-username: an Instagram username (natgeo), always read as a username.
idpathrequired
by-id: a numeric Instagram user id (787132).
userpathrequired
{user} route: a username or a numeric id. All digits = an id; write @12345 (or add by=username) for an all-digit username. No lookup credit here: the lookup is the call.
freshqueryoptional
true skips the cache. Same as the header Cache-Control: no-cache.

Response

Private accounts return their public profile fields with is_private: true; their lists and posts are not available.

FAQ

How do I get someone's Instagram follower count with an API?

Call GET /v1/users/by-username/{username}. The follower count is in data.counts.followers, next to following and posts.

How fresh is the profile data?

Answers are cached for 60 seconds (a cached answer is free) and meta.cache_age_seconds tells you the age. Pass fresh=true for a live fetch.

Can I get an Instagram profile by user id?

Yes: GET /v1/users/by-id/{id} returns the same profile for a numeric user id.

↑↓ to move↵ to open