Chartmetric CLI

A command line tool for accessing the Chartmetric API.

cm charts tiktok

Get insights for tracks on TikTok Charts for a specific date.

Synopsis

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

cm charts tiktok [flags]

Examples

  cm charts tiktok --country_code=US --type=viral --interval=weekly --latest=true
  cm charts tiktok --country_code=GB --type=regional --interval=daily --date=2023-12-27

Options

      --country_code string      Filter by country code (aka "code2" in API) in ISO Alpha-2 format. Allowed values: 'US', 'JP', ...
      --date string              Charting date in ISO date format YYYY-MM-DD. Required unless 'latest' flag is true.
      --type string              The chart type to return (aka "chart-type" in API). Allowed values: 'tracks', 'videos', 'users'.
      --user_chart_type string   The user chart type (aka "type" in API) to return. Allowed values: 'likes', 'followers'.
      --interval string          The time interval/period for the chart. Allowed values: 'all_time', 'daily', 'weekly' (default: all_time).
      --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 tiktok

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