Skip to content

Instagram Post API

One public post or reel: id, type, reel flag, caption, hashtags, mentions, likes, comments, video plays, upload time, cover image, video file and duration, size, location, the author with follower count (rounded, e.g. 267000000, on single-image posts), and every image/video of a carousel. Raises not found for a post that does not exist or is not public.

GEThttps://api.maviapi.com/v1/sites/instagram/posts/{shortcode}5 credits per call

Parameters

NameRequiredExampleDescription
shortcodestring in pathRequiredDfvE3QoDBvdpost shortcode, the id in instagram.com/p/<shortcode>/ (a full post or reel URL works too)

Response fields

idstringe.g."4030461581128899549"
shortcodestringe.g."DfvE3QoDBvd"
urlstringe.g."https://www.instagram.com/p/DfvE3QoDBvd/"
typestringe.g."image"
product_typenull
captionstringe.g."Photo by @joelsartore | This brightly colored serpent is an ornate palm pit viper that I photographed @sanantoniozoo. In the wild, the species can be found in the cloud forests of Mexico and northern Guatemala. Unfortunately, this snake’s habitat is used frequently for agricultural purposes—growing coffee plants and ornamental ferns—which has decreased suitable habitat. You can do your part to protect the snake by purchasing wildlife-friendly coffee and growing plants native to your region in your outdoor spaces. To see more species featured in the Photo Ark, follow me, @joelsartore. #PhotoArk"
hashtagsstring[]
mentionsstring[]
like_countintegere.g.26231
comment_countintegere.g.78
view_countnull
taken_atstringe.g."2026-11-14T20:34:43.369Z"
display_urlstringe.g."https://scontent-sjc6-1.cdninstagram.com/v/t51.82787-15/904674515_18719283778019133_3850278475097255874_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=103&_nc_map=urlgen_bucketless&ig_cache_key=NDAzMDQ2MTU4MTEyODg5OTU0OQ%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkZFRUQueHBpZHMuMTQzOS5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc=ae2T9n5sr4EQ7kNvwGbEz3N&_nc_oc=Ados5WaB3Ct17RhmGcuaLXj4ggn90D-1lGqHN6TekxrC49Vi6Q-zSEirSyIf50KK4kg&_nc_zt=23&_nc_ht=scontent-sjc6-1.cdninstagram.com&_nc_gid=eedcEWBjFr0GAGnosuU2VA&_nc_ss=79789&_nc_ct=RQosPBUIFQIlBAAAAA&oh=00_AQWZ2Vix3TKCwd7VMzWavnCSsyzGdZpq0whh7MKagDCwHA&oe=6B0F234D"
video_urlnull
video_durationnull
widthintegere.g.1439
heightintegere.g.957
accessibility_captionstringe.g."Photo by National Geographic on November 15, 2026. May be an image of snake and text."
is_paid_partnershipnull
locationnull
ownerobject5 fields
idstringe.g."787132"
usernamestringe.g."natgeo"
is_verifiedbooleane.g.true
profile_pic_urlstringe.g."https://scontent-sjc6-1.cdninstagram.com/v/t51.82787-19/683576066_18653628823019133_9051036240972105113_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ig_cache_key=GAKLvih9nsRnYEVCAJlFVLiBvZt9bmNDAQAB1501500j-ccb7-5&ccb=7-5&_nc_sid=669407&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy40MDAuQzMifQ%3D%3D&_nc_ohc=Fzq-SLmj7IoQ7kNvwG9RvTm&_nc_oc=AdpMuHY_cUZEjZXNOgfttLqQzcU1cpNWkzJUOqKaujKhGTvFPPEfzm0lYsL1ExhSeJo&_nc_zt=24&_nc_ht=scontent-sjc6-1.cdninstagram.com&_nc_gid=eedcEWBjFr0GAGnosuU2VA&_nc_ss=79789&_nc_ct=RQosPBUCFQIAAAA&oh=00_AQXxHZWqAMFpUIZgndXs9s9L6c--1y9kN-u-JyqH1Jelxw&oe=6B0F1CEB"
followers_countintegere.g.267000000
mediaobject[]7 fields
idstringe.g."4030461581128899549"
shortcodestringe.g."DfvE3QoDBvd"
typestringe.g."image"
display_urlstringe.g."https://scontent-sjc6-1.cdninstagram.com/v/t51.82787-15/904674515_18719283778019133_3850278475097255874_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=103&_nc_map=urlgen_bucketless&ig_cache_key=NDAzMDQ2MTU4MTEyODg5OTU0OQ%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkZFRUQueHBpZHMuMTQzOS5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc=ae2T9n5sr4EQ7kNvwGbEz3N&_nc_oc=Ados5WaB3Ct17RhmGcuaLXj4ggn90D-1lGqHN6TekxrC49Vi6Q-zSEirSyIf50KK4kg&_nc_zt=23&_nc_ht=scontent-sjc6-1.cdninstagram.com&_nc_gid=eedcEWBjFr0GAGnosuU2VA&_nc_ss=79789&_nc_ct=RQosPBUIFQIlBAAAAA&oh=00_AQWZ2Vix3TKCwd7VMzWavnCSsyzGdZpq0whh7MKagDCwHA&oe=6B0F234D"
video_urlnull
widthintegere.g.1439
heightintegere.g.957
paginationobject3 fields
countintegere.g.1
has_morebooleane.g.false
next_cursornull
fetched_atstringe.g."2026-11-27T10:17:12.806Z"
ageintegere.g.0

Example request

Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.

cURL
curl 'https://api.maviapi.com/v1/sites/instagram/posts/DfvE3QoDBvd' \
  -H "Authorization: Bearer $MAVI_KEY"

Instagram Post API questions

What you get, what it costs and how to call it.

What does the Instagram Post API return?

One public post or reel: id, type, reel flag, caption, hashtags, mentions, likes, comments, video plays, upload time, cover image, video file and duration, size, location, the author with follower count (rounded, e.g. 267000000, on single-image posts), and every image/video of a carousel. Raises not found for a post that does not exist or is not public. The response has id, shortcode, url, type, product_type, caption, hashtags, mentions and 17 more.

Which parameters does the Instagram Post API take?

GET /posts/{shortcode} needs shortcode (for example DfvE3QoDBvd).

How much does one Instagram Post API call cost?

One successful call costs 5 credits. A failed call costs nothing. On the Hobby plan ($49 a month for 250,000 credits), 1,000 calls cost about $0.98. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.

How do I call the Instagram Post API?

Send an HTTPS GET request to https://api.maviapi.com/v1/sites/instagram/posts/{shortcode} with your API key in the Authorization header, as in the example request on this page. Create a key on your API keys page, or try the endpoint first in the console with the free test key.

Is the Instagram Post API official?

No. It is an independent, hosted API from maviapi for the public data on instagram.com, and it is not made, endorsed or supported by Instagram. Its parameters and response fields are documented on this page.