Ssocialgraph.dev
API reference / Instagram / Follower & following counts

Follower & following counts

Follower count, following count and user ID for a username.

2 credits per successful call Errors are never charged

Request

GET https://socialgraph.dev/api/v1/instagram/follow-counts

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

Parameters

NameTypeDescription
username
required
string Instagram username, e.g. apple.

Code examples


Example response

{
    "id": "5821462185",
    "followers": 38073399,
    "following": 9
}

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 →

Try it live: Follower & following counts 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 →