Ssocialgraph.dev
API reference / Instagram API / Profile details by user ID

Instagram user ID lookup: profile details by user ID

Public profile details for a numeric Instagram user ID.

2 credits per successful call Errors are never charged No login or OAuth needed

About the Profile details by user ID endpoint

Instagram identifies every account by a permanent numeric user ID, while usernames can change at any time. This endpoint takes the user ID and returns the current username together with the full public profile: name, bio, follower and following counts, verification, business flags and profile picture. Use it to resolve an Instagram user ID to a username or to keep tracking an account after it renames itself.

What you can build with it

  • Convert an Instagram user ID to the current username and profile
  • Track accounts over time without losing them when the username changes
  • Enrich post and comment data, which reference owners by user ID, with full profile details

Request

GET https://socialgraph.dev/api/v1/instagram/profile-by-id

Send your API key as Authorization: Bearer YOUR_API_KEY. Parameters go in the query string.

Parameters

NameTypeDescription
user_id
required
integer Numeric Instagram user ID, e.g. 33719785.

Code examples


Example response

{
    "id": "5821462185",
    "bio": "Everyone has a story to tell.\n#ShotoniPhone",
    "avatar": "https://scontent.cdninstagram.com/v/t51.2885-19/20635165_….jpg",
    "username": "apple",
    "bio_links": [
        {
            "url": "http://apple.co/Apple-Support",
            "title": "Apple Support"
        }
    ],
    "followers": 38073627,
    "following": 9,
    "full_name": "apple",
    "is_private": false,
    "is_business": false,
    "is_verified": true,
    "media_count": null,
    "external_url": "http://apple.co/Apple-Support",
    "is_professional_account": null
}

Errors

StatusMeaningCharged?
401Missing, invalid or revoked API keyNo
402Not enough credits (insufficient_credits)No
404The account or post doesn't existNo
422Missing or invalid parametersNo
502 / 503The data source is temporarily unavailableNo

All error codes →

Profile details by user ID API: frequently asked questions

How do I find an Instagram user ID?

Call the Profile details by username endpoint: its response includes the account's numeric id. Post and comment responses also include the owner's user ID.

Can I get an Instagram username from a user ID?

Yes. The response includes the account's current username along with the rest of the public profile.

Why look up by user ID instead of username?

User IDs never change, so they are the reliable key for storing and tracking accounts. Usernames can be changed by the account owner at any time.

What does the API return for an ID that doesn't exist?

A 404 not-found response, which is never charged.

How much does the Profile details by user ID endpoint cost?

2 credits per successful call (0.004 USD at 500 credits per dollar). Errors, "not found" responses and invalid input are never charged, and credits never expire.

Can I try the Profile details by user ID API without signing up?

Yes. The live demo on this page runs a real request with a fixed sample input, free and without an account. Creating a free account gives you 100 credits to test every endpoint with your own inputs.

Try it live: Profile details by user ID GET

🔒 Preset demo input. Live demos use Instagram's own account, @instagram. Sign up free to use your own.

Start with 100 free credits

Create an account in seconds. No card, no subscription. Credits never expire.

Create free account →