This site is being remade and I won't be updating this for a while. Expect a lot of broken links, design and functionality. If all goes well, things should be stable by the end of 2022. Thank you for understanding.


Use Noembed to Get Metadata For YouTube Videos, Tweets and Other Websites


I once tried to make a web app which extracts RSS feeds from YouTube URLs. One thing I couldn’t do was get channel information from a YouTube video without using the API. Thankfully I discovered Noembed which provides metadata you can use to make embeds.

So we can take some random YouTube video, prepend to make something like and we get this:

  "thumbnail_height": 360,
  "version": "1.0",
  "url": "",
  "thumbnail_width": 480,
  "width": 200,
  "provider_name": "YouTube",
  "height": 113,
  "provider_url": "",
  "type": "video",
  "html": "<iframe width=\"200\" height=\"113\" src=\"\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen title=\"Rick Astley - Never Gonna Give You Up (Official Music Video)\"></iframe>",
  "author_url": "",
  "author_name": "Rick Astley",
  "thumbnail_url": "",
  "title": "Rick Astley - Never Gonna Give You Up (Official Music Video)"

Likewise we can take an iconic tweet and get this in return:

  "width": 550,
  "provider_name": "Twitter",
  "author_url": "",
  "author_name": "jack",
  "title": "",
  "type": "rich",
  "provider_url": "",
  "height": null,
  "html": "<blockquote class=\"twitter-tweet\"><p lang=\"en\" dir=\"ltr\">just setting up my twttr</p>&mdash; jack (@jack) <a href=\"\">March 21, 2006</a></blockquote>\n<script async src=\"\" charset=\"utf-8\"></script>\n",
  "cache_age": "3153600000",
  "url": "",
  "version": "1.0"

The project was meant to cover sites which don’t use oEmbed but should. I want to use this to make embeds on my site, but I need to figure out how to cache the results in case the underlying resource vanishes.