Chartmetric CLI

A command line tool for accessing the Chartmetric API.

cm tracks stats

Get various platform statistics for a specific track.

Synopsis

Full API endpoint documentation at https://api.chartmetric.com/apidoc/#api-Track-GetTrackPlatformStats

cm tracks stats [flags]

Examples

  cm tracks stats --id=12495631 --platform=chartmetric --mode=most-history

Options

      --id string             Chartmetric track id
      --platform string       Platform/service of the data. Allowed values: 'chartmetric', 'spotify', 'youtube', 'shazam', 'tiktok', 'genius', 'soundcloud'
      --mode string           Defines the mode of the data when more than one option is available. Allowed values: 'highest-playcounts', 'most-history'
      --type string           Type of statistic to return (applies only when platform=spotify or platform=chartmetric). Allowed values when platform=spotify: 'popularity', 'streams'. Allowed values when platform=chartmetric: 'score', 'rank'.
      --since string          Start date in ISO date format YYYY-MM-DD (default: 180 days ago)
      --until string          End date in ISO date format YYYY-MM-DD (defaults to today, maximum is 365 days from the since date)
      --latest string         If true, returns the latest data point available regardless of date. Allowed values: 'true', 'false'
      --interpolated string   If true, returns interpolated data (aka approximated data) for missing data. Allowed values: 'true', 'false' (default: 'false')
      --isDomainId string     If true, the 'id' will be treated as a platform/domain id (e.g. Spotify track id). If false, the 'id' will be treated as a Chartmetric track id. Allowed values: 'true', 'false' (default: 'false')
  -h, --help                  help for stats

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 tracks - Lookup information related to tracks
Auto generated by spf13/cobra on 28-Aug-2024