Instagram Post API
Get one Instagram post or reel by its URL, shortcode or id: caption, images or video, carousel items, like, comment and view counts, location and audio. Track engagement for up to 20 posts in a single call with the stats route.
GET /v1/posts/{post}: One post or reelGET /v1/posts/stats?ids=: Like, comment and view counts for up to 20 posts (1 credit for the batch)
Cost: 1 credit per successful call (free from cache). Failed calls and private accounts are free.
Try itsandbox data · no key needed
Every example on this page follows what you type here.
GET /v1/posts/DCSf3TJ3gB7
Sample data in the live schema. Use private_x, ghost_x or hidden_x to see errors.
Parameters
postpathrequiredPost shortcode (
C9xYzAbCdEf), numeric id, or a URL-encoded instagram.com/p/… or /reel/… link.idsqueryoptionalstats: 1 to 20 posts, comma-separated shortcodes or ids.
freshqueryoptionaltrue skips the cache.FAQ
How do I get Instagram post data from a URL?
URL-encode the link and pass it as {post}, or pass the shortcode from the URL. The id is worked out locally, so there is no extra call.
How do I track likes on many posts cheaply?
Use GET /v1/posts/stats?ids=a,b,c with up to 20 posts: one call, one credit, the like, comment and view counts of each.