Instagram User ID Lookup API
Send a numeric Instagram user id and get the full current profile as JSON, including the account's latest username, bio, business contacts and follower counts. Essential when creators rename their handles.
Request
GET /v1/users/{user_id} ·
1 credit per successful call
curl "https://api.igramapi.com/v1/users/1234567890" \
-H "Authorization: Bearer YOUR_API_KEY" import requests
response = requests.get(
"https://api.igramapi.com/v1/users/1234567890",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
response.raise_for_status()
print(response.json()) const response = await fetch("https://api.igramapi.com/v1/users/1234567890", {
method: "GET",
headers: {
Authorization: "Bearer YOUR_API_KEY",
},
});
if (!response.ok) throw new Error((await response.json()).error.message);
console.log(await response.json()); <?php
$ch = curl_init("https://api.igramapi.com/v1/users/1234567890");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer YOUR_API_KEY",
],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data); Response
{
"profile": {
"user_id": "1234567890",
"username": "example_creator",
"full_name": "Example Creator",
"biography": "Photographer. Travel and street stories.",
"external_url": "https://example.com",
"bio_links": [
{
"title": "Portfolio",
"url": "https://example.com",
"link_type": "external"
}
],
"category": "Photographer",
"is_business": false,
"account_type": "creator",
"public_email": null,
"public_phone": null,
"profile_picture_url": "https://scontent.cdninstagram.com/v/example/avatar.jpg",
"is_hd_picture": true,
"is_private": false,
"is_verified": true,
"has_story": false,
"followers": 182400,
"following": 311,
"posts_count": 742
},
"cached": false
} All values above are made-up examples. Media links are temporary Instagram CDN addresses.
Parameters
| Name | In | Description |
|---|---|---|
user_idrequired | path | Numeric Instagram user ID. |
Response fields
| Field | Type | Description |
|---|---|---|
profile | object | Full profile object matching the Profile API. |
cached | boolean | True when served from cache. |
Survives handle changes
Usernames change; numeric Instagram user IDs do not. Resolve the current handle anytime.
Same Profile schema
Returns the exact profile object as GET /v1/profiles/{username}.
1 credit per lookup
Cached for fast repeated lookups; missing IDs return profile_not_found.
Why store numeric user IDs
Endpoints such as Followers, Comments and Profile all include numeric user IDs. Storing user_id as your primary key lets you call /v1/users/{user_id} whenever a handle stops resolving.
Frequently asked questions
Does it return the exact same fields as /v1/profiles/{username}?
Yes. Both endpoints share the same ProfileResponse schema.
What happens if the user ID does not exist?
The API returns HTTP 404 with profile_not_found.
Our errors cost nothing. Failures on our side (status 500 or above) and invalid requests (400, 422) are refunded, and every error has the same shape. See error handling and credits and rate limits.
Try the User ID Lookup API free
Create a key and make your first request in minutes. 100 free credits every month.