ytmusicapi - Man Page

Unofficial API for YouTube Music

Synopsis

ytmusicapi [Options] {oauth|browser} [SUBOPTIONS]

Description

ytmusicapi is a command-line tool to setup authentication credentials for the ytmusicapi Python library.

Options

-h,  --help

Show help message and exit.

-v,  --version

Show program's version number and exit.

Subcommands

oauth

Setup OAuth authentication credentials.

--file FILE

Optional path to output JSON file.

--client-id CLIENT_ID

Use specified Google YouTube Data API client ID.

--client-secret CLIENT_SECRET

Use specified Google YouTube Data API client secret.

browser

Setup browser cookie credentials (deprecated).

--file FILE

Optional path to output JSON file.

Author

ytmusicapi was written by sigma67.

See Also

The online documentation at https://ytmusicapi.readthedocs.io/

Info

June 2026