API & ProjectMike HarmalaJeremy CanfieldYuliang Ma
Last.fm is a way for you to track yourlistening habits. Each track reported toLast.fm is called a scrobble.
Last.fm is also a social network thataggregates users data & recommendsnew music based on users habits
Thats a lot of data! Last.fm has an APIfor developers to use         last.fm/api
The API lets you see things at anindividual user level or an aggregatelevel. Things like...an artists tags     a users top...
Before getting an API key, you need tomake a user profile (do it!)
After applying for an API account, youget an API key & a secret code thatauthenticates you for write services
For the API you call a method & it willreturn XML, like this for track.getInfoparametersartist artist name in question (op...
Part of Dumper() could look like...toptags => {         tag => {              alternative rock => {                       ...
Questions?print "Ask a question:n";my $question=<>;
Our ProjectTag Exploration
Project Goals1 Compare Users based on Tags2 Find Weird Tags for Artists
Project Goal 1Compare Users based on Tagsa. Get a last.fm users favorite artists, then   compile the tags for all those ar...
Project Goal 1Compare Users based on Tagswordletag cloudbar chart
Project Goal 2Find Weird Tags for Artistsa. Get a last.fm artists similar artists, then   compile the tags for all those a...
Project Goal 2Find Weird Tags for Artistslast.fm Tag explorer
thank you
Upcoming SlideShare
Loading in...5
×

Last fm api_overview

561

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
561
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Last fm api_overview"

  1. 1. API & ProjectMike HarmalaJeremy CanfieldYuliang Ma
  2. 2. Last.fm is a way for you to track yourlistening habits. Each track reported toLast.fm is called a scrobble.
  3. 3. Last.fm is also a social network thataggregates users data & recommendsnew music based on users habits
  4. 4. Thats a lot of data! Last.fm has an APIfor developers to use last.fm/api
  5. 5. The API lets you see things at anindividual user level or an aggregatelevel. Things like...an artists tags a users top artistsevent info
  6. 6. Before getting an API key, you need tomake a user profile (do it!)
  7. 7. After applying for an API account, youget an API key & a secret code thatauthenticates you for write services
  8. 8. For the API you call a method & it willreturn XML, like this for track.getInfoparametersartist artist name in question (optional)track track name in question (optionalmbid musicbrainz id for the track (optional)username username for the context of the request. If supplied, the usersplaycount for this track and whether they have loved the track is includedin the response (optional)api_key A Last.fm API key (required!)url input (well just use api_key, track & artist)http://ws.audioscrobbler.com/2.0/?method=track.getinfo&api_key=b25b959554ed76058ac220b7b2e0a026&artist=radiohead&track=paranoid+android
  9. 9. Part of Dumper() could look like...toptags => { tag => { alternative rock => { url => http://www.last.fm/tag/alternative%20rock }, indie => { url => http://www.last.fm/tag/indie }, rock => { url => http://www.last.fm/tag/rock }, alternative => { url => http://www.last.fm/tag/alternative }, radiohead => { url => http://www.last.fm/tag/radiohead } } },name => Paranoid Android,duration => 382000,mbid => {},album => { artist => Radiohead, url => http://www.last.fm/music/Radiohead/OK+Computer, position => 2, title => OK Computer, ...
  10. 10. Questions?print "Ask a question:n";my $question=<>;
  11. 11. Our ProjectTag Exploration
  12. 12. Project Goals1 Compare Users based on Tags2 Find Weird Tags for Artists
  13. 13. Project Goal 1Compare Users based on Tagsa. Get a last.fm users favorite artists, then compile the tags for all those artists into a listb. Do the same for a second userc. Compare tag lists
  14. 14. Project Goal 1Compare Users based on Tagswordletag cloudbar chart
  15. 15. Project Goal 2Find Weird Tags for Artistsa. Get a last.fm artists similar artists, then compile the tags for all those artistsb. Analyze tag lists
  16. 16. Project Goal 2Find Weird Tags for Artistslast.fm Tag explorer
  17. 17. thank you

×