Skip to content

astro-oembed

Embed any URL in Astro using the oEmbed protocol.

300+ providers

Supports YouTube, Vimeo, Twitter, and hundreds more — any service in the oEmbed registry.

Click-to-load

Video and rich embeds render a lightweight placeholder. The iframe loads only when the user clicks.

All response types

Handles all four oEmbed types: video, rich, photo, and link.

TypeScript

Fully typed. Use fetchOembed to get a typed OembedResponse and narrow on response.type with full IDE support.