Skip to content

GET/v1/instagram/oembed?url={instagram_url}

GET /v1/instagram/oembed?url= returns the embed data for a public Instagram post or reel: the author's username and id, the numeric media id and shortcode, a thumbnail and Instagram's own embed HTML. Instagram's official oEmbed endpoint needs a Meta developer app, app review and an access token; this route needs only your API key.

GEThttps://api.handlehaul.com/v1/instagram/oembed?url={instagram_url}

Cost: 1 credit per call read live. Answers are cached for 15 minutes; cache hits and failed calls are free.

Try itsandbox data · no key needed

Every example on this page follows what you type here.

GET /v1/instagram/oembed?url=https://www.instagram.com/p/DCSf3TJ3gB7/

Sample data in the live schema. Use private_x, ghost_x or hidden_x to see errors.

What it is for

  • Link previews and CMS embeds: drop html into a page (it loads Instagram's own embed script), or build your own card from title, author and thumbnail_url.
  • Share links: instagram.com/s/… links (how the app shares stories and highlights) carry no ids you can read. This route tells you the author and, for a highlight, its highlight_id, ready for the Highlights API.
  • Owner of a post from its link, without reading the whole post.

For a plain post or reel link, the free URL resolver already gives the shortcode and media id without any call to Instagram. Use this route when you also need the author, the thumbnail or the embed HTML, or when the link is a /s/ share link.

Parameters

urlqueryrequired
Required. An instagram.com/p/…, /reel/…, /reels/… or /tv/… link, or an instagram.com/s/… share link, URL-encoded. Tracking parameters are dropped before the lookup.
freshqueryoptional
Optional. true bypasses the cache and is billed as a live call.

Response

Sandbox-key sample, live schema:

FieldMeaning
typepost for a post or reel link, share_link for an /s/ link
media_id, shortcode, urlThe post, when the link points to one
authorid, username and profile url of the account that posted it
highlight_idSet when a share link points to a story highlight
thumbnail_url, thumbnail_width, thumbnail_heightInstagram's preview image
htmlInstagram's embed markup: a blockquote plus instagram.com/embed.js

Errors

StatusCodeWhen
400invalid_requesturl is missing or is not an instagram.com post, reel or share link
403private_accountThe post belongs to a private account (not billed)
404user_not_foundNo such post, or the link has expired (not billed)

FAQ

Can I use Instagram oEmbed without a Facebook app?

Yes. Send the post URL to /v1/instagram/oembed; you get the same kind of data Instagram's own oEmbed returns, with only a HandleHaul API key.

Does the embed HTML work on my site?

It is Instagram's own markup and script, so it renders the way Instagram's embeds do. Posts from private accounts cannot be embedded.

Pass it as url. The answer names the author and, for a highlight, the highlight_id.

↑↓ to move↵ to open