Chartmetric CLI

A command line tool for accessing the Chartmetric API.

cm charts shazam

Get insights for the top tracks on Shazam for a specific day in a specific country.

Synopsis

Full API endpoint documentation at https://api.chartmetric.com/apidoc/#api-Charts-GetShazamChart

cm charts shazam [flags]

Examples

  cm charts shazam --country_code=DE --latest=true
  cm charts shazam --country_code=FR --genre=pop --date=2023-12-27

Options

      --country_code string   Filter by chart's country code in ISO Alpha-2 format. Allowed values: 'GLOBAL', 'US', 'FR', 'JP', 'DE', ...
      --date string           Charting date in ISO date format YYYY-MM-DD. Required unless 'latest' flag is true.
      --city string           The name of the chart city (not applicable when country_code = "GLOBAL"). Use command "charts shazam_cities" to get list of valid cities.
      --genre string          The chart genre (if not set, returns charts with all genres). Allowed values: 'alternative', 'rock', 'house', 'pop', ...
      --offset string         Each response has a max limit of results. Use this to paginate through the results.
      --latest string         If true, returns the latest data point available regardless of date. Allowed values: 'true', 'false'
  -h, --help                  help for shazam

Options inherited from parent commands

  -d, --debug                  Display debug output in the console (default: false)
  -r, --refresh_token string   Chartmetric API Refresh Token to use (overrides config file token; does not save)
  -V, --verbose                Show additional details only when displaying debug info (default: false)

SEE ALSO

  • cm charts - Lookup rankings for tracks and albums on various charts
Auto generated by spf13/cobra on 28-Aug-2024