Skip to main content
AI Studio  add-on for Spider.
last.fm · HTTP 200

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".

Get your free API key
Free balance on signup No card. Failed requests cost $0.
Response last.fm/index.md markdown · 59 lines
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.
Code · Fields · Cost · Run it keyless, no account

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.

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");

// No selectors, no schema. Spider reads the page and names the fields.
const data = await page.scrape();

console.log(data);
await spider.close();
ready to run · spider-browser, no selectors

Ready for volume? Get an API key →

Fields you can pull.

Track nameArtistPlay countListenersTagsBioSimilar artistsTop albums

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
See the full pricing →

Run it keyless, no account

curl -X POST https://api.spider.cloud/scrape -H "Content-Type: application/json" -d '{"url": "https://last.fm/", "return_format": "markdown"}'

More Music & Podcasts scrapers.

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.