Warning
This project is for educational purposes only. Use it at your own risk. The author is not responsible for any misuse.
A high-performance TypeScript proxy server for JioSaavn API requests, powered by Bun and Hono.
This forwards all queries, handles CORS naturally, masks headers (like User-Agent and Referer), and pipes native fetch responses safely with minimal overhead to the official JioSaavn API. You can use this proxy server to bypass geo-restrictions or use a custom domain.
Make sure you have Bun installed.
-
Install dependencies:
bun install
-
Start the proxy server for development (with hot-reload):
bun run dev
-
Run in production mode:
bun run start
By default, the server runs on port 3000. You can change this by setting the PORT environment variable:
PORT=8080 bun run startThis project natively supports Vercel and is strictly configured to deploy to the Mumbai (bom1) region in the vercel.json file.
To deploy:
- Ensure the Vercel CLI is installed (
npm i -g vercel). - Run
vercelinside this directory to link the project. - Run
vercel --prodto deploy it.
All API routes are cleanly managed and rewritten through the api/index.ts serverless function. Usage remains identical to local deployment.
Once running, the proxy seamlessly exposes the API at its root. You can point your application to:
http://localhost:3000
All query parameters are directly forwarded. For example:
http://localhost:3000/?__call=search.getResults&api_version=4&_format=json&q=test
or
https://your-vercel-domain-name.vercel.app/?__call=search.getResults&api_version=4&_format=json&q=test
This routes standard queries directly to official domains maintaining parameters:
https://www.jiosaavn.com/api.php?__call=search.getResults&api_version=4&_format=json&q=test