Skip to content

thaddeuskkr/lastfm

Repository files navigation

Last.fm Widgets

This is a set of widgets that can be easily embedded in websites. These widgets update in real-time, and are dynamically generated.

Now Playing

Endpoint

https://lfm.tkkr.dev/nowplaying

Query Parameters

  • username (required) - string
    The last.fm user you would like to generate a widget for.
  • size (optional) - number
    The height of the widget. The aspect ratio for this widget is 5:1.
    The aspect ratio cannot be changed. Defaults to 80.
  • show_username (optional) - boolean
    Whether to show the user's username at the bottom right. Defaults to true.
  • show_logo (optional) - boolean
    Whether to show the last.fm logo on the top right. Defaults to true.
  • transparent (optional) - boolean
    Whether the widget should have a transparent background. Defaults to false.
  • light (optional) - boolean
    Whether the widget should have a light theme. Defaults to false.
  • dynamic (optional) - boolean
    Whether the widget should have a dynamic background from the colour palette of the album art.
    Cannot be used with light. Defaults to false.

Example Request