# Last.fm on Onekey > 9 endpoints for Last.fm (0 stable, 9 beta), 1 to 5 credits each. Category: Music & audio. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Page: https://onekey.dev/platforms/lastfm Reference (Markdown): https://onekey.dev/docs/api/lastfm.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 9 mapped Last.fm endpoints return each: - `author.displayName` (string): 9 - `engagement.views` (integer): 8 - `author.url` (URL): 5 - `author.followers` (integer): 4 - `content.title` (string): 3 - `content.url` (URL): 3 - `author.bio` (string): 1 - `entity.name` (string): 1 - `entity.url` (URL): 1 - plus 3 platform-specific fields under `ext.` ## Endpoints ### lastfm.album_info Album info and stats (Last.fm). - Price: 1 credit per fresh call. Status: beta. Returns: one record. - Request: `GET https://api.onekey.dev/v1/lastfm/album_info?artist=Radiohead&album=OK%20Computer` with header `x-api-key: YOUR_API_KEY` - Parameters: - `artist` (string, required): Artist name - `album` (string, required): Album name - Fields returned: `entity.name`, `author.displayName`, `entity.url`, `engagement.views`, `ext.listeners` - Reference: https://onekey.dev/docs/api/lastfm/album_info.md ### lastfm.artist_info Artist info and stats (Last.fm). - Price: 1 credit per fresh call. Status: beta. Returns: one record. - Request: `GET https://api.onekey.dev/v1/lastfm/artist_info?artist=Radiohead` with header `x-api-key: YOUR_API_KEY` - Parameters: - `artist` (string, required): Artist name - Fields returned: `author.displayName`, `author.url`, `author.followers`, `engagement.views`, `author.bio`, `ext.mbid` - Reference: https://onekey.dev/docs/api/lastfm/artist_info.md ### lastfm.artist_search Search artists (Last.fm). - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/lastfm/artist_search?q=radiohead` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Search query - Fields returned: `author.displayName`, `author.url`, `author.followers`, `engagement.views`, `ext.mbid` - Reference: https://onekey.dev/docs/api/lastfm/artist_search.md ### lastfm.artist_similar Artists similar to an artist (Last.fm). - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/lastfm/artist_similar?artist=Radiohead` with header `x-api-key: YOUR_API_KEY` - Parameters: - `artist` (string, required): Artist name - Fields returned: `author.displayName`, `author.url`, `ext.match` - Reference: https://onekey.dev/docs/api/lastfm/artist_similar.md ### lastfm.chart_top_artists Global top artists chart (Last.fm). - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/lastfm/chart_top_artists` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `author.displayName`, `author.url`, `author.followers`, `engagement.views`, `ext.mbid` - Reference: https://onekey.dev/docs/api/lastfm/chart_top_artists.md ### lastfm.chart_top_tracks Global top tracks chart (Last.fm). - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/lastfm/chart_top_tracks` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `content.title`, `author.displayName`, `content.url`, `engagement.views`, `ext.listeners` - Reference: https://onekey.dev/docs/api/lastfm/chart_top_tracks.md ### lastfm.tag_top_artists Top artists for a tag/genre (Last.fm). - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/lastfm/tag_top_artists?tag=rock` with header `x-api-key: YOUR_API_KEY` - Parameters: - `tag` (string, required): Tag, e.g. rock - Fields returned: `author.displayName`, `author.url`, `author.followers`, `engagement.views`, `ext.mbid` - Reference: https://onekey.dev/docs/api/lastfm/tag_top_artists.md ### lastfm.track_info Track info and stats (Last.fm). - Price: 1 credit per fresh call. Status: beta. Returns: one record. - Request: `GET https://api.onekey.dev/v1/lastfm/track_info?artist=Radiohead&track=Creep` with header `x-api-key: YOUR_API_KEY` - Parameters: - `artist` (string, required): Artist name - `track` (string, required): Track name - Fields returned: `content.title`, `author.displayName`, `content.url`, `engagement.views`, `ext.listeners` - Reference: https://onekey.dev/docs/api/lastfm/track_info.md ### lastfm.track_search Search tracks (Last.fm). - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/lastfm/track_search?q=creep` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Search query - Fields returned: `content.title`, `author.displayName`, `content.url`, `engagement.views`, `ext.listeners` - Reference: https://onekey.dev/docs/api/lastfm/track_search.md ## Sample request ```bash curl "https://api.onekey.dev/v1/lastfm/album_info?artist=Radiohead&album=OK%20Computer" \ -H "x-api-key: YOUR_API_KEY" ```