oEmbed Provider

While not SEO, oEmbed is another way to give information about web pages, specifically intended for embedding media like photos and video. I used Cloudflare Workers to create a serverless oEmbed provider that scrapes the web page for metadata, including Schema markup and <meta> tags.

Here's an example of a blog post:


{
  "type": "link",
  "version": "1.0",
  "title": "Building a metadata API & Search",
  "provider_name": "Christian Martin's Blog",
  "author_name": "Christian Martin"
}

The code uses Cloudflare's HTMLRewriter API to extract and parse Schema JSON-LD & <meta> tags. The data is then mapped to oEmbed properties, preferring Schema and falling back to less specific/vendor-branded tags as needed. According to the Cloudflare dashboard, the median CPU time (as of writing) is 2.3ms.