API · Instagram
GET /instagram/users/{username}
A public Instagram profile: bio, links, follower and post counts, highlights, and its latest posts.
| |
|---|
| Request | GET /v1/instagram/users/{username} |
| Operation id | instagram.user.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
A public Instagram profile: bio, links, follower and post counts, highlights, and its latest posts.
| Name | Type | Required | Description |
|---|
username | string | yes | Username, with or without the @, or a profile URL. Example: natgeo. |
| Name | Type | Required | Description |
|---|
trim | "true" | "false" | no | true: profile only (no recent posts, no media_count). One of true, false. |
| Status | Meaning | Schema |
|---|
200 | The profile and its latest posts. | 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 |
| 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.