Last.fm Scraper
Spider read last.fm in 140 ms without a browser and returned 59 lines of clean markdown, including sections like "Your music stats", "We find you music to love" and "Rediscover your music".
Join millions of users. All for free.## Your *music stats*.Track the music you stream by connecting Last.fm to a music service or via our web client, app or a browser plugin.View your stats in real time, receive weekly reports, access your listening history and much more.Connect your streaming service to Last.fm## We *find* you *music to love*.Last.fm uses your listening history to recommend you new music and events.Find music to love on your personalized music page, Next_30 playlist or recommended radio.## *Rediscover* your music.Every song you've listened to, all in one place.Access your entire listening history anytime relive specific days, view your all time stats and rediscover forgotten favorites.## Music counts more with Last.fm ProExplore, Experience and control more music.## API Calls### Scrobble from Spotify?Connect your Spotify account to your Last.fm account and scrobble everything you listen to, from any Spotify app on any device or platform. The same call, in code.
The capture above came back as markdown. These examples add a key, so you get browser rendering, proxies, and concurrency on last.fm.
import { SpiderBrowser } from "spider-browser";
const spider = new SpiderBrowser({
apiKey: process.env.SPIDER_API_KEY!,
});
await spider.connect();
const page = spider.page!;
await page.goto("https://www.last.fm/charts");
// No selectors, no schema. Spider reads the page and names the fields.
const data = await page.scrape();
console.log(data);
await spider.close(); import { SpiderBrowser } from "spider-browser";
const spider = new SpiderBrowser({
apiKey: process.env.SPIDER_API_KEY!,
});
await spider.connect();
const page = spider.page!;
await page.goto("https://www.last.fm/charts");
await page.content();
const data = await page.extractFields({
title: ".chartlist-name a",
artist: ".chartlist-artist a",
playCount: ".chartlist-count-bar-value",
image: { selector: ".chartlist-image img", attribute: "src" },
});
console.log(data);
await spider.close(); Ready for volume? Get an API key →
Fields you can pull.
Spider names these from the page. The capture above came back as markdown; the same
call with return_format: "json" returns them as keys.
What last.fm costs to scrape.
The capture above cost $0.000231 to fetch. Pricing is $1 per GB of pre-transformation bandwidth plus $0.001 per CPU minute, so a page like this one lands at a fraction of a cent. Failed requests are billed at $0.
- Free balance on signup
- No card required to test
- Balance never expires
Run it keyless, no account
More Music & Podcasts scrapers.
Spotify Music Scraper
Extract playlist tracks, artist profiles, album metadata, and popularity scores from Spotify open web player.
Apple Music Scraper
Extract album tracklists, artist discographies, playlist contents, and editorial notes from Apple Music catalog.
Deezer Scraper
Extract music catalogs, playlist data, artist bios, and chart rankings from Deezer streaming platform.
Start scraping last.fm.
You already have the call. A key raises the rate limit and turns on browser rendering, proxies, and concurrency. Balance never expires, and top-ups go through secure checkout.