The team at WordPress.com today on July 14, announce the availability of new oEmbed Provider API, yet another way to make it easy for third-party services and their respective audiences to share and consume content.
"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," the WordPress.com blog said.
The API supports any WordPress.com URL, any WordPress.com-hosted domain or subdomain as well as WP.me shortlinks pointing to WordPress.com-hosted sites.
- in as_article mode, content is stripped of tags and limited to a ~256 characters excerpt (type=article, with body property).
- in standard (as_article=false) mode, content is served as markup in full, or in excerpt if provided and as set by author (type=link, with html property).
- supports posts and pages as link/html or article/body (see as_article argument).
- supports attachments (picts/media/documents) as type link or type photo for images (gif, jpg, jpeg, png).
- thumbnail for post and pages if present, from post thumb or 1st pict in content.
- local and remote images are resized and/or re-cropped to desired dimensions, for consistency, then cached (including CDN) for speed.
- support geolocation data, when made available by the author, through custom properties (
- supports related_topics when as_article=true.
Hop over to develop.wordpress.com and see the oEmbed Provider API documentation for more information.