Repository navigation
Home
This wiki documents the current C# implementation of WillStrohl.API.oEmbed, a standalone .NET Framework 4.8 wrapper for the oEmbed standard.
The library accepts a resource URL, calls an official oEmbed endpoint when the URL matches an active provider, or performs unauthenticated JSON discovery when it does not. It returns embeddable content as a string and applies outbound-request and HTML-safety controls by default.
- Install the
WillStrohl.API.oEmbedNuGet package. - Target .NET Framework 4.8.
- Pass a resource URL to
Wrapper.GetContent. - Render the returned string according to your application’s output policy.
using WillStrohl.API.oEmbed;
var wrapper = new Wrapper();
var output = wrapper.GetContent(new RequestInfo("https://www.youtube.com/watch?v=example"));GetContent returns a provider result or discovered result as a string. It does not return a general-purpose HTML sanitizer, and callers remain responsible for placing output safely in their own application.
- Using known providers — active automatic routing, dimensions, direct provider compatibility, and response behavior.
-
Using unknown providers — HTML/HTTP discovery and standard
linkresponses. -
Security and configuration — SSRF protections, redirects, HTML transformation, and
oembed.json.config. - Development and release — repository build, tests, packaging, and GitHub Actions publishing.
- JSON oEmbed responses of type
photo,video,rich, andlink. - Active automatic provider routing for Embedly, Flickr, Hulu, oohEmbed, Qik, Revision3, SoundCloud, Spotify, TikTok, Vimeo, and YouTube.
- Unauthenticated JSON discovery from HTML
<link>metadata and HTTPLinkheaders. - Caller-supplied
maxwidthandmaxheightfor discovery requests. - Secure outbound HTTP behavior and safe transformation of rich/video HTML.
- XML discovery is not supported.
- Authenticated provider APIs and proprietary widget integrations are out of scope.
- Historical
PollEverywhere,MyOpera, andViddlerclasses remain public for compatibility, but their URLs are not automatically routed. - The project targets .NET Framework 4.8; this is not a .NET Standard or modern .NET multi-target package.
This innovation is maintained by Upendo Ventures. Demos of this software can be seen on various runsonUpendo client websites.