Chartmetric CLI

A command line tool for accessing the Chartmetric API.

cm charts itunes

Get insights for tracks, albums, trends, or videos on iTunes Charts.

Synopsis

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

cm charts itunes [flags]

Examples

  cm charts itunes --type=tracks --country_code=US --genre=Rock --latest=true
  cm charts itunes --type=videos --country_code=US --date=2022-08-03

Options

      --type string           The chart type (aka "chart-type" in API) to return. Allowed values: 'tracks', 'albums', 'videos'.
      --country_code string   Filter by country code in ISO Alpha-2 format. Allowed values: 'US', 'JP', ...
      --date string           Charting date in ISO date format YYYY-MM-DD.
      --genre string          The chart genre (only used for track and album charts). Allowed values: 'All Genres', 'Pop', 'Rock', 'Dance', ...
      --offset string         Offset of entries to be returned
      --latest string         If true, returns the latest data point available regardless of date. Allowed values: 'true', 'false' (default "true")
  -h, --help                  help for itunes

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