lastfm

Last.FM API bindings

Pure Nim score 30/100 · tests present · docs generated

Summary

Latest Version Unknown
License Apache-2.0
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install lastfm
choosenim install lastfm
git clone https://gitlab.com/tandy1000/lastfm-nim

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
lastfm - - - - - - -

Source

Repository https://gitlab.com/tandy1000/lastfm-nim
Homepage https://gitlab.com/tandy1000/lastfm-nim
Documentation View Documentation
Registry Source nimble_official

README

lastfm-nim pipeline status

import lastfm
import lastfm/[track, artist, album, tag, geo, user]

Full documentation is available here.

This library contains multisync-friendly bindings to the Last.FM web API. The library returns API data as JsonNodes.

The list below shows each API method exposed by the package, the function implementing that method, and the submodule in which it is implemented:

API methods in lastfm/track

  • track.addTags: trackAddTags
  • track.getCorrection: trackCorrection
  • track.getInfo: trackInfo
  • track.getSimilar: similarTracks
  • track.getTags: trackTags
  • track.getTopTags: trackTopTags
  • track.love: loveTrack
  • track.removeTag: trackRemoveTag
  • track.scrobble: scrobble
  • track.search: searchTracks
  • track.unlove: unloveTrack
  • track.updateNowPlaying: setNowPlaying

API methods in lastfm/artist - artist.addTags: artistAddTags - artist.getCorrection: artistCorrection - artist.getInfo: artistInfo - artist.getSimilar: similarArtists - artist.getTags: artistTags - artist.getTopAlbums: artistTopAlbums - artist.getTopTags: artistTopTags - artist.getTopTracks: artistTopTracks - artist.removeTag: artistRemoveTag - artist.search: searchArtists

API methods in lastfm/album - album.getInfo: albumInfo - album.addTags: albumAddTags - album.removeTag: albumRemoveTag - album.getTags: albumTags - album.getTopTags: albumTopTags - album.search: searchAlbums

API methods in lastfm/tag - tag.getInfo: tagInfo - tag.getSimilar: similarTags - tag.getTopAlbums: topAlbumsForTag - tag.getTopArtists: topArtistsForTag - tag.getTopTracks: topTracksForTag - tag.getTopTags: topTags - tag.getWeeklyChartList: weeklyChartsForTag

API methods in lastfm/chart - chart.getTopTracks: chartTopTracks - chart.getTopTags: chartTopTags - chart.getTopArtists: chartTopArtists

API methods in lastfm/geo - geo.getTopTracks: geoTopTracks - geo.getTopArtists: geoTopArtists

API methods in lastfm/user - user.getInfo: userInfo - user.getLovedTracks: userLovedTracks - user.getRecentTracks: userRecentTracks - user.getPersonalTags: userPersonalTags - user.getTopTracks: userTopTracks - user.getTopArtists: userTopArtists - user.getTopAlbums: userTopAlbums - user.getTopTags: userTopTags

Furthermore, the following client authentication flows are supported: