Last.FM TypeScript API Client

JSON →
library 2.6.2 ·javascript
verified May 27, 2026

lastfm-ts-api is a TypeScript-first API client for the Last.FM API, currently stable at version 2.6.2. It provides strongly typed interfaces for interacting with various Last.FM API endpoints, including Album, Artist, Auth, Chart, Geo, Library, Tag, Track, and User APIs. The library maintains an active release cadence, frequently adding new features, improving error handling, and enhancing type definitions. A key differentiator is its comprehensive TypeScript support, ensuring parameter and response types are well-defined. It also supports integration with third-party scrobbling services like Libre.FM since version 2.3.0 and offers user-configurable request timeouts. The library transitioned to a pure ESM module in version 2.0.0, aligning with modern JavaScript practices.

total hits 22
actors 7 distinct systems
last hit 1d ago Amazonbot
Amazonbot
4
MetaBot
4
GPTBot
2
Script
1
Search engines
1
Humans
5

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · VN · BD