Skip to content

bongodevs/jiosaavn-proxy-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JioSaavn API Proxy

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.

Setup

Make sure you have Bun installed.

  1. Install dependencies:

    bun install
  2. Start the proxy server for development (with hot-reload):

    bun run dev
  3. Run in production mode:

    bun run start

Configuration

By default, the server runs on port 3000. You can change this by setting the PORT environment variable:

PORT=8080 bun run start

Vercel Deployment

Deploy with Vercel

This project natively supports Vercel and is strictly configured to deploy to the Mumbai (bom1) region in the vercel.json file.

To deploy:

  1. Ensure the Vercel CLI is installed (npm i -g vercel).
  2. Run vercel inside this directory to link the project.
  3. Run vercel --prod to deploy it.

All API routes are cleanly managed and rewritten through the api/index.ts serverless function. Usage remains identical to local deployment.

Usage

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

About

Resources

License

Stars

Watchers

Forks

Contributors