NEW AI Studio is now available Try it now
Music & Podcasts

Last.fm Scraper

Extract scrobble charts, listening history, artist bios, and music recommendations from Last.fm tracking platform. Powered by spider-browser .

Get Started Documentation
last.fm target
99.5% success rate
~4ms latency
Quick Start

Extract data in minutes

lastfm-scraper.ts
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 to run | spider-browser | TypeScript
Fetch API

Structured data endpoint

Extract structured JSON from last.fm with a single POST request. AI-configured selectors, cached for fast repeat calls.

POST /fetch/last.fm/
Track nameArtistPlay countListenersTagsBio
curl
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"}'
Python
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())
Node.js
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);
Extraction

Data you can extract

Track nameArtistPlay countListenersTagsBioSimilar artistsTop albums
Metadata

Track & album data

Extract track info, artist data, and play counts from last.fm.

Rendering

Player handling

Handle embedded players, dynamic playlists, and streaming interfaces.

Scale

Catalog coverage

Process entire artist catalogs and podcast libraries at scale.

Related

More Music & Podcasts scrapers

Start scraping last.fm

Get your API key and start extracting data in minutes.