Instagram Embed HTML API
Classic Instagram embed snippet — blockquote.instagram-media + embed.js.
Pass an Instagram post, reel, or profile URL (or an @handle) and get the official oEmbed snippet as html: a <blockquote class="instagram-media"> plus one <script src="https://www.instagram.com/embed.js">. That is safe to drop into a host page. html is never Instagram's full /embed/captioned/ Facebook document. embedUrl is the player page — point an <iframe src> at it if you want that document isolated. Also returns permalink, shortcode or username, and type (post/reel/profile). Flat 1 credit. Pass cache=true for the 24h shared cache (0 credits on hit); default is always fresh.
Request
- Base URL: https://api.captapi.com
- URL: https://api.captapi.com/v1/instagram/embed
- Auth: one of:
- HTTP bearer
- API key in header X-API-Key
Query parameters
Instagram post, reel, or profile URL (or @handle), e.g. https://instagram.com/reel/ID/ or https://instagram.com/username/. The URL platform must match this endpoint's platform. Do not pass cross-platform URLs, e.g. YouTube to TikTok, Instagram to Facebook, LinkedIn to X/Twitter, or Pinterest to Rumble.
Set true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.
Response
Success. The data object for this endpoint.
Changes
No recorded changes to this operation across all 3 revisions of this API.