Chartmetric CLI

A command line tool for accessing the Chartmetric API.

cm charts amazon-music

Get insights for tracks or artists on Amazon Music Charts.

Synopsis

One of the flags “date” or “latest” is required.

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

cm charts amazon-music [flags]

Examples

  cm charts amazon-music --type=tracks --insight=new_track --genre=Jazz --latest=true
  cm charts amazon-music --type=albums --insight=new_album --genre="Dance & Electronic" --latest=true --code2=US

Options

      --type string      The chart type (aka "chart-type" in API). Allowed values: 'tracks', 'albums'.
      --insight string   The chart subtype/insight (aka "type" in API). Allowed values for tracks charts: 'popular_track', 'new_track'. Allowed values for albums charts: 'popular_album', 'new_album'.
      --date string      Charting date in ISO date format YYYY-MM-DD. Required unless 'latest' flag is true.
      --genre string     The chart genre. Allowed values: 'All Genres', 'Alternative Rock', 'Blues', ... (default "All Genres")
      --code2 string     Filter by chart's country code in ISO Alpha-2 format. Allowed values: 'GLOBAL', 'US', 'JP', 'DE', 'CA', ...
      --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 amazon-music

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