Home /web /oEmbed - Embed Stuff! /

oEmbed - Embed Stuff!

2:17 am, April 23, 2017

Original Post Date: 12:47 am, August 11, 2014

oEmbed is a format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedded content (such as photos or videos) when a user posts a link to that resource, without having to parse the resource directly.

A consumer (e.g. Pownce) makes the following HTTP request:

  • http://www.flickr.com/services/oembed/?url=http%3A//www.flickr.com/photos/bees/2341623661/

The provider (e.g. Flickr) then responds with an oEmbed response:

	"version": "1.0",
	"type": "photo",
	"width": 240,
	"height": 160,
	"title": "ZB8T0193",
	"url": "http://farm4.static.flickr.com/3123/2341623661_7c99f48bbf_m.jpg",
	"author_name": "Bees",
	"author_url": "http://www.flickr.com/photos/bees/",
	"provider_name": "Flickr",
	"provider_url": "http://www.flickr.com/"

This allows the consumer to turn a URL to a Flickr photo page into structured data to allow embedding of that photo in the consumer's website.