---
title: "Instagram Embed HTML API"
method: GET
path: "/v1/instagram/embed"
tags: ["Instagram"]
---

# Instagram Embed HTML API

`GET /v1/instagram/embed`

## 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`

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 &lt;blockquote class="instagram-media"&gt; plus one &lt;script src="https://www.instagram.com/embed.js"&gt;. 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 &lt;iframe src&gt; 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.

Docs: https://captapi.com/apis/instagram-embed

## Query parameters

- `url` string, required
- `cache` boolean

## Response `200`

Success. The data object for this endpoint.

- object
  - `success` unknown, required
  - `data` object, required
    - `platform` string: Platform identifier for this response (matches the endpoint's platform).
    - `url` string: Canonical URL of the item.
    - `type` string: Content type of the item.
    - `shortcode` string: Instagram shortcode of the post (posts/reels only).
    - `permalink` string: Canonical Instagram permalink for the embed.
    - `embedUrl` string: Instagram's /embed/ or /embed/captioned/ player URL — use as iframe src if you want that document isolated.
    - `html` string: blockquote.instagram-media + embed.js. Safe to drop into a host page. Never the full /embed/ Facebook document.

## Other responses

- `400`: Bad request: wrong platform URL, unknown endpoint, or an invalid parameter value. Not billed.
- `401`: Missing, invalid or revoked API key. Not billed.
- `402`: Not enough credits for this request. Not billed.
- `404`: The resource does not exist or is not public. Not billed.
- `422`: A required parameter is missing or has the wrong type. Not billed.
- `429`: Rate limit reached. Wait for Retry-After seconds. Not billed.
- `502`: The platform could not be reached or returned nothing usable. Retryable, not billed. 503 and 504 use the same envelope.

---

[API](https://skmtc.dev/captapi/apis/captapi-api.md) · [All operations](https://skmtc.dev/captapi/apis/captapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/captapi/apis/captapi-api/revisions/c9b9ac5ff1bd?raw)
