SlideShare ist ein Scribd-Unternehmen logo
1 von 17
API & Project
Mike Harmala
Jeremy Canfield
Yuliang Ma
Last.fm is a way for you to track your
listening habits. Each track reported to
Last.fm is called a scrobble.
Last.fm is also a social network that
aggregates users' data & recommends
new music based on users' habits
That's a lot of data! Last.fm has an API
for developers to use

         last.fm/api
The API lets you see things at an
individual user level or an aggregate
level. Things like...
an artist's tags     a user's top artists




event info
Before getting an API key, you need to
make a user profile (do it!)
After applying for an API account, you
get an API key & a secret code that
authenticates you for write services
For the API you call a method & it will
return XML, like this for track.getInfo
parameters
artist artist name in question (optional)
track track name in question (optional
mbid musicbrainz id for the track (optional)
username username for the context of the request. If supplied, the user's
playcount for this track and whether they have loved the track is included
in the response (optional)
api_key A Last.fm API key (required!)

url input (we'll just use api_key, track & artist)
http://ws.audioscrobbler.com/2.0/?
method=track.getinfo&api_key=b25b959554ed76058ac220b7b2e0a
026&artist=radiohead&track=paranoid+android
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',
        ...
Questions?
print "Ask a question:n";
my $question=<>;
Our Project


Tag Exploration
Project Goals
1 Compare Users based on Tags

2 Find Weird Tags for Artists
Project Goal 1
Compare Users based on Tags
a. Get a last.fm user's favorite artists, then
   compile the tags for all those artists into
   a list

b. Do the same for a second user

c. Compare tag lists
Project Goal 1
Compare Users based on Tags
wordle

tag cloud

bar chart
Project Goal 2
Find Weird Tags for Artists
a. Get a last.fm artist's similar artists, then
   compile the tags for all those artists

b. Analyze tag lists
Project Goal 2
Find Weird Tags for Artists
last.fm Tag explorer
thank you

Weitere ähnliche Inhalte

Andere mochten auch

PERFORMANCE REVIEW_2016_JKI_20160920
PERFORMANCE REVIEW_2016_JKI_20160920PERFORMANCE REVIEW_2016_JKI_20160920
PERFORMANCE REVIEW_2016_JKI_20160920Jonathan King
 
Last fm
Last fmLast fm
Last fmlou80
 
Manajemen Pemasaran (Philip Kotler) _ Mengelola Komunikasi Massa
Manajemen Pemasaran (Philip Kotler) _ Mengelola Komunikasi MassaManajemen Pemasaran (Philip Kotler) _ Mengelola Komunikasi Massa
Manajemen Pemasaran (Philip Kotler) _ Mengelola Komunikasi MassaSyaferi Anwar
 
Last fm presentation
Last fm presentationLast fm presentation
Last fm presentationjessiecosta
 

Andere mochten auch (9)

Last Fm
Last FmLast Fm
Last Fm
 
Last Fm
Last FmLast Fm
Last Fm
 
Lastfm
LastfmLastfm
Lastfm
 
Me pre
Me preMe pre
Me pre
 
Relazione
RelazioneRelazione
Relazione
 
PERFORMANCE REVIEW_2016_JKI_20160920
PERFORMANCE REVIEW_2016_JKI_20160920PERFORMANCE REVIEW_2016_JKI_20160920
PERFORMANCE REVIEW_2016_JKI_20160920
 
Last fm
Last fmLast fm
Last fm
 
Manajemen Pemasaran (Philip Kotler) _ Mengelola Komunikasi Massa
Manajemen Pemasaran (Philip Kotler) _ Mengelola Komunikasi MassaManajemen Pemasaran (Philip Kotler) _ Mengelola Komunikasi Massa
Manajemen Pemasaran (Philip Kotler) _ Mengelola Komunikasi Massa
 
Last fm presentation
Last fm presentationLast fm presentation
Last fm presentation
 

Ähnlich wie Last fm api_overview

Here is app.js, artist.js and songs.js file. Can you look at the my .pdf
Here is app.js, artist.js and songs.js file. Can you look at the my .pdfHere is app.js, artist.js and songs.js file. Can you look at the my .pdf
Here is app.js, artist.js and songs.js file. Can you look at the my .pdfaggarwalshoppe14
 
Wp dev day_using_the_nokia_music_apis
Wp dev day_using_the_nokia_music_apisWp dev day_using_the_nokia_music_apis
Wp dev day_using_the_nokia_music_apisSteve Robbins
 
I've Got a Key to Your API, Now What? (Joint PBS and NPR API Presentation Giv...
I've Got a Key to Your API, Now What? (Joint PBS and NPR API Presentation Giv...I've Got a Key to Your API, Now What? (Joint PBS and NPR API Presentation Giv...
I've Got a Key to Your API, Now What? (Joint PBS and NPR API Presentation Giv...Public Broadcasting Service
 
I've got key to your API, now what?
I've got key to your API, now what?I've got key to your API, now what?
I've got key to your API, now what?Javaun Moradi
 
Mining the social web for music-related data: a hands-on tutorial
Mining the social web for music-related data: a hands-on tutorialMining the social web for music-related data: a hands-on tutorial
Mining the social web for music-related data: a hands-on tutorialBen Fields
 
Mining the social web for music-related data: a hands-on tutorial
Mining the social web for music-related data: a hands-on tutorialMining the social web for music-related data: a hands-on tutorial
Mining the social web for music-related data: a hands-on tutorialclaudio b
 
Perl in the Internet of Things
Perl in the Internet of ThingsPerl in the Internet of Things
Perl in the Internet of ThingsDave Cross
 
Can someone please help me complete the add_song function .pdf
Can someone please help me complete the add_song function .pdfCan someone please help me complete the add_song function .pdf
Can someone please help me complete the add_song function .pdfakshpatil4
 
Can someone please help me implement the addSong function .pdf
Can someone please help me implement the addSong function .pdfCan someone please help me implement the addSong function .pdf
Can someone please help me implement the addSong function .pdfakshpatil4
 
Last.fm - Lessons from building the World's largest social music platform
Last.fm - Lessons from building the World's largest social music platform Last.fm - Lessons from building the World's largest social music platform
Last.fm - Lessons from building the World's largest social music platform randomfromtheweb
 
Linked Data in Use: Schema.org, JSON-LD and hypermedia APIs - Front in Bahia...
Linked Data in Use: Schema.org, JSON-LD and hypermedia APIs  - Front in Bahia...Linked Data in Use: Schema.org, JSON-LD and hypermedia APIs  - Front in Bahia...
Linked Data in Use: Schema.org, JSON-LD and hypermedia APIs - Front in Bahia...Ícaro Medeiros
 
Upcoming Features on Orkut API by Shishir Birmiwal
Upcoming Features on Orkut API by Shishir BirmiwalUpcoming Features on Orkut API by Shishir Birmiwal
Upcoming Features on Orkut API by Shishir BirmiwalPravin Nirmal
 
Dynamic websites for artists.
Dynamic websites for artists.Dynamic websites for artists.
Dynamic websites for artists.David Newbury
 
Gracenote API - MusicHackDay
Gracenote API - MusicHackDayGracenote API - MusicHackDay
Gracenote API - MusicHackDayOscar Celma
 
Effectively Testing Services on Rails - Railsconf 2014
Effectively Testing Services on Rails - Railsconf 2014Effectively Testing Services on Rails - Railsconf 2014
Effectively Testing Services on Rails - Railsconf 2014neal_kemp
 
Analyze one year of radio station songs aired with Spark SQL, Spotify, and Da...
Analyze one year of radio station songs aired with Spark SQL, Spotify, and Da...Analyze one year of radio station songs aired with Spark SQL, Spotify, and Da...
Analyze one year of radio station songs aired with Spark SQL, Spotify, and Da...Paul Leclercq
 
Using Sinatra to Build REST APIs in Ruby
Using Sinatra to Build REST APIs in RubyUsing Sinatra to Build REST APIs in Ruby
Using Sinatra to Build REST APIs in RubyLaunchAny
 

Ähnlich wie Last fm api_overview (20)

Here is app.js, artist.js and songs.js file. Can you look at the my .pdf
Here is app.js, artist.js and songs.js file. Can you look at the my .pdfHere is app.js, artist.js and songs.js file. Can you look at the my .pdf
Here is app.js, artist.js and songs.js file. Can you look at the my .pdf
 
Wp dev day_using_the_nokia_music_apis
Wp dev day_using_the_nokia_music_apisWp dev day_using_the_nokia_music_apis
Wp dev day_using_the_nokia_music_apis
 
I've Got a Key to Your API, Now What? (Joint PBS and NPR API Presentation Giv...
I've Got a Key to Your API, Now What? (Joint PBS and NPR API Presentation Giv...I've Got a Key to Your API, Now What? (Joint PBS and NPR API Presentation Giv...
I've Got a Key to Your API, Now What? (Joint PBS and NPR API Presentation Giv...
 
I've got key to your API, now what?
I've got key to your API, now what?I've got key to your API, now what?
I've got key to your API, now what?
 
Mining the social web for music-related data: a hands-on tutorial
Mining the social web for music-related data: a hands-on tutorialMining the social web for music-related data: a hands-on tutorial
Mining the social web for music-related data: a hands-on tutorial
 
Mining the social web for music-related data: a hands-on tutorial
Mining the social web for music-related data: a hands-on tutorialMining the social web for music-related data: a hands-on tutorial
Mining the social web for music-related data: a hands-on tutorial
 
Perl in the Internet of Things
Perl in the Internet of ThingsPerl in the Internet of Things
Perl in the Internet of Things
 
Can someone please help me complete the add_song function .pdf
Can someone please help me complete the add_song function .pdfCan someone please help me complete the add_song function .pdf
Can someone please help me complete the add_song function .pdf
 
Music
MusicMusic
Music
 
Can someone please help me implement the addSong function .pdf
Can someone please help me implement the addSong function .pdfCan someone please help me implement the addSong function .pdf
Can someone please help me implement the addSong function .pdf
 
Beginner's Sinatra
Beginner's SinatraBeginner's Sinatra
Beginner's Sinatra
 
Last.fm - Lessons from building the World's largest social music platform
Last.fm - Lessons from building the World's largest social music platform Last.fm - Lessons from building the World's largest social music platform
Last.fm - Lessons from building the World's largest social music platform
 
Linked Data in Use: Schema.org, JSON-LD and hypermedia APIs - Front in Bahia...
Linked Data in Use: Schema.org, JSON-LD and hypermedia APIs  - Front in Bahia...Linked Data in Use: Schema.org, JSON-LD and hypermedia APIs  - Front in Bahia...
Linked Data in Use: Schema.org, JSON-LD and hypermedia APIs - Front in Bahia...
 
Upcoming Features on Orkut API by Shishir Birmiwal
Upcoming Features on Orkut API by Shishir BirmiwalUpcoming Features on Orkut API by Shishir Birmiwal
Upcoming Features on Orkut API by Shishir Birmiwal
 
Dynamic websites for artists.
Dynamic websites for artists.Dynamic websites for artists.
Dynamic websites for artists.
 
Gracenote API - MusicHackDay
Gracenote API - MusicHackDayGracenote API - MusicHackDay
Gracenote API - MusicHackDay
 
Effectively Testing Services on Rails - Railsconf 2014
Effectively Testing Services on Rails - Railsconf 2014Effectively Testing Services on Rails - Railsconf 2014
Effectively Testing Services on Rails - Railsconf 2014
 
Analyze one year of radio station songs aired with Spark SQL, Spotify, and Da...
Analyze one year of radio station songs aired with Spark SQL, Spotify, and Da...Analyze one year of radio station songs aired with Spark SQL, Spotify, and Da...
Analyze one year of radio station songs aired with Spark SQL, Spotify, and Da...
 
JSON and the APInauts
JSON and the APInautsJSON and the APInauts
JSON and the APInauts
 
Using Sinatra to Build REST APIs in Ruby
Using Sinatra to Build REST APIs in RubyUsing Sinatra to Build REST APIs in Ruby
Using Sinatra to Build REST APIs in Ruby
 

Kürzlich hochgeladen

Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKJago de Vreede
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfOverkill Security
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 

Kürzlich hochgeladen (20)

Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 

Last fm api_overview

  • 1. API & Project Mike Harmala Jeremy Canfield Yuliang Ma
  • 2. Last.fm is a way for you to track your listening habits. Each track reported to Last.fm is called a scrobble.
  • 3. Last.fm is also a social network that aggregates users' data & recommends new music based on users' habits
  • 4. That's a lot of data! Last.fm has an API for developers to use last.fm/api
  • 5. The API lets you see things at an individual user level or an aggregate level. Things like... an artist's tags a user's top artists event info
  • 6. Before getting an API key, you need to make a user profile (do it!)
  • 7. After applying for an API account, you get an API key & a secret code that authenticates you for write services
  • 8. For the API you call a method & it will return XML, like this for track.getInfo parameters artist artist name in question (optional) track track name in question (optional mbid musicbrainz id for the track (optional) username username for the context of the request. If supplied, the user's playcount for this track and whether they have loved the track is included in the response (optional) api_key A Last.fm API key (required!) url input (we'll just use api_key, track & artist) http://ws.audioscrobbler.com/2.0/? method=track.getinfo&api_key=b25b959554ed76058ac220b7b2e0a 026&artist=radiohead&track=paranoid+android
  • 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. Questions? print "Ask a question:n"; my $question=<>;
  • 12. Project Goals 1 Compare Users based on Tags 2 Find Weird Tags for Artists
  • 13. Project Goal 1 Compare Users based on Tags a. Get a last.fm user's favorite artists, then compile the tags for all those artists into a list b. Do the same for a second user c. Compare tag lists
  • 14. Project Goal 1 Compare Users based on Tags wordle tag cloud bar chart
  • 15. Project Goal 2 Find Weird Tags for Artists a. Get a last.fm artist's similar artists, then compile the tags for all those artists b. Analyze tag lists
  • 16. Project Goal 2 Find Weird Tags for Artists last.fm Tag explorer