Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The Musicmetric API

The Musicmetric API

A tour through the Musicmetric API, presented at the 2012 Sónar Musichackday in Barcelona

Ben Fields

June 14, 2012
Tweet

More Decks by Ben Fields

Other Decks in Technology

Transcript

  1. What Do We Do? • currently track and index data

    for: o 700,000 artists o > 10 million individual releases • near real-time tracking, with resolution: o hourly o daily o weekly 14 June 2012 Sónar MusicHackday
  2. What Data is Available? • Artist-centric: oIdentification Service oTimeseries oSummary

    • Sentiment Analysis • Lists and Charts 14 June 2012 Sónar MusicHackday
  3. What Data is Available? Identification Service • Get our data

    using many third-party IDs, including: o musicbrainz, last.fm, discog, facebook and more • Test if an id is known and get our internal ID via: http://api.semetric.com/artist/[id] details: http://developer.musicmetric.com/identification.html 14 June 2012 Sónar MusicHackday
  4. What Data is Available? Timeseries • Data streams tracking behaviour

    in networks around an artist • Can use any ID scheme that we know directly • Result will be a list of integers inside the response envelope details: http://developer.musicmetric.com/timeseries.html 14 June 2012 Sónar MusicHackday
  5. What Data is Available? Timeseries Available attributes: o fans o

    plays o comments o views o downloads details: http://developer.musicmetric.com/timeseries.html 14 June 2012 Sónar MusicHackday
  6. What Data is Available? Timeseries Available sources: o last.fm o

    youtube o myspace o bittorrent details: http://developer.musicmetric.com/timeseries.html o vevo o twitter o facebook o soundcloud 14 June 2012 Sónar MusicHackday
  7. What Data is Available? Fun with curl: $curl http://api.semetric.com/artist/\ fe66302b0aee49cfbd7d248403036def/\

    kpi?token=YOURAPIKEYHERE returns... details: http://developer.musicmetric.com/summaries.html 14 June 2012 Sónar MusicHackday
  8. What Data is Available? Fun with curl: {"response": { "fans":

    { "twitter": {"current": 40279, "total": 10346353, "previous": 40508}, "myspace": {"current": 786, "total": 1581722, "previous": 942}, "youtube": {"current": 748, "total": 475084, "previous": 814}, "facebook":{"current": 143681, "total": 34890295, "previous": 161061}, "lastfm": {"current": 4860, "total": 2344028, "previous": 3707}, "total": {"current": 190354, "total": 49637482, "previous": 207032}}, "plays": { "lastfm": {"current": 514975, "total": 113785570, "previous": 284464}, ... }, "success": true} details: http://developer.musicmetric.com/summaries.html 14 June 2012 Sónar MusicHackday
  9. What Data is Available? Sentiment Analyser Determine the tone of

    a chunk of text from 1 (very negative) to 5 (very positive) details: http://developer.musicmetric.com/sentiment.html 14 June 2012 Sónar MusicHackday
  10. What Data is Available? Sentiment Analyser • Send text chunks

    via an http POST to http://api.semetric.com/sentiment • Receive the score back as JSON details: http://developer.musicmetric.com/sentiment.html 14 June 2012 Sónar MusicHackday
  11. What Data is Available? Lists and Charts • Meaningful groups

    of entities (mostly festivals): http://api.semetric.com/list • Global (and some country specific) rankings: http://api.semetric.com/chart details: http://developer.musicmetric.com/lists.html http://developer.musicmetric.com/charts.html 14 June 2012 Sónar MusicHackday
  12. What Data is Available? Fun with python: >>> import mmpy

    >>> p2p_diff = mmpy.Chart("0695f0bba6144dfaa390e9b9f017ceab") >>> for rank, val, relgrp in p2p_diff.releasegroup[:10]: ... print rank, ':', relgrp.name, ':', val outputs... details: http://developer.musicmetric.com/charts.html 14 June 2012 Sónar MusicHackday
  13. What Data is Available? Fun with python: 1 : Take

    Care : 53074 2 : 21 : 47434 3 : Payphone : 29123 4 : Payphone : 29123 5 : Somebody That I Used to Know : 25595 6 : Making Mirrors : 23338 7 : Somebody That I Used to Know : 20247 8 : Sorry For Party Rocking : 17224 9 : Boyfriend : 16976 10 : El Camino : 16507 details: http://developer.musicmetric.com/charts.html 14 June 2012 Sónar MusicHackday
  14. Prizes! Plus Musicmetric pro accounts for a year for anyone

    who builds anything with our API (and any artists come speak with us for a 3 month account...) 14 June 2012 Sónar MusicHackday
  15. Questions? • http://developer.musicmetric.com • on irc (freenode): #musicmetric_api • [email protected]

    Or talk to us throughout the weekend... 14 June 2012 Sónar MusicHackday
  16. Questions? • http://developer.musicmetric.com • on irc (freenode): #musicmetric_api • [email protected]

    Or talk to us throughout the weekend... 14 June 2012 Sónar MusicHackday ---We’re hiring---