Chartmetric CLI

A command line tool for accessing the Chartmetric API.

cm playlists tracks

Get the tracks for a specific playlist.

Synopsis

Full API endpoint documentation at https://api.chartmetric.com/apidoc/#api-Playlist-GetTracksByPlaylist

cm playlists tracks [flags]

Examples

  cm playlists tracks --platform=spotify --id=179228
  cm playlists tracks --platform=spotify --id=1645060 --status=past

Options

      --platform string      Streaming platform. Allowed values: 'spotify', 'applemusic', 'deezer'.
      --id string            Chartmetric id for the specific asset (e.g. artist_id, track_id, album_id).
      --status string        Playlist timespan status (aka "span" in API). Allowed values: 'current', 'past' (default: 'current') (default "current")
      --storefront string    Apple Music Storefront (required when platform=applemusic). Allowed values: 'us', 'ca', 'br', 'de', 'gb', ...
      --withDetails string   If true, returns additional details for artists, album, and audio features. Allowed values: 'true', 'false' (default: 'true')
      --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)
      --limit string         Maximum number of results to be returned
      --offset string        Each response has a max limit of results. Use this to paginate through the results.
  -h, --help                 help for tracks

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

Auto generated by spf13/cobra on 28-Aug-2024