The username of the user whose activity you want to retrieve.
Example: /api/me?username=potato
If provided, the API will return a SVG image of the user's currently playing or last played music
activity
instead of JSON. This is useful for embedding a dynamic "Now Playing" badge or card in places that
support
SVG images, such as GitHub READMEs or personal websites.
Note: When using this query parameter, the API will ignore the service
query
parameter
and always return the activity information for the service where you are currently listening to
music.
Example:
<img src="https://yutify.cheapnightbot.me/api/me?svg" alt="Now Playing" />
<img src="https://yutify.cheapnightbot.me/api/me?username=potato&svg" alt="Now Playing" />
The music service name to retrieve listening activity metadata from. It must be linked first in your
account
settings!
If provided, music information/metadata will be retrieved for the music you are currently listening to
on
this service.
If it is not provided or does not contain allowed values, it will be simply ignored and music
information/metadata will
be retrieved for all the linked services.
If music information requested for all linked services, the one where you are currently listening to
music
will be given priority.
However, if (for whatever reason), you are listening to music on all the linked services, these will be
given priority at random. That is, you can't be sure for which linked service you will get music
information
returned.
Default: "all"
Allowed values: "all"
, "lastfm"
, "spotify"
Note: The query parameter for service
is NOT ?service=<name>
(i.e. key-value pair)! Instead, you just provide the service name directly as a key.
Example: /api/me?lastfm
If provided, the API will return a ready-to-embed HTML user activity card (instead of JSON) for the
requested
user. You should use it inside an <iframe>
.
The style of the embed (i.e. HTML and SVG embed, ?embed
and ?svg
respectively).