Sign Up

Log In

LastFm

FREE
By dimashirokov
Updated 6 months ago
Music
-/10
Popularity Score
-
Latency
-
Success Rate

LastFm API Documentation

Get top artists, tracks and users from online radio.

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub

POSTgetAlbumInfo
POSTgetAlbumTags
POSTgetArtistCorrection
POSTgetArtistInfo
POSTgetArtistTags
POSTgetSession
POSTgetSimilarArtists
POSTgetSimilarTags
POSTgetSimilarTracks
POSTgetTagInfo
POSTgetTagTopAlbums
POSTgetTagTopArtists
POSTgetTopAlbumTags
POSTgetTopArtistAlbums
POSTgetTopArtistTags
POSTgetTopArtistTracks
POSTgetTopArtistsByCountry
POSTgetTopArtistsChart
POSTgetTopTagTracks
POSTgetTopTags
POSTgetTopTagsChart
POSTgetTopTrackTags
POSTgetTopTracksByCountry
POSTgetTopTracksChart
POSTgetTrackCorrection
POSTgetTrackInfo
POSTgetTrackTags
POSTgetUserArtistTracks
POSTgetUserArtists
POSTgetUserFriends
POSTgetUserInfo
POSTgetUserLovedTracks
POSTgetUserPersonalTags
POSTgetUserRecentTracks
POSTgetUserTopAlbums
POSTgetUserTopArtists
POSTgetUserTopTags
POSTgetUserTopTracks
POSTgetUserWeeklyAlbumChart
POSTgetUserWeeklyArtistChart
POSTgetUserWeeklyChartList
POSTgetUserWeeklyTrackChart
POSTgetWeeklyTagChartList
POSTloveTrack
POSTscrobbleSingleTrack
POSTscrobbleTracks
POSTsearchAlbum
POSTsearchArtist
POSTsearchTracks
POSTtagAlbum
POSTtagArtist
POSTtagTrack
POSTunloveTrack
POSTuntagAlbum
POSTuntagArtist
POSTuntagTrack
POSTupdateNowPlayingTrack
POSTgetAlbumInfo

Get the metadata and tracklist for an album on Last.fm using the album name or a musicbrainz id.

Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
artistSTRING
REQUIREDThe artist name.
albumSTRING
REQUIREDThe album name
apiKeyCREDENTIALS
REQUIREDA Last.fm API key.
Optional Parameters
usernameSTRING
OPTIONALThe username for the context of the request. If supplied, the user's playcount for this album is included in the response.
mbidSTRING
OPTIONALThe musicbrainz id for the album
autocorrectSTRING
OPTIONALTransform misspelled artist names into correct artist names, returning the correct version instead. The corrected artist name will be returned in the response.
langSTRING
OPTIONALThe language to return the biography in, expressed as an ISO 639 alpha-2 code.
Request Snippet
unirest.post("https://LastFmdimashirokovV1.p.rapidapi.com/getAlbumInfo")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("username=undefined")
.send("mbid=undefined")
.send("autocorrect=undefined")
.send("lang=undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response

loading...

Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://LastFmdimashirokovV1.p.rapidapi.com/getAlbumInfo")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("username=undefined")
.send("mbid=undefined")
.send("autocorrect=undefined")
.send("lang=undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication
Sign up for freeto test this endpoint
Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard