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.
Represents an image, video, or album.
This operation is not supported.
GET /{media-id}
Get Fields and Edges on an image, video, or album.
Type | Requirement |
---|---|
|
GET https://graph.instagram.com/{media-id} ?fields={fields} &access_token={access-token}
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 fields and edges you want returned. If omitted, default fields will be returned. |
You can use the fields
query string parameter to request the following fields on a Media.
Field Name | Description |
---|---|
| The Media's caption text. Not returnable for Media in albums. Note: When using emojis in captions, the encoding format should be UTF-8 and character length may be affected depending on the emoji used. |
| The Media's ID. |
| For Reels only. When Neither value determines whether the reel actually appears in the Reels tab because the reel may not meet eligibilty requirements or may not be selected by our algorithm. See reel specifications for eligibility critera. |
| The Media's type. Can be |
| The Media's URL. |
| The Media's permanent URL. Will be omitted if the Media contains copyrighted material, or has been flagged for a copyright violation. |
| The Media's thumbnail image URL. Only available on |
| The Media's publish date in ISO 8601 format. |
| The Media owner's username. |
You can request the following edges as path parameters or by using the fields
query string parameter.
Edge | Description |
---|---|
Get a list of Media on the Media album. Only available on |
A JSON-formatted object containing default and requested fields and edges.
{ "{field}":"{value}", ... }
curl -X GET \ 'https://graph.instagram.com/17895695668004550?fields=id,media_type,media_url,username,timestamp&access_token=IGQVJ...'
{ "id": "17895695668004550", "media_type": "IMAGE", "media_url": "https://fb-s-b-a.akamaihd.net/...", "username": "jayposiris" "timestamp": "2017-08-31T18:10:00+0000" }
This operation is not supported.
This operation is not supported.