hifi-api-workers is a Cloudflare Workers port of binimum/hifi-api.
It exposes the same HTTP API shape as the Python version.
This repo is intended to be a drop-in HTTP replacement for the Python hifi-api for most clients.
GNU Affero General Public License v3.0. See LICENSE.
Install dependencies:
bun iCreate TIDAL creds:
bun run oauth:tidalRun locally:
bun run devDeploy with Wrangler:
bun run deployBefore or after deploy, add the required Worker secrets:
wrangler secret put CLIENT_ID
wrangler secret put CLIENT_SECRET
wrangler secret put REFRESH_TOKENIf you want to override the default country, add COUNTRY_CODE as a Worker var in the Cloudflare dashboard or in wrangler.toml.
The Worker exposes the same main endpoints as the Python API:
GET /GET /infoGET /trackGET /trackManifestsALL /widevineGET /recommendationsGET /searchGET /albumGET /mixGET /playlistGET /coverGET /artistGET /artist/similarGET /album/similarGET /lyricsGET /topvideosGET /video