On September 4, 2024, we announced the deprecation of the Instagram Basic Display API.
Starting December 4, 2024, all requests to the Instagram Basic Display API will return an error message. We recommend that you migrate your app to the Instagram API to avoid any disruption to your services.
This operation is not supported.
GET /{user-id}/media
Get a collection of Media on a User.
Type | Requirement |
---|---|
|
GET https://graph.instagram.com/{api-version}/{user-id}/media ?access_token={access-token}
Placeholder | Value |
---|---|
| API version. |
| App user's app-scoped user ID (version 11.0+) or raw user ID (all versions). |
Include the following query string parameters to augment the request.
Key | Value |
---|---|
| The app user's Instagram User Access Token. |
| A comma-separated list of Media fields you want returned by field expansion for each Media node in the result set. |
| A Unix timestamp or |
| A Unix timestamp or |
A JSON-formatted object containing the data you requested.
{ "data": [], "paging": {} }
Property | Value |
---|---|
| |
| An object containing paging cursors and next/previous data set retrievial URLs. |
curl -X GET \
'https://graph.instagram.com/v21.0
/10218560180051171/media?access_token=IGQVJ...'
{ "data": [ { "id": "17895695668004550" }, { "id": "17899305451014820" }, { "id": "17896450804038745" }, { "id": "17881042411086627" } ], "paging": { "cursors": { "after": "MTAxN...", "before": "NDMyN..." }, "next": "https://graph.faceb..." } }
This operation is not supported.
This operation is not supported.