oEmbed

oEmbed is an open standard for turning a URL into an embeddable piece of content for your site. To find out more about oEmbed read the spec. The App.net oEmbed endpoint will return HTML snippets that you can include on your site. Right now it works for individual posts, and photos.

oEmbed Endpoint

Returns an oEmbed response for a given URL.

Endpoint

Method URL Token
GET https://api.app.net/oembed None

URL Parameters

Name Description
url A URL for a post or photo on App.net.

Example

to see more complete examples.

curl -H "Authorization: Bearer <YOUR ACCESS TOKEN>" -H "X-ADN-Pretty-JSON: 1" \
    "https://api.app.net/oembed?url=https://posts.app.net/1"
{
  "data": {
    "provider_url": "https://app.net",
    "version": "1.0",
    "author_url": "https://alpha.app.net/mthurman",
    "title": "join.app.net getting ready for the world w/ @dalton @berg @voidfiles @jhubball @aaronblyth @andrew @vinitlee @mark @mintz @barmstrong @laughingman @mikegreenspan @ben #joinus",
    "url": "https://alpha.app.net/mthurman/post/1",
    "provider_name": "App.net",
    "type": "link",
    "html": "...",
    "author_name": "mthurman"
  },
  "meta": {
    "code": 200
  }
}