pycmc
credentials
pycmc.charts.applemusic.
albums
Query the charts/applemusic/albums endpoint for the given date.
https://api.chartmetric.com/api/charts/applemusic/albums
Parameters
date: string date in ISO format %Y-%m-%d
date
country: string country code, e.g. ‘US’
country
genre: string genre (see CM docs)
genre
Returns
A list of dictionary of albums on AppleMusic charts.
tracks
Query the charts/applemusic/tracks endpoint for the given date.
https://api.chartmetric.com/api/charts/applemusic/tracks
list of dictionary of tracks on AppleMusic charts
videos
Query the charts/applemusic/videos endpoint for the given date.
https://api.chartmetric.com/api/charts/applemusic/videos
A list of dictionary of videos on AppleMusic charts.
pycmc.charts.beatport.
Query the charts/beatport/tracks endpoint for the given date. Data available on Fridays.
https://api.chartmetric.com/api/charts/beatport
A list of dictionary of tracks on Beatport charts.
pycmc.charts.itunes.
Get the top 200 albums on iTunes charts for the given date.
https://api.chartmetric.com/api/charts/itunes/albums
A list of dictionary of albums data on iTunes charts.
Get the top 200 tracks on itunes charts for the given date.
https://api.chartmetric.com/api/charts/itunes/tracks
A list of dictionary of tracks data on iTunes charts.
Get the top 200 videos on iTunes chart for the given date.
https://api.chartmetric.com/api/charts/itunes/videos
A list of dictionary of videos data on iTunes charts.
pycmc.charts.shazam.
cities
Get the list of available cities for a given country for use in city level filtering.
https://api.chartmetric.com/api/charts/shazam/:country_code/cities
**Returns*
A list of available cities for a given country.
Get the top 200 tracks on Shazam chart for the given date.
https://api.chartmetric.com/api/charts/shazam
A list of dictionary of tracks on Shazam chart.
pycmc.charts.soundcloud.
Get the top 200 tracks on SoundCloud chart for the given date. Data available ONLY on Fridays.
https://api.chartmetric.com/api/charts/soundcloud
kind: string ‘top’ or ‘trending’
kind
A list of dictionary of tracks on SoundCloud chart.
Defines methods for obtaining Spotify chart data from the chartmetric.com API.
pycmc.charts.spotify.
freshfind
Get the tracks from the Spotify Freshfind chart for the given date. Data available ONLY on Thursdays.
https://api.chartmetric.com/api/charts/spotify/freshfind
date: string date in ISO format %Y-%m-%d, only Thursdays
A list of dictionary of tracks on Spotify Freshfind.
Get the top 200 tracks on Spotify chart for the given date.
https://api.chartmetric.com/api/charts/spotify
country: string two-letter country code
viral: if True return tracks from Spotify viral chart, otherwise return those from regional chart
viral
A list of dictionary of tracks on Spotify chart.
pycmc.charts.youtube.
artists
Get the top 100 artists of YouTube chart. Data ONLY available on Thursdays.
https://api.chartmetric.com/api/charts/youtube/artists
date: string date in ISO format %Y-%m-%d country: string country code, e.g. ‘US’
A list of dictionary of artists of YouTube charts.
Get the top 100 tracks of YouTube charts. Data ONLY available on Thursdays.
https://api.chartmetric.com/api/charts/youtube/tracks
A list of dictionary of tracks of YouTube charts.
trends
Get the trends of YouTube chart. Data ONLY available on Thursdays.
https://api.chartmetric.com/api/charts/youtube/trends
A list of dictionaries of YouTube chart trends.
Get the top 100 videos of YouTube chart. Data ONLY available on Thursdays.
https://api.chartmetric.com/api/charts/youtube/videos
A list of dictionary of videos of YouTube chart.