# Instagram Get User By Id API

> Resolve an Instagram profile from a numeric user id, no login. Anonymous returns identity (username, profile picture) — see detailLevel.

Category: [Social Media APIs](https://upapi.io/apis/social-media) · Last updated 2026-11-02

## How to call it

- Endpoint: `POST https://api.upapi.io/instagram-get-user-by-id.post`, key in the `X-Api-Key` header, JSON body.
- Cost: 15 weighted units per call.
- Timeout: 20 seconds.
- Cache: identical requests are served from cache for 300 seconds, unbilled.
- Try it without writing code: https://app.upapi.io/try/instagram-get-user-by-id.post

```bash
curl -X POST https://api.upapi.io/instagram-get-user-by-id.post \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "userId": "example" }'
```

## Request parameters

- `userId` (string, required) — Numeric Instagram user id (pk)
- `proxyUrl` (string) — Optional proxy URL. Instagram 401-gates anonymous reads per egress IP.

## Response fields

- `pk` (string, required)
- `fbid` (string)
- `success` (boolean, required)
- `bioLinks` (array, required)
- `category` (string)
- `fullName` (string)
- `username` (string, required)
- `biography` (string)
- `elapsedMs` (integer, required)
- `fetchedAt` (string, required)
- `isPrivate` (boolean)
- `isBusiness` (boolean)
- `isVerified` (boolean)
- `mediaCount` (integer)
- `detailLevel` (string, required) — 'stub' = identity only (what anonymous returns today); 'full' = counts and profile detail were disclosed
- `externalUrl` (string)
- `publicEmail` (string)
- `businessEmail` (string)
- `businessPhone` (string)
- `followerCount` (integer) — null = not disclosed by this surface, never 'zero followers'
- `profilePicUrl` (string)
- `followingCount` (integer)
- `isProfessional` (boolean)

## Example request and response

The example response is generated from the published output schema: it shows the shape and field names, not values from a recorded call.

```json
{
  "userId": "example"
}
```

```json
{
  "pk": "example",
  "fbid": "example",
  "success": false,
  "bioLinks": [
    "example"
  ],
  "category": "example",
  "fullName": "example",
  "username": "torvalds",
  "biography": "example",
  "elapsedMs": 1,
  "fetchedAt": "example",
  "isPrivate": false,
  "isBusiness": false,
  "isVerified": false,
  "mediaCount": 1,
  "detailLevel": "example",
  "externalUrl": "example",
  "publicEmail": "example",
  "businessEmail": "example",
  "businessPhone": "example",
  "followerCount": 1,
  "profilePicUrl": "example",
  "followingCount": 1,
  "isProfessional": false
}
```

## Frequently asked questions

### How much does the Instagram Get User By Id API cost per call?

Each call spends 15 weighted units of your plan's monthly quota. Full pricing is at https://upapi.io/pricing.

### How do I authenticate to the Instagram Get User By Id API?

Send your key in the X-Api-Key header. A free guest key is available without creating an account.

### Are Instagram Get User By Id API responses cached?

Yes — identical requests are served from cache for 300 seconds, and a cache hit is not billed.

## More Social Media APIs

- [Instagram Get User Profile](https://upapi.io/apis/social-media/instagram-get-user-profile)
- [Instagram Get User Posts](https://upapi.io/apis/social-media/instagram-get-user-posts)
- [Instagram Get Post Info](https://upapi.io/apis/social-media/instagram-get-post-info)
- [Instagram Get Post Commenters](https://upapi.io/apis/social-media/instagram-get-post-commenters)
- [Instagram Check Account](https://upapi.io/apis/social-media/instagram-check-account)
- [Instagram Discover Location Posts](https://upapi.io/apis/social-media/instagram-discover-location)
- [Instagram Check Account Health](https://upapi.io/apis/social-media/instagram-check-account-health)
- [TikTok Get User Profile](https://upapi.io/apis/social-media/tiktok-get-user-profile)
