Free Music Api Developed By Kiran Ugale

How to fetch api

Endpoints

GET

/getSongs

Retrieve a list of songs.

POST

/sendSongs

post songs in API.

GET

/album

Get album songs

Example of album name like arjitshingh

GET

/album/arijitsingh

Get album songs

Example of album name like todfadd

GET

/album/todfadd

Get album songs

GET

/album/bhakti

Get album songs

GET

/album/maharaj

Get album songs

Parameters

No parameters required for these endpoints.

Response

The response will be a JSON object containing the requested data.


const getSong=async()=>{
const res=await fetch("https://free-music-api2.vercel.app/getSongs",{
method:"get",
headers:{
"Content-Type":"application/json"
} })
const response=await res.json();
if(response){
//set response in your array } }

Demo Of API

demoofapi

API Source Code

Github