Skip to content

Getting Started

Terminal window
npm install astro-oembed

Pass any supported URL to the <Oembed> component and it will resolve the provider, fetch the oEmbed response at build time, and render the appropriate output.

---
import { Oembed } from 'astro-oembed';
---
<Oembed url="https://www.youtube.com/watch?v=dQw4w9WgXcQ" />

See the <Oembed> component reference for the full list of props.