Get Instagram media

Get an Instagram post or Reel by shortcode, URL or media id, optionally with its files hosted on our media CDN.

GET/v2/instagram/media/{media}
x-api-keystringheader

API key (`sfk_...`)

Parameters
2
mediastringrequiredpath

Shortcode, post or Reel URL, or numeric media id.

includearrayoptional+10 / 16 MBquery

Optional extra: `files` returns the post's image or video hosted on our media CDN (+10 credits per 16 MB).

any of: files (comma-separated)

Response fields
105

Endpoint-specific response payload.

datalookupStatus
string

`found`, or `not_found` when the post doesn't exist, was deleted, or belongs to a private account.

one of: found, not_found

The post or Reel, with its tagged users, co-authors, audio and location. Null when not found.

datamediaid
string

Media id.

pattern: ^\d+$

datamediashortcode
stringnullable

Shortcode used in the media URL. Null for stories.

datamediaurl
stringnullable

Public URL: `/reel/` for Reels, `/p/` otherwise. Null for stories.

datamediakind
string

`post`, `reel` or `story`.

one of: post, reel, story

datamediamediaType
stringnullable

`image`, `video` or `carousel`. Null when unknown.

one of: image, video, carousel, null

datamediacaption
stringnullable

Caption text.

datamediaaltText
stringnullable

Alt text Instagram generated or the owner wrote. Null when none or not reported.

datamediacreatedAt
stringnullable

When it was posted.

The account that posted it. Null when unknown.

datamediaownerid
stringnullable

Instagram user id.

pattern: ^\d+$

datamediaownerhandle
stringnullable

Username, without @.

datamediaownerdisplayName
stringnullable

Display name.

datamediaowneravatarUrl
stringnullable

Profile picture. Instagram CDN URL; it expires after a while.

datamediaownerverified
booleannullable

Whether the account is verified.

datamediaownerprivateAccount
booleannullable

Whether the account is private.

Engagement counts. Null when this view doesn't report one.

datamediametricslikeCount
integernullable

Likes. Null when hidden or not reported.

≥ 0

datamediametricscommentCount
integernullable

Comments.

≥ 0

datamediametricsplayCount
integernullable

Plays, for videos. Counts Instagram plays only, not plays of a cross-posted copy on other apps.

≥ 0

datamediametricsshareCount
integernullable

Shares.

≥ 0

datamediametricssaveCount
integernullable

Saves.

≥ 0

datamediametricslikesHidden
booleannullable

Whether the owner hides the like count.

datamediaimageUrl
stringnullable

Image, or a video's cover image. Instagram CDN URL; it expires after a while.

datamediathumbnailUrl
stringnullable

Small preview image. Instagram CDN URL; it expires after a while.

datamediavideoUrl
stringnullable

Video file. Instagram CDN URL; it expires after a while.

datamediadurationSec
numbernullable

Video length in seconds, to the millisecond.

Pixel size. Null when unknown.

datamediadimensionswidth
integer

Width in pixels.

≥ 0

datamediadimensionsheight
integer

Height in pixels.

≥ 0

Every item of a carousel, in order. Null when not a carousel.

datamediacarousel[]id
stringnullable

Media id of this item.

pattern: ^\d+$

datamediacarousel[]mediaType
stringnullable

`image` or `video`. Null when unknown.

one of: image, video, null

datamediacarousel[]imageUrl
stringnullable

Image, or a video's cover. Instagram CDN URL; it expires after a while.

datamediacarousel[]videoUrl
stringnullable

Video file. Instagram CDN URL; it expires after a while.

datamediacarousel[]durationSec
numbernullable

Video length in seconds, to the millisecond. Null for images.

Pixel size. Null when unknown.

datamediacarousel[]dimensionswidth
integer

Width in pixels.

≥ 0

datamediacarousel[]dimensionsheight
integer

Height in pixels.

≥ 0

datamediacarousel[]altText
stringnullable

Alt text Instagram generated or the owner wrote. Null when none or not reported.

Music or original audio. On a story, the music sticker. Null when none.

datamediaaudioid
stringnullable

Audio id.

pattern: ^\d+$

datamediaaudiotitle
stringnullable

Song or sound title.

datamediaaudioartist
stringnullable

Artist name.

datamediaaudioisOriginal
booleannullable

Whether it is original audio rather than licensed music.

datamediaaudioartistHandle
stringnullable

Username of the account behind original audio.

Collab co-authors. Empty when none.

datamediacoauthors[]id
stringnullable

Instagram user id.

pattern: ^\d+$

datamediacoauthors[]handle
stringnullable

Username, without @.

datamediacoauthors[]displayName
stringnullable

Display name.

datamediacoauthors[]avatarUrl
stringnullable

Profile picture. Instagram CDN URL; it expires after a while.

datamediacoauthors[]verified
booleannullable

Whether the account is verified.

datamediacoauthors[]privateAccount
booleannullable

Whether the account is private.

Accounts tagged in the media. Empty when none. Null when this view doesn't carry tags.

datamediataggedUsers[]id
stringnullable

Instagram user id.

pattern: ^\d+$

datamediataggedUsers[]handle
stringnullable

Username, without @.

datamediataggedUsers[]displayName
stringnullable

Display name.

datamediataggedUsers[]avatarUrl
stringnullable

Profile picture. Instagram CDN URL; it expires after a while.

datamediataggedUsers[]verified
booleannullable

Whether the account is verified.

datamediataggedUsers[]privateAccount
booleannullable

Whether the account is private.

Tagged location. Null when none.

datamedialocationid
stringnullable

Location id.

pattern: ^\d+$

datamedialocationname
stringnullable

Place name.

datamedialocationlat
numbernullable

Latitude.

datamedialocationlng
numbernullable

Longitude.

datamediaisPaidPartnership
booleannullable

Whether it is labelled as a paid partnership.

Brands named in the paid-partnership label. Empty when it is not a partnership. Null when this view doesn't say.

datamediasponsors[]id
stringnullable

Instagram user id.

pattern: ^\d+$

datamediasponsors[]handle
stringnullable

Username, without @.

datamediasponsors[]displayName
stringnullable

Display name.

datamediasponsors[]avatarUrl
stringnullable

Profile picture. Instagram CDN URL; it expires after a while.

datamediasponsors[]verified
booleannullable

Whether the account is verified.

datamediasponsors[]privateAccount
booleannullable

Whether the account is private.

datamediacommentsDisabled
booleannullable

Whether the owner turned comments off. Null when this view doesn't say.

datamediaisPinned
booleannullable

Whether the owner pinned it to their profile (to the Reels tab, when listed there). Null when this view doesn't say.

Story-only details. Null for posts and Reels.

datamediastoryexpiresAt
stringnullable

When the story expires, or expired for a story kept in a highlight.

Link stickers.

datamediastorylinkStickers[]url
string

Link destination: the address the sticker opens, not Instagram's redirect.

min 1 chars

datamediastorylinkStickers[]displayUrl
stringnullable

Text shown on the sticker. Can be null on a profile's first lookup.

Accounts mentioned. On a profile's first lookup, an account's `id`, `avatarUrl` and `verified` can be null.

datamediastorymentions[]id
stringnullable

Instagram user id.

pattern: ^\d+$

datamediastorymentions[]handle
stringnullable

Username, without @.

datamediastorymentions[]displayName
stringnullable

Display name.

datamediastorymentions[]avatarUrl
stringnullable

Profile picture. Instagram CDN URL; it expires after a while.

datamediastorymentions[]verified
booleannullable

Whether the account is verified.

datamediastorymentions[]privateAccount
booleannullable

Whether the account is private.

The post or Reel the story re-shares. Null when none.

datamediastorysharedMediaid
string

Media id of the shared post or Reel.

pattern: ^\d+$

datamediastorysharedMediashortcode
string

Shortcode of the shared post or Reel.

min 1 chars

With `include=files`: the post's files hosted on our media CDN, in `media.carousel` order. Files over the 96 MB limit or that can't be copied are left out and not charged. Null when not requested or nothing could be hosted.

datafiles[]position
integer

Which of the post's files this is: its index in `media.carousel`, or 0 for a single image or video.

≥ 0

datafiles[]url
string

Link to the file on our media CDN. It stays valid until `expiresAt`; save the file if you need it longer.

datafiles[]type
string

`image` or `video`.

one of: image, video

datafiles[]width
integernullable

Pixel width of the file. Null when not known.

≥ 0

datafiles[]height
integernullable

Pixel height of the file. Null when not known.

≥ 0

datafiles[]sizeBytes
integernullable

Size of the file in bytes. Null when not known.

≥ 0

datafiles[]mimeType
stringnullable

MIME type of the file, such as image/jpeg or video/mp4.

min 1 chars

datafiles[]expiresAt
string

When the file is deleted and the link stops working (the end of its retention).

Metadata about the API response.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v2

Code example

curl "https://api.socialfetch.dev/v2/instagram/media/DePzV26vLFB?include=files" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Instagram media.