Skip to content

Instagram Recent Posts API

The newest posts of a public profile (Instagram shows at most the 6 newest without login): id, shortcode, url, type, caption, hashtags, mentions, likes, comments, video plays, publish time, cover image, video file and duration, size, location, owner with follower count, and every image/video of a carousel. Also the profile's total post count. Raises not found for an unknown account.

GEThttps://api.maviapi.com/v1/sites/instagram/profiles/{username}/recent-posts5 credits per call

Parameters

NameRequiredExampleDescription
usernamestring in pathRequirednatgeoInstagram username, with or without @
typestring in queryOptionalNoneonly posts of this kind: image, video or carousel (any kind when omitted)
sortstring in queryOptionalrecentorder of the posts: recent (newest first), likes or comments (most first)One of recent, likes, comments

Response fields

usernamestringe.g."natgeo"
posts_countintegere.g.32218
countintegere.g.6
postsobject[]22 fields
idstringe.g."4039253819871911016"
shortcodestringe.g."DgOT_LDGtxo"
urlstringe.g."https://www.instagram.com/p/DgOT_LDGtxo/"
typestringe.g."carousel"
product_typenull
captionstringe.g."Eel reproduction was first photographed in the wild by National Geographic photographer @tonywu98, and he and his team have continued to document this secretive event by spending hundreds of hours submerged in the waters of Kagoshima. National Geographic’s Pictures of the Year 2026 includes these moray eels in the act of ejecting their gametes, a process that occurs in less than two seconds.\n\nNational Geographic photographers ventured to places far and wide to capture the year’s most fascinating images. Out of millions of photos, just 25 were selected as our Pictures of the Year. See them all at the link in bio."
hashtagsstring[]
mentionsstring[]
like_countintegere.g.84983
comment_countintegere.g.275
view_countnull
taken_atstringe.g."2026-11-26T23:43:19.000Z"
display_urlstringe.g."https://scontent.cdninstagram.com/v/t51.82787-15/930382505_18723120067019133_7440139847351550069_n.jpg?stp=dst-jpg_e35_p1080x1080_sh2.08_tt6&_nc_cat=1&ig_cache_key=NDAzOTI1MjQ4NjY1MTkxOTQ4Mw%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNBUk9VU0VMX0lURU0ueHBpZHMuMjA0OC5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc=VogRwE_nH_4Q7kNvwEePunG&_nc_oc=Adp4QIYDL-KB5Jn5_rbWN0Ct0RhHqEmBHD_sZi88genX1GK9-jDUqGETvWiSm-ouPZw&_nc_zt=23&_nc_ht=scontent.cdninstagram.com&_nc_gid=Fdw29QrZDQfRLbdDQBmEPA&_nc_ss=79789&_nc_ct=RQosPBUIFQIlBAAAAA&oh=00_AQWqzC7PmJ5Fb9s2sKGvVw05nv5H01HQb-zRwwcj1_8DTA&oe=6B0F421D"
video_urlnull
video_durationnull
widthintegere.g.1080
heightintegere.g.1350
accessibility_captionnull
is_paid_partnershipbooleane.g.false
locationnull
ownerobject5 fields
idstringe.g."787132"
usernamestringe.g."natgeo"
is_verifiedbooleane.g.true
profile_pic_urlstringe.g."https://scontent.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-SLmj7IoQ7kNvwGpGgyW&_nc_oc=AdoSMy3X79OMsDhxuGaGueLvYRgHskmAnnMjOhIp964NrFIS5KIhjVsiNvzJcx_on5M&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=Fdw29QrZDQfRLbdDQBmEPA&_nc_ss=79789&_nc_ct=RQosPBUCFQIAAAA&oh=00_AQWjvhxastkp47DrsN6I5eZUvvrxnymxJhyvmUrshCO-HQ&oe=6B0F1CEB"
followers_countintegere.g.267196027
mediaobject[]8 fields
idstringe.g."4039252486651919483"
shortcodestringe.g."DgOTrxZADx7"
typestringe.g."image"
display_urlstringe.g."https://scontent.cdninstagram.com/v/t51.82787-15/930382505_18723120067019133_7440139847351550069_n.jpg?stp=dst-jpg_e35_p1080x1080_sh2.08_tt6&_nc_cat=1&ig_cache_key=NDAzOTI1MjQ4NjY1MTkxOTQ4Mw%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNBUk9VU0VMX0lURU0ueHBpZHMuMjA0OC5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc=VogRwE_nH_4Q7kNvwEePunG&_nc_oc=Adp4QIYDL-KB5Jn5_rbWN0Ct0RhHqEmBHD_sZi88genX1GK9-jDUqGETvWiSm-ouPZw&_nc_zt=23&_nc_ht=scontent.cdninstagram.com&_nc_gid=Fdw29QrZDQfRLbdDQBmEPA&_nc_ss=79789&_nc_ct=RQosPBUIFQIlBAAAAA&oh=00_AQWqzC7PmJ5Fb9s2sKGvVw05nv5H01HQb-zRwwcj1_8DTA&oe=6B0F421D"
video_urlnull
widthintegere.g.1080
heightintegere.g.1350
accessibility_captionnull
paginationobject3 fields
countintegere.g.6
has_morebooleane.g.false
next_cursornull
fetched_atstringe.g."2026-11-27T10:16:52.010Z"
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/profiles/natgeo/recent-posts' \
  -H "Authorization: Bearer $MAVI_KEY"

Instagram Recent Posts API questions

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

What does the Instagram Recent Posts API return?

The newest posts of a public profile (Instagram shows at most the 6 newest without login): id, shortcode, url, type, caption, hashtags, mentions, likes, comments, video plays, publish time, cover image, video file and duration, size, location, owner with follower count, and every image/video of a carousel. Also the profile's total post count. Raises not found for an unknown account. The response has username, posts_count, count, posts, pagination, fetched_at and age.

Which parameters does the Instagram Recent Posts API take?

GET /profiles/{username}/recent-posts needs username (for example natgeo). You can also pass type and sort.

How much does one Instagram Recent Posts 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 Recent Posts API?

Send an HTTPS GET request to https://api.maviapi.com/v1/sites/instagram/profiles/{username}/recent-posts 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 Recent Posts 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.