API · Instagram
GET /instagram/users/by-id/{user_id}
An Instagram profile looked up by numeric account id.
| Request | GET /v1/instagram/users/by-id/{user_id} |
| Operation id | instagram.user.basic |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
An Instagram profile looked up by numeric account id.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | yes | Numeric account id (pk). Example: 787132. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The profile. | InstagramUserResponse |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The account or post does not exist, or was removed. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Instagram is temporarily unavailable. Retryable; nothing was charged. | Error |
InstagramUserResponse fields
| Field | Type | Description |
|---|---|---|
user | InstagramUser | |
recent_media | object | null | The latest posts (about 12), null with trim=true. |
Errors use one shape everywhere; see Errors for every code and what to do.