Skip to content

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.

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') -> OEmbedResponse

Return oEmbed data for a track, playlist, or album URL.

This enables services like iframely to discover our embed player.

oEmbed response for embeds.