User

Represents an Instagram user profile.

App-scoped user IDs (ASIDs) have been introduced with API version 11.0. You may continue querying users by their raw user IDs or their equivalent ASIDs, however, version 11.0+ calls will receive ASIDs in response.

ASIDs will replace raw user IDs in approximately two years, when version 10.0 is deprecated, so we recommend that you begin mapping your app users to their equivalent ASIDs.

Creating

This operation is not supported.

Reading

GET /{user-id}

Get fields and edges on a User.

Limitations

Instagram Legacy API User IDs are not supported.

Requirements

TypeRequirement

Access Tokens

Instagram User

Permissions

instagram_graph_user_profile. The media_count field also requires instagram_graph_user_media.

Request Syntax

GET https://graph.instagram.com/{api-version}/{user-id}
  ?fields={fields}
  &access_token={access-token}

Path Parameters

PlaceholderValue

{api-version}
String

API version.

{user-id}
Required
String

App user's app-scoped user ID (version 11.0+) or raw user ID (all versions).

Query String Parameters

Include the following query string parameters to augment the request.

KeyValue

access_token
Required
String

The app user's Instagram User Access Token.

fields
Comma-separated list

A comma-separated list of fields and edges you want returned. If omitted, default fields will be returned.

Fields

You can use the fields query string parameter to request the following fields on a User.

Field NameDescription

account_type

The User's account type. Can be BUSINESS, MEDIA_CREATOR, or PERSONAL.

id

The app user's app-scoped ID (version 11.0+) or raw user ID (version 10.0 and lower).

media_count

The number of Media on the User. This field requires the instagram_graph_user_media permission.

username

The User's username.

Edges

You can request the following edges as path parameters or by using the fields query string parameter.

EdgeDescription

media

Get a list of Media on the User.

Response

A JSON-formatted object containing default and requested fields and edges.

{
  "{field}":"{value}",
  ...
}

cURL Example

Request

curl -X GET \
  'https://graph.instagram.com/v12.0/10218560180051171?fields=id,username&access_token=IGQVJ...'

Response

{
  "id": "17841405793187218",
  "username": "jayposiris"
}

Updating

This operation is not supported.

Deleting

This operation is not supported.