jiosaavn-api-ts icon indicating copy to clipboard operation
jiosaavn-api-ts copied to clipboard

songs list is empty in hosted api on cloudflare, but returning data on localhost

Open ashukumar2001 opened this issue 1 year ago • 2 comments

I have self-hosted my own API instance on cloudflare. When I request this route: /playlist?token=vw3rxyOhUs8_&mini=true&lang=hindi%2Cenglish it returns playlist details with an empty song list. but when I change the API base URL to localhost the same request returns the proper list of songs. Please help me out here

ashukumar2001 avatar Oct 13 '24 19:10 ashukumar2001

hey @ashukumar2001, try hosting your API instance in the India region, as it retrieves data from the JioSaavn API, which restricts certain data based on geolocation image

rajput-hemant avatar Oct 13 '24 19:10 rajput-hemant

Is it possible to set the region in cloudflare workers?

ashukumar2001 avatar Oct 14 '24 08:10 ashukumar2001