Instagram Post API
Get an Instagram post or Reel by its shortcode, the code in its link (instagram.com/p/<shortcode>). Returns the caption, image or video link, like and comment counts, timestamp and, for videos, the view count.
- Endpoint
- POST /instagram/post
- Price
- 1 credit per request
- SDK
- client.instagram.getPost()
- MCP tool
- instagram_post
curl -X POST "https://api.bridgly.app/instagram/post" \ -H "Authorization: Bearer $BRIDGLY_KEY" \ -H "Content-Type: application/json" \ -d '{ "shortcode": "C3xKj2LOqZm"}'import osimport requestsresponse = requests.post( "https://api.bridgly.app/instagram/post", headers={"Authorization": f"Bearer {os.environ['BRIDGLY_KEY']}"}, json={ "shortcode": "C3xKj2LOqZm", },)data = response.json()const response = await fetch("https://api.bridgly.app/instagram/post", { method: "POST", headers: { Authorization: `Bearer ${process.env.BRIDGLY_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ "shortcode": "C3xKj2LOqZm" }),});const data = await response.json();import { Bridgly } from "@bridgly/sdk";const client = new Bridgly({ apiKey: "bgly_YOUR_KEY" });const res = await client.instagram.getPost({ shortcode: "C3xKj2LOqZm"});if (res.type === "success") { console.log(res.data);}What does the Instagram Post API return?
Instagram post API: get any public Instagram post or reel by its shortcode as JSON, with caption, likes, comments, views, media URLs and publish time. Every response has the same envelope: the result in data, plus timeMs and the creditsCost of the call.
Request body
shortcodestringrequired- Post shortcode, or the post or Reel link, e.g. "DA1b2C3d4E5" or "https://www.instagram.com/p/DA1b2C3d4E5/"
Example response
{ "timeMs": 1840, "creditsCost": 1, "data": { "id": "string", "shortcode": "string", "url": "string", "type": "Image", "display_url": "string", "video_url": "string", "caption": "string", "likes": 0, "comments": 0, "timestamp": 0, "is_video": true, "video_view_count": 0 }}What can you build with the Instagram Post API?
Track a campaign post
Re-check a sponsored post to report likes, comments and views.
Save media
Get the image and video URLs of a post you reference.
Verify a post
Confirm a post exists and read its caption and owner.
Instagram Post API questions
How do I get Instagram post data from a post URL?
The shortcode is the code after /p/ or /reel/ in its link, for example C3xKj2LOqZm. Send it as shortcode to get the caption, media link, like and comment counts, timestamp and, for videos, the view count.
Can I get the view count of an Instagram reel?
Yes. Reels and video posts include a view count along with the video URL.
Can I track a post’s likes over time?
Yes. Look the post up at intervals and record the like and comment counts. Each lookup costs 1 credit.
How do I use the Instagram Post API?
Send a POST request to https://api.bridgly.app/instagram/post with shortcode in the JSON body and your API key in the Authorization header. In the TypeScript SDK, call client.instagram.getPost(). AI agents connected to Bridgly over MCP can call the instagram_post tool.
How much does the Instagram Post API cost?
Costs 1 credit per request. Credits cost $2.00 per 1,000 on pay-as-you-go and as low as $1.00 per 1,000 at volume. New accounts on a business email start with 100 free credits, and failed requests are never charged.
More Instagram endpoints
The same API key works on every endpoint. See all Instagram API endpoints.
- Instagram Comments API→Instagram comments API: export the comments on any public Instagram post or reel by shortcode, each with text, author, time and like count, as JSON.
- Instagram Posts API→Instagram posts API: list any public account’s posts and reels by username, with caption, likes, comments, views, media URLs and publish time, as JSON.
- Instagram User Search API→Instagram user search API: find Instagram accounts by name or keyword, each with username, bio, follower and post counts and verified and business flags.
- Instagram Profile API→Instagram profile API: get any public Instagram profile by username as JSON, with bio, bio links, follower, following and post counts and verified flag.
Try the Instagram Post API
100 free credits on business email, no card. Your first call takes a minute.