Skip to main content
AI Studio  add-on for Spider.
Music & Podcasts
last.fm Verified

Last.fm Scraper

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

Get started Docs
target
last.fm
success rate
99.9%
latency
~4ms
POST /fetch/last.fm/
return_format
curl -X POST https://api.spider.cloud/fetch/last.fm/ \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"return_format": "json"}'
200 OK · cache hit · response shape
{
  "url": "https://last.fm/",
  "status": 200,
  "data": {
    "track_name": "string",
    "artist": "string",
    "play_count": "string",
    "listeners": "string",
    "tags": "string",
    "bio": "string",
    "similar_artists": "string",
    "top_albums": "string"
  }
}
Quick start

Extract data in minutes.

Structured JSON from last.fm with a single POST. AI-resolved selectors, cached on the first call.

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
Extraction

Fields you can pull.

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

Start scraping last.fm.

Grab an API key and call the endpoint above. The first request resolves the config; every request after hits cache.