Embedding Endpoints
We provide two simple ways to get information about a shared link in order to display a preview: an OEmbed endpoint and a simple URL append endpoint. Neither requires an access_token or client_id.
GET
/oembed
http://api.instagram.com/oembed?url=http://instagr.am/p/BUG/
{
provider_url: "http://instagr.am/"
title: "Rays"
url: "http://distillery.s3.amazonaws.com/media/2010/10/02/7e4051fdcf1d45ab9bc1fba2582c0c6b_7.jpg"
author_name: "danrubin"
height: 612
width: 612
version: "1.0"
author_url: "http://instagr.am/"
provider_name: "Instagram"
type: "photo"
}
Given a short link, returns information about the media associated with that link.
| url | A short link, like http://instagr.am/p/BUG/. |
|---|---|
| callback | A JSON callback to be invoked. |
| maxheight | Maximum height of returned media. |
| maxwidth | Maximum width of returned media. |
GET
http://instagr.am/p/shortcode/media
http://instagr.am/p/BUG/media/?size=t
HTTP/1.1 302 FOUND
Location: http://distillery.s3.amazonaws.com/media/2010/10/02/7e4051fdcf1d45ab9bc1fba2582c0c6b_6.jpg
Given a short link, issues a redirect to that media's JPG file.
| size | One of t (thumbnail), m (medium), l (large). Defaults to m. |
|---|