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.
Given a short link, returns information about the media associated with that link.
| Parameters | |
|---|---|
| url | A short link, like http://instagr.am/p/BUG/ |
| maxwidth | Maximum width of returned media |
| maxheight | Maximum height of returned media |
| callback | A JSON callback to be invoked |
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",
media_id: "5382_72",
author_id: 72,
height: 612,
width: 612,
version: "1.0",
author_url: "http://instagr.am/",
provider_name: "Instagram",
type: "photo"
}
Given a short link, issues a redirect to that media's JPG file
| Parameters | |
|---|---|
| size | One of t (thumbnail), m (medium), l (large). Defaults to m. |
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