Chocodata
public Via Universal scraper News & Media

Last.fm Scraper API

Access any Last.fm page using our Last.fm Scraper API. Point one API request at a Last.fm URL and get structured JSON back while we get past CAPTCHAs, IP rate limiting, IP blocking, and headless-browser detection through residential proxies. Get back fields like artist or track name, listener count, total play count, user-applied tags as structured JSON.

check_circle 1,000 free requests/month. No credit card. Residential proxies.

Request
curl "https://api.chocodata.com/api/v1/universal/get?api_key=YOUR_API_KEY&url=https://www.lastfm.com/"
JSON Response
200 OK
{
  "success": true,
  "url": "https://www.lastfm.com/",
  "status": 200,
  "content": "parsed Last.fm page content..."
  // + more fields
}
lan 235 targets
vpn_lock Residential proxy network
data_object Structured JSON
redeem 1,000 free requests/mo

Last.fm is served through the Universal Web Scraper API

You scrape Last.fm with Chocodata's Universal Web Scraper API: point it at any Last.fm URL and get the page back as structured JSON. Residential proxies, rotation, and retries are handled for you, with no Last.fm-specific setup. The same API key and credits work here as on every dedicated endpoint.

About Last.fm

Last.fm is a music discovery service that tracks listening history (scrobbles) and maintains pages for artists, albums, and tracks. Artist and track pages expose biographies, tags, listener and play counts, and similar-artist links worth extracting.

Scraping note: Last.fm pages render server-side and the same data is also available through its official API, which is preferable for high-volume listener and play-count pulls.

Example Last.fm page

https://www.last.fm/music/Radiohead

Pass a URL like this as url= to the Universal Web Scraper API and get it back as JSON.

Fields you can extract from Last.fm

check_small artist or track name check_small listener count check_small total play count check_small user-applied tags check_small similar artists check_small wiki biography text

Common use: A music-recommendation tool scrapes Last.fm artist pages to harvest community tags and similar-artist graphs for genre clustering.

Everything you need to scrape Last.fm

You never expose your own IP, you get validated JSON instead of raw HTML, and the free tier covers last fm scraper at 1,000 requests a month with no card required.

data_object

Clean structured JSON

The Last.fm page comes back as JSON in the parse mode you choose: auto, html, text, or json. No selectors to maintain for last fm scraper.

gpp_good

Bypasses CAPTCHAs and anti-bot defenses

We get past CAPTCHAs, IP rate limiting, IP blocking, and headless-browser detection on Last.fm using rotating, country-matched residential proxies, so requests look like real users and your own IP stays private.

api

One API call

Scraping Last.fm is one simple API call. The same key works across our whole web scraping API: all 235 targets, any language, no SDK required.

travel_explore

Geo-targeting and JS rendering

Pass a country for proxy geo-targeting and turn on JavaScript rendering when a Last.fm page needs it. last fm data api handles dynamic content and region-locked results.

Scrape Last.fm in one API request

Send one API request to the Universal Web Scraper API with a Last.fm URL and read the page back as JSON. Chocodata routes it through residential proxies and retries soft blocks, so last fm api works without a Last.fm-specific integration.

  • check_circle JSON in the parse mode you choose
  • check_circle Residential-proxy infrastructure
  • check_circle Only successful 2xx responses are billed
Get your free API key

Request

curl "https://api.chocodata.com/api/v1/universal/get?api_key=YOUR_API_KEY&url=https://www.lastfm.com/"

Response

{
  "success": true,
  "url": "https://www.lastfm.com/",
  "status": 200,
  "content": "parsed Last.fm page content..."
  // + more fields
}

Parameters

Last.fm routes through the Universal Web Scraper API, so the parameters are the universal ones: the URL to fetch, an optional parse mode, and an optional country for proxy geo-targeting.

Parameter Type Required Example
url string required https://example.com
parse enum optional auto
country string optional us

Enum parameters accept a fixed set of values. For example, parse accepts auto, html, text, json.

What you can build with Last.fm data

Once the scraping API returns Last.fm search data as clean JSON, these are the patterns teams reach for most.

check_circle

Data Aggregation

Pull Last.fm search records into your own warehouse and analyze them on your terms.

check_circle

Market Intelligence

Track Last.fm search data over time to spot market shifts before competitors do.

check_circle

Competitor Monitoring

Watch rivals on Last.fm and alert your team when prices, ranks, or listings change.

check_circle

Lead Generation

Turn Last.fm search data into targeted lead lists and feed them into your CRM.

Why developers pick Chocodata for Last.fm

bolt

Fast at the tail

Median 2.6 s per request with multi-tier retry, so latency stays predictable even when Last.fm fights back.

verified_user

Parity-checked output

The Universal scraper returns the live page faithfully in your chosen parse mode.

hub

One key, 235 targets

The same scraping API key that scrapes Last.fm works across every other target, with official Node, Python, and Go SDKs.

Simple pricing that scales with you

Start free with 1,000 requests a month and 5,000 credits, no credit card. Scale on monthly plans from $19, or top up pay-as-you-go at $0.90 per 1,000 successful requests. Only successful 2xx responses are billed, and every plan covers the full scraping API: all 235 targets and every endpoint.

Free

$0

Forever free on signup

  • check_circle1,000 requests / month (5,000 credits)
  • check_circle10 concurrent requests
  • check_circleAll 237 targets
  • check_circleFull dashboard + analytics
  • check_circleTop-up at $0.90 / 1k
  • check_circleCommunity support
Start free
Most popular

Vibe

$19 / month

$0.70 / 1k effective

  • check_circle27,000 requests / month (135,000 credits)
  • check_circle30 concurrent requests
  • check_circleAll 237 targets + content-language
  • check_circleCountry-matched residential IPs
  • check_circlePer-API-key usage tracking
  • check_circleTop-up at $0.90 / 1k
  • check_circleEmail support (1 business day)
Get Vibe

Pro

$49 / month

$0.60 / 1k effective

  • check_circle82,000 requests / month (410,000 credits)
  • check_circle50 concurrent requests
  • check_circlePriority routing queue
  • check_circleCountry-matched residential IPs
  • check_circleTeam seats (up to 5)
  • check_circleTop-up at $0.90 / 1k
  • check_circleEmail + chat support
Get Pro

Custom

$100-$2k / month

Flat $0.50 / 1k effective at every level

  • check_circle200k - 4M+ requests / month
  • check_circle100-500+ concurrent requests
  • check_circlePriority queue (highest)
  • check_circlePremium proxy pool + SLA on request
  • check_circleUnlimited team seats
  • check_circleWire / invoice / annual PO
  • check_circleDedicated Slack channel
Pick Custom level

Pay-as-you-go top-up

$0.90 / 1,000 successful requests

Available on every plan including Free. Top up any time when included credits run out. Only 2xx responses charged. Balance never expires.

Last.fm Scraper API FAQ

Is it legal to scrape Last.fm?

expand_more
Scraping publicly accessible Last.fm data is generally legal in the US under the Ninth Circuit's hiQ v. LinkedIn ruling, which held that scraping public web data does not violate the Computer Fraud and Abuse Act. It does not override Last.fm's own Terms of Service, which are a contract matter, so check those for your use case and comply with data laws such as GDPR. This is general information, not legal advice.

How do I scrape Last.fm without getting blocked?

expand_more
You scrape Last.fm without getting blocked by sending the URL to the Universal Web Scraper API, which fetches it through rotating residential proxies and retries on soft blocks. Your own IP is never used, so Last.fm's anti-bot layer sees ordinary residential traffic instead of a server.

What data does the Last.fm Scraper API return?

expand_more
Through the Universal Web Scraper API you get the Last.fm page back as JSON: rendered HTML, plain text, or auto-parsed content depending on the parse mode you pass. You choose the URL, Chocodata returns the data.

How much does the Last.fm Scraper API cost?

expand_more
The Last.fm Scraper API costs nothing to start: the Free plan includes 1,000 requests per month (5,000 credits) across all 235 targets. After that, monthly plans begin at $19, or you top up pay-as-you-go at $0.90 per 1,000 successful requests. One request is 5 credits, and non-2xx responses are never charged.

Do I need a Last.fm account or login?

expand_more
No Last.fm login is needed for public pages. You point the Universal Web Scraper API at a publicly accessible Last.fm URL with your Chocodata API key; you do not hand over any Last.fm credentials. Login-gated content is not supported.

Related scraper APIs

Start scraping Last.fm for free

1,000 free scraping API requests on signup across all 235 targets. No credit card required.