oembed
backend.api.oembed
Section titled “backend.api.oembed”oEmbed endpoint for track, playlist, and album embeds.
Enables services like Leaflet.pub (via iframely) to discover and use our embed player instead of raw HTML5 audio.
Functions
Section titled “Functions”get_oembed source
Section titled “get_oembed source”get_oembed(url: Annotated[str, Query(description='URL to get oEmbed data for')], db: Annotated[AsyncSession, Depends(get_db)], maxwidth: Annotated[int | None, Query()] = None, maxheight: Annotated[int | None, Query()] = None, format: Annotated[str, Query()] = 'json') -> OEmbedResponseReturn oEmbed data for a track, playlist, or album URL.
This enables services like iframely to discover our embed player.
Classes
Section titled “Classes”OEmbedResponse source
Section titled “OEmbedResponse source”oEmbed response for embeds.