Last.fm Scraper
Extract scrobble charts, listening history, artist bios, and music recommendations from Last.fm tracking platform. Built on spider-browser .
- target
- last.fm
- success rate
- 99.9%
- latency
- ~4ms
Extract data in minutes.
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(); One endpoint for last.fm.
Structured JSON from last.fm with a single POST. AI-resolved selectors, cached on the first call.
curl -X POST https://api.spider.cloud/fetch/last.fm/ \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"return_format": "json"}' import requests
resp = requests.post(
"https://api.spider.cloud/fetch/last.fm/",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
json={"return_format": "json"},
)
print(resp.json()) const resp = await fetch("https://api.spider.cloud/fetch/last.fm/", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({ return_format: "json" }),
});
const data = await resp.json();
console.log(data); Fields you can pull.
Track & album data
Extract track info, artist data, and play counts from last.fm.
Player handling
Handle embedded players, dynamic playlists, and streaming interfaces.
Catalog coverage
Process entire artist catalogs and podcast libraries at scale.
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.
Grab an API key and call the endpoint above. The first request resolves the config; every request after hits cache.