# Instagram Media API Reference

Canonical: https://monsterapi.co/docs/api/instagram-media

Read the Instagram Media reference. Review parameters, response fields, examples, and current credit prices.

OpenAPI specification: [Instagram](https://monsterapi.co/docs/openapi/platforms/instagram.yaml).

---

Current operation prices: [public catalog](https://monsterapi.co/account/api/v1/public/api-prices). Prices use credits per request.

---

# Instagram: Post details

`GET /instagram/api/media/{shortcode}`

Documentation: https://monsterapi.co/docs/api/instagram#post-details

Operation ID: `instagram_media_read`

Returns details of a post, reel or video, with author information and available comment previews.

## Authentication

Send your billing API key in the `Authorization: Bearer <YOUR_API_KEY>` header. Your account login is separate.

## Inputs

- `shortcode` (path, required): Post or reel code, 1 to 40 letters, digits, underscores or hyphens. Copy `posts[].shortcode` from GET `/user/{id}/posts` or `reels[].shortcode` from GET `/user/{id}/reels`, or use the code in a post/reel URL. [Reels reference](https://monsterapi.co/docs/api/instagram-media).

## Responses

- 200:

- 400: Refusal envelope.

Refused at the gateway: the request target, path and query string together, is longer than 8,192 bytes; or the headers, the target counted among them, exceed 16,384 bytes or 64 fields

- 401: Refusal envelope.

Refused at the gateway: the `Authorization` header carries no API key, or a malformed one

- 402: Refusal envelope.

Refused at the gateway: the credits of the account do not cover the price of the operation

- 403: Refusal envelope.

Refused at the gateway: the API key is unknown or revoked

- 405: `method_not_allowed`: the endpoint answers GET alone, and any other method, HEAD included, is refused

Refused at the gateway: the path exists, but no operation on it takes the method of the request, HEAD included; `Allow` names the methods that do

- 409: Refusal envelope.

Refused at the gateway: a repeat of a request the gateway already checked differs from the original

- 429: Refusal envelope.

Refused at the gateway: the account calls faster than its rate limit allows

- 503: Temporary unavailability or a rate limit. Retry-After is included when applicable.

Refused at the gateway: the check could not complete, the account is suspended, or the platform did not answer; each may pass later, and `Retry-After` comes only when the platform did not answer

- default: Refusal envelope.

## Credits

Check the live price in the documentation before sending. Platform 2xx and 4xx responses can use credits, including empty data. Gateway refusals and 5xx responses do not use credits. Each pagination request is a separate call.

https://monsterapi.co/docs/pricing

## Request template

Replace path placeholders and add the required query parameters from the Inputs section before sending.

```shell

curl --get 'https://api.monsterapi.co/instagram/api/media/{shortcode}' \
  -H 'Authorization: Bearer <YOUR_API_KEY>'

```

---

# Instagram: Post comments

`GET /instagram/api/media/{shortcode}/comments`

Documentation: https://monsterapi.co/docs/api/instagram#post-comments

Operation ID: `instagram_media_comments_list`

Returns a page of comments without replies. No comments or disabled comments without continuation returns not_found (404); an empty page with continuation remains 200.

## Authentication

Send your billing API key in the `Authorization: Bearer <YOUR_API_KEY>` header. Your account login is separate.

## Inputs

- `shortcode` (path, required): Post or reel code, 1 to 40 letters, digits, underscores or hyphens. Copy `posts[].shortcode` from GET `/user/{id}/posts` or `reels[].shortcode` from GET `/user/{id}/reels`, or use the code in a post/reel URL. [Reels reference](https://monsterapi.co/docs/api/instagram-media).

- `cursor` (query, optional): Continuation from `next_cursor` in GET `/media/{shortcode}/comments` for the same `shortcode`; pass it as `cursor` to that endpoint. Omit for the first page. [Comments reference](https://monsterapi.co/docs/api/instagram-media).

## Responses

- 200:

- 400: Refusal envelope.

Refused at the gateway: the request target, path and query string together, is longer than 8,192 bytes; or the headers, the target counted among them, exceed 16,384 bytes or 64 fields

- 401: Refusal envelope.

Refused at the gateway: the `Authorization` header carries no API key, or a malformed one

- 402: Refusal envelope.

Refused at the gateway: the credits of the account do not cover the price of the operation

- 403: Refusal envelope.

Refused at the gateway: the API key is unknown or revoked

- 405: `method_not_allowed`: the endpoint answers GET alone, and any other method, HEAD included, is refused

Refused at the gateway: the path exists, but no operation on it takes the method of the request, HEAD included; `Allow` names the methods that do

- 409: Refusal envelope.

Refused at the gateway: a repeat of a request the gateway already checked differs from the original

- 429: Refusal envelope.

Refused at the gateway: the account calls faster than its rate limit allows

- 503: Temporary unavailability or a rate limit. Retry-After is included when applicable.

Refused at the gateway: the check could not complete, the account is suspended, or the platform did not answer; each may pass later, and `Retry-After` comes only when the platform did not answer

- default: Refusal envelope.

## Credits

Check the live price in the documentation before sending. Platform 2xx and 4xx responses can use credits, including empty data. Gateway refusals and 5xx responses do not use credits. Each pagination request is a separate call.

https://monsterapi.co/docs/pricing

## Request template

Replace path placeholders and add the required query parameters from the Inputs section before sending.

```shell

curl --get 'https://api.monsterapi.co/instagram/api/media/{shortcode}/comments' \
  -H 'Authorization: Bearer <YOUR_API_KEY>'

```

---

# Instagram: Post overview

`GET /instagram/api/media/{shortcode}/embed`

Documentation: https://monsterapi.co/docs/api/instagram#post-overview

Operation ID: `instagram_media_embed_read`

Returns a post overview with its author, caption, reaction and comment counts, and available video views and duration. An unavailable post returns not_found (404).

## Authentication

Send your billing API key in the `Authorization: Bearer <YOUR_API_KEY>` header. Your account login is separate.

## Inputs

- `shortcode` (path, required): Post or reel code, 1 to 40 letters, digits, underscores or hyphens. Copy `posts[].shortcode` from GET `/user/{id}/posts` or `reels[].shortcode` from GET `/user/{id}/reels`, or use the code in a post/reel URL. [Reels reference](https://monsterapi.co/docs/api/instagram-media).

## Responses

- 200:

- 400: Refusal envelope.

Refused at the gateway: the request target, path and query string together, is longer than 8,192 bytes; or the headers, the target counted among them, exceed 16,384 bytes or 64 fields

- 401: Refusal envelope.

Refused at the gateway: the `Authorization` header carries no API key, or a malformed one

- 402: Refusal envelope.

Refused at the gateway: the credits of the account do not cover the price of the operation

- 403: Refusal envelope.

Refused at the gateway: the API key is unknown or revoked

- 405: `method_not_allowed`: the endpoint answers GET alone, and any other method, HEAD included, is refused

Refused at the gateway: the path exists, but no operation on it takes the method of the request, HEAD included; `Allow` names the methods that do

- 409: Refusal envelope.

Refused at the gateway: a repeat of a request the gateway already checked differs from the original

- 429: Refusal envelope.

Refused at the gateway: the account calls faster than its rate limit allows

- 503: Temporary unavailability or a rate limit. Retry-After is included when applicable.

Refused at the gateway: the check could not complete, the account is suspended, or the platform did not answer; each may pass later, and `Retry-After` comes only when the platform did not answer

- default: Refusal envelope.

## Credits

Check the live price in the documentation before sending. Platform 2xx and 4xx responses can use credits, including empty data. Gateway refusals and 5xx responses do not use credits. Each pagination request is a separate call.

https://monsterapi.co/docs/pricing

## Request template

Replace path placeholders and add the required query parameters from the Inputs section before sending.

```shell

curl --get 'https://api.monsterapi.co/instagram/api/media/{shortcode}/embed' \
  -H 'Authorization: Bearer <YOUR_API_KEY>'

```

---

# Instagram: Account posts

`GET /instagram/api/user/{id}/posts`

Documentation: https://monsterapi.co/docs/api/instagram#account-posts

Operation ID: `instagram_user_posts_list`

Returns a page of an account's posts. An empty page without continuation returns not_found (404); a private account returns private (403).

## Authentication

Send your billing API key in the `Authorization: Bearer <YOUR_API_KEY>` header. Your account login is separate.

## Inputs

- `id` (path, required): Account ID, 1 to 32 decimal digits. Copy `user.id` from GET `/profile/{username}`; the ID remains stable across username changes. [Profile reference](https://monsterapi.co/docs/api/instagram-profile).

- `cursor` (query, optional): Continuation from `next_cursor` in GET `/user/{id}/posts` for the same `id`; pass it as `cursor` to that endpoint. Two nonempty decimal numbers separated by an underscore; invalid format returns bad_request (400). [Posts reference](https://monsterapi.co/docs/api/instagram-media).

- `limit` (query, optional): Requested page size, 1 to 50; defaults to 12. The returned page may contain a different number of items.

## Responses

- 200:

- 400: Refusal envelope.

Refused at the gateway: the request target, path and query string together, is longer than 8,192 bytes; or the headers, the target counted among them, exceed 16,384 bytes or 64 fields

- 401: Refusal envelope.

Refused at the gateway: the `Authorization` header carries no API key, or a malformed one

- 402: Refusal envelope.

Refused at the gateway: the credits of the account do not cover the price of the operation

- 403: Refusal envelope.

Refused at the gateway: the API key is unknown or revoked

- 405: `method_not_allowed`: the endpoint answers GET alone, and any other method, HEAD included, is refused

Refused at the gateway: the path exists, but no operation on it takes the method of the request, HEAD included; `Allow` names the methods that do

- 409: Refusal envelope.

Refused at the gateway: a repeat of a request the gateway already checked differs from the original

- 429: Refusal envelope.

Refused at the gateway: the account calls faster than its rate limit allows

- 503: Temporary unavailability or a rate limit. Retry-After is included when applicable.

Refused at the gateway: the check could not complete, the account is suspended, or the platform did not answer; each may pass later, and `Retry-After` comes only when the platform did not answer

- default: Refusal envelope.

## Credits

Check the live price in the documentation before sending. Platform 2xx and 4xx responses can use credits, including empty data. Gateway refusals and 5xx responses do not use credits. Each pagination request is a separate call.

https://monsterapi.co/docs/pricing

## Request template

Replace path placeholders and add the required query parameters from the Inputs section before sending.

```shell

curl --get 'https://api.monsterapi.co/instagram/api/user/{id}/posts' \
  -H 'Authorization: Bearer <YOUR_API_KEY>'

```

---

# Instagram: Account reels

`GET /instagram/api/user/{id}/reels`

Documentation: https://monsterapi.co/docs/api/instagram#account-reels

Operation ID: `instagram_user_reels_list`

Returns a page of an account's reels. An empty page without continuation returns not_found (404), including for private or unavailable accounts.

## Authentication

Send your billing API key in the `Authorization: Bearer <YOUR_API_KEY>` header. Your account login is separate.

## Inputs

- `id` (path, required): Account ID, 1 to 32 decimal digits. Copy `user.id` from GET `/profile/{username}`; the ID remains stable across username changes. [Profile reference](https://monsterapi.co/docs/api/instagram-profile).

- `cursor` (query, optional): Continuation from `next_cursor` in GET `/user/{id}/reels` for the same `id`; pass it as `cursor` to that endpoint. Standard Base64, length divisible by four, at most two trailing = signs; invalid format returns bad_request (400). [Reels reference](https://monsterapi.co/docs/api/instagram-media).

- `limit` (query, optional): Requested page size, 1 to 50; defaults to 12. The returned page may contain a different number of items.

## Responses

- 200:

- 400: Refusal envelope.

Refused at the gateway: the request target, path and query string together, is longer than 8,192 bytes; or the headers, the target counted among them, exceed 16,384 bytes or 64 fields

- 401: Refusal envelope.

Refused at the gateway: the `Authorization` header carries no API key, or a malformed one

- 402: Refusal envelope.

Refused at the gateway: the credits of the account do not cover the price of the operation

- 403: Refusal envelope.

Refused at the gateway: the API key is unknown or revoked

- 405: `method_not_allowed`: the endpoint answers GET alone, and any other method, HEAD included, is refused

Refused at the gateway: the path exists, but no operation on it takes the method of the request, HEAD included; `Allow` names the methods that do

- 409: Refusal envelope.

Refused at the gateway: a repeat of a request the gateway already checked differs from the original

- 429: Refusal envelope.

Refused at the gateway: the account calls faster than its rate limit allows

- 503: Temporary unavailability or a rate limit. Retry-After is included when applicable.

Refused at the gateway: the check could not complete, the account is suspended, or the platform did not answer; each may pass later, and `Retry-After` comes only when the platform did not answer

- default: Refusal envelope.

## Credits

Check the live price in the documentation before sending. Platform 2xx and 4xx responses can use credits, including empty data. Gateway refusals and 5xx responses do not use credits. Each pagination request is a separate call.

https://monsterapi.co/docs/pricing

## Request template

Replace path placeholders and add the required query parameters from the Inputs section before sending.

```shell

curl --get 'https://api.monsterapi.co/instagram/api/user/{id}/reels' \
  -H 'Authorization: Bearer <YOUR_API_KEY>'

```
