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 https://api.klupt.io/v1/posts/{post}
GET https://api.klupt.io/v1/posts/stats?ids=
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 (0.5 from cache). Failed calls and private accounts are free.
Try itsandbox data · no key needed
GET /v1/posts/DCSf3TJ3gB7
Sample data in the live schema. Use private_x, ghost_x or hidden_x to see errors.
Parameters
| Parameter | In | Description |
|---|---|---|
post | path | Post shortcode (C9xYzAbCdEf), numeric id, or a URL-encoded instagram.com/p/… or /reel/… link. |
ids | query | stats: 1 to 20 posts, comma-separated shortcodes or ids. |
fresh | query | true skips the cache (full price). |
Response
{{SAMPLE_post}}
Examples
curl "https://api.klupt.io/v1/posts/C9xYzAbCdEf" -H "X-Api-Key: $KLUPT_API_KEY"
import os, requests
r = requests.get("https://api.klupt.io/v1/posts/C9xYzAbCdEf",
headers={"X-Api-Key": os.environ["KLUPT_API_KEY"]}, timeout=30)
r.raise_for_status()
p = r.json()["data"]
print(p["media_type"], p["counts"], p["caption"][:80])
const res = await fetch("https://api.klupt.io/v1/posts/C9xYzAbCdEf", {
headers: { "X-Api-Key": process.env.KLUPT_API_KEY },
});
const { data: post } = await res.json();
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.
Updated 2026-11-29 · Markdown · Questions? [email protected]
