Last.fm Top Charts Scraper avatar

Last.fm Top Charts Scraper

Pricing

from $19.00 / 1,000 results

Go to Apify Store
Last.fm Top Charts Scraper

Last.fm Top Charts Scraper

Scrapes Last.fm top tracks and top artists charts. Returns each record with play counts, listeners, and chart position. No API key required.

Pricing

from $19.00 / 1,000 results

Rating

0.0

(0)

Developer

ParseForge

ParseForge

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

0

Monthly active users

3 days ago

Last modified

Categories

Share

ParseForge

Last.fm Top Charts Scraper

Scrape Last.fm top tracks and artists charts with full stats. Get play counts, listeners, and chart positions for up to a million records per run. No API key required. Export to CSV, JSON, Excel, or XML.

Last.fm's official API needs an API key and has rate limits. This scraper reads the public top tracks and top artists charts directly, so you can collect music popularity data without any setup. Each record comes back as a flat row with the stats you need for analysis.

Who uses itWhat they scrape Last.fm for
Music industry analystsTrack which songs and artists are trending on Last.fm this week
Data journalistsBuild datasets of popular music for stories about listening habits
App developersPower music discovery features with current chart data
ResearchersStudy music popularity patterns across genres and time

What it does

This Actor collects top tracks or top artists from Last.fm charts and returns each record as a flat row with play counts, listeners, and chart position.

  • ๐ŸŽต Top tracks chart: scrape the most played tracks on Last.fm right now
  • ๐ŸŽค Top artists chart: scrape the most listened to artists on Last.fm
  • ๐Ÿ“Š Full stats: each record includes play counts, listeners, and chart position
  • โšก Bulk collection: get up to 1,000,000 records in a single run
  • ๐Ÿ“ Multiple formats: export your data as CSV, JSON, Excel, or XML

Results export to CSV, JSON, Excel, or XML, or straight from the API.

What you can do with Last.fm data

๐Ÿ“ˆ Track music trends.

A music blogger runs the scraper weekly on top tracks to see which songs are climbing the charts and write about emerging artists.

๐ŸŽฏ Build a recommendation engine.

An app developer scrapes top artists to seed a 'popular right now' section in their music discovery app.

๐Ÿ“Š Analyze listening habits.

A researcher collects top tracks over several months to study how play counts and listener numbers change over time.

๐Ÿ—ž๏ธ Power data journalism.

A journalist scrapes top artists to create a dataset for a story about the most listened to musicians this year.

Why choose this scraper

What you get
No API keyScrape Last.fm charts without registering for an API key
Up to 1M recordsCollect large datasets in a single run
Flat row outputEach record is a simple object ready for analysis
Multiple formatsExport to CSV, JSON, Excel, or XML

How it compares

This Actor focuses on the global top tracks and artists charts, while the other Last.fm scrapers offer search and genre browsing with additional artist details.

FeatureParseForgeLast.fm Scraper - Music Stats, Artists & AlbumsLast.fm Music Stats Scraper - Artists, Tracks & ScrobblesLast.fm Scraper
Top tracks chartYesNot listedNot listedNot listed
Top artists chartYesNot listedNot listedNot listed
Play counts and listenersYesYesYesNot listed
Search artistsNot listedYesYesYes
Browse by genre or tagNot listedYesYesYes
Album tracklistsNot listedYesNot listedNot listed
No API key requiredYesNot listedNot listedYes

Configure the run

Choose whether to scrape top tracks or top artists, and set the maximum number of records to collect. The scraper will fetch the chart and return each entry as a flat row. The Input tab lists every parameter.

A first run with the defaults:

{
"chartType": "tracks",
"maxItems": 10
}

A larger pull:

{
"chartType": "tracks",
"maxItems": 200
}

Pricing

Pay-per-result: $0.021 per result collected. You pay only for the results written to your dataset.

Results collectedApproximate cost
100 results$2.10
1,000 results$21.00
10,000 results$210.00

New Apify accounts start with $5 in free credit.

Free users

Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.

Run it

  1. Create a free Apify account with $5 in credit.
  2. Open the Last.fm Top Charts Scraper.
  3. Set your inputs and any filters, then click Start.
  4. Export the results as CSV, Excel, JSON, or XML from the Dataset tab.

Run it programmatically through the Apify API (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.

Use with AI agents (MCP)

Give an AI agent live access to Last.fm through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

$claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/last-fm-scraper"

Then prompt it in plain language to run the scraper and read back the results.

Troubleshooting

Why am I getting no results?

Make sure you have selected a chart type (tracks or artists) and set a maximum records value greater than 0. If the problem persists, check if Last.fm is accessible from your location.

The scraper is returning fewer records than I set.

The Last.fm chart may have fewer entries than your maximum. The scraper returns all available entries up to your limit.

Can I get historical chart data?

No, this scraper only fetches the current chart. To build historical data, run it regularly and store the results.

The run failed with a timeout error.

Try reducing the maximum records or run again later. Last.fm may be temporarily slow. Apify's automatic retries often resolve this.

I need data for a specific country.

This scraper only supports the global charts. Country-specific charts are not available in this Actor.

FAQ

QuestionAnswer
Do I need a Last.fm API key?No. This scraper reads the public Last.fm charts directly, so you don't need to register for an API key or deal with rate limits.
What data does the scraper return?Each record includes the track or artist name, play count, listener count, and chart position. The exact fields are shown in the sample output.
Can I scrape both tracks and artists in one run?No, each run scrapes one chart type. You can run the Actor twice, once for tracks and once for artists, or use two separate runs.
How many records can I get?You can set the maximum records from 1 up to 1,000,000. The scraper will collect up to that many entries from the chart.
Which Last.fm charts are available?The scraper currently supports the global top tracks and top artists charts. It does not scrape user-specific charts or tag-based charts.
What formats can I export the data to?You can export the results as CSV, JSON, Excel, or XML directly from the Apify platform.
Is the data live?Yes, the scraper fetches the current chart data at the time of the run. Run it as often as you need to keep your dataset up to date.
Can I schedule this scraper to run automatically?Yes, you can set up a schedule in Apify to run the Actor daily, weekly, or at any interval you choose.
Does this scraper work with proxies?Apify automatically manages proxies for you. You don't need to configure anything; the scraper will use the platform's proxy pool if needed.
What if I need data from a specific genre or tag?This scraper only fetches the global top charts. For genre or tag browsing, consider using one of the other Last.fm scrapers on Apify that support search and tag filtering.

Browse the full ParseForge collection for more scrapers.

๐Ÿ†˜ Need help? Email parseforge@protonmail.com with your run ID, your input, and what you expected.

โš ๏ธ Disclaimer. This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Last.fm Ltd. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.