RanRag
RanRag

Reputation: 49577

How to get last week top tracks of an artist using last.fm API?

I want to fetch the last week top tracks of an artist using the last.fm API but I don't see any relevant method call for that.

I looked at artist.getTopTracks method but it returns the overall top tracks of an artist.

So, is there any way I can fetch just the last week top tracks using the API.

Upvotes: 0

Views: 659

Answers (1)

Chris Bol
Chris Bol

Reputation: 36

Unfortunately no way to get this info via their API. Bit strange indeed as the last week top tracks chart is listed default on an artist page at the last.fm website. So you have to use some good old web scraping techniques.

Upvotes: 2

Related Questions