This repository has been archived by the owner on Jul 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 101
Fetch Album
Tuhin Kanti Pal edited this page Dec 13, 2020
·
2 revisions
http://[Your-Url]/album?id={Album-ID}
//example
https://jiosaavn-api.vercel.app/album?id=21318145
- id is previously fetched from album search (id Object).
{
"albumid": "21318145",
"title": "Dil Bechara",
"name": "Dil Bechara",
"year": "2020",
"primary_artists": "A.R. Rahman",
"image": "https://c.saavncdn.com/870/Dil-Bechara-Hindi-2020-20200709070438-500x500.jpg",
"songs": [
{
"id": "ohUsQ-U0",
"song": "Dil Bechara",
"album": "Dil Bechara",
"year": "2020",
"primary_artists": "A.R. Rahman",
"singers": "A.R. Rahman",
"image": "https://c.saavncdn.com/870/Dil-Bechara-Hindi-2020-20200709070438-500x500.jpg",
"label": "Sony Music Entertainment India Pvt. Ltd.",
"albumid": "21318145",
"language": "hindi",
"copyright_text": "(P) 2020 Sony Music Entertainment India Pvt. Ltd.",
"has_lyrics": "true",
"media_url": "https://aac.saavncdn.com/870/57f9901b8cc521205e1fa043a29104ff_160.mp4",
"other_qualities": [
{
"quality": "96_KBPS",
"url": "https://aac.saavncdn.com/870/57f9901b8cc521205e1fa043a29104ff_96_p.mp4"
},
{
"quality": "160_KBPS",
"url": "https://aac.saavncdn.com/870/57f9901b8cc521205e1fa043a29104ff_160.mp4"
},
{
"quality": "320_KBPS",
"url": "https://aac.saavncdn.com/870/57f9901b8cc521205e1fa043a29104ff_320.mp4"
}
],
"perma_url": "https://www.jiosaavn.com/song/dil-bechara/HwA,QiUdYgM",
"album_url": "https://www.jiosaavn.com/album/dil-bechara/OV26eogqCTQ_",
"release_date": "2020-07-10"
},
{
"id": "iX_FM-ow",
"song": "Taare Ginn",
"album": "Dil Bechara",
"year": "2020",
"primary_artists": "A.R. Rahman, Mohit Chauhan, Shreya Ghoshal",
"singers": "A.R. Rahman, Mohit Chauhan, Shreya Ghoshal",
"image": "https://c.saavncdn.com/870/Dil-Bechara-Hindi-2020-20200709070438-500x500.jpg",
"label": "Sony Music Entertainment India Pvt. Ltd.",
"albumid": "21318145",
"language": "hindi",
"copyright_text": "(P) 2020 Sony Music Entertainment India Pvt. Ltd.",
"has_lyrics": "true",
"media_url": "https://aac.saavncdn.com/870/ec5183010778d5db1164eabc32d9f0ed_160.mp4",
"other_qualities": [
{
"quality": "96_KBPS",
"url": "https://aac.saavncdn.com/870/ec5183010778d5db1164eabc32d9f0ed_96_p.mp4"
},
{
"quality": "160_KBPS",
"url": "https://aac.saavncdn.com/870/ec5183010778d5db1164eabc32d9f0ed_160.mp4"
},
{
"quality": "320_KBPS",
"url": "https://aac.saavncdn.com/870/ec5183010778d5db1164eabc32d9f0ed_320.mp4"
}
],
"perma_url": "https://www.jiosaavn.com/song/taare-ginn/GTA0dzkdWEQ",
"album_url": "https://www.jiosaavn.com/album/dil-bechara/OV26eogqCTQ_",
"release_date": "2020-07-10"
},
{
"id": "ZzT4D6dZ",
"song": "Khulke Jeene Ka",
"album": "Dil Bechara",
"year": "2020",
"primary_artists": "A.R. Rahman, Arijit Singh, Shashaa Tirupati",
"singers": "A.R. Rahman, Arijit Singh, Shashaa Tirupati",
"image": "https://c.saavncdn.com/870/Dil-Bechara-Hindi-2020-20200709070438-500x500.jpg",
"label": "Sony Music Entertainment India Pvt. Ltd.",
"albumid": "21318145",
"language": "hindi",
"copyright_text": "(P) 2020 Sony Music Entertainment India Pvt. Ltd.",
"has_lyrics": "true",
"media_url": "https://aac.saavncdn.com/870/fb54067c62d43a48ba62e1a6d3f543bd_160.mp4",
"other_qualities": [
{
"quality": "96_KBPS",
"url": "https://aac.saavncdn.com/870/fb54067c62d43a48ba62e1a6d3f543bd_96_p.mp4"
},
{
"quality": "160_KBPS",
"url": "https://aac.saavncdn.com/870/fb54067c62d43a48ba62e1a6d3f543bd_160.mp4"
},
{
"quality": "320_KBPS",
"url": "https://aac.saavncdn.com/870/fb54067c62d43a48ba62e1a6d3f543bd_320.mp4"
}
],
"perma_url": "https://www.jiosaavn.com/song/khulke-jeene-ka/KhI-BTAGU2k",
"album_url": "https://www.jiosaavn.com/album/dil-bechara/OV26eogqCTQ_",
"release_date": "2020-07-10"
},
{
"id": "9v-mTsYV",
"song": "Main Tumhara",
"album": "Dil Bechara",
"year": "2020",
"primary_artists": "A.R. Rahman, Jonita Gandhi, Hriday Gattani",
"singers": "A.R. Rahman, Jonita Gandhi, Hriday Gattani",
"image": "https://c.saavncdn.com/870/Dil-Bechara-Hindi-2020-20200709070438-500x500.jpg",
"label": "Sony Music Entertainment India Pvt. Ltd.",
"albumid": "21318145",
"language": "hindi",
"copyright_text": "(P) 2020 Sony Music Entertainment India Pvt. Ltd.",
"has_lyrics": "true",
"media_url": "https://aac.saavncdn.com/870/801752bbd0e6602847d9f255638334c2_160.mp4",
"other_qualities": [
{
"quality": "96_KBPS",
"url": "https://aac.saavncdn.com/870/801752bbd0e6602847d9f255638334c2_96_p.mp4"
},
{
"quality": "160_KBPS",
"url": "https://aac.saavncdn.com/870/801752bbd0e6602847d9f255638334c2_160.mp4"
},
{
"quality": "320_KBPS",
"url": "https://aac.saavncdn.com/870/801752bbd0e6602847d9f255638334c2_320.mp4"
}
],
"perma_url": "https://www.jiosaavn.com/song/main-tumhara/SR5GXCBDbmU",
"album_url": "https://www.jiosaavn.com/album/dil-bechara/OV26eogqCTQ_",
"release_date": "2020-07-10"
},
{
"id": "fK__62jr",
"song": "Maskhari",
"album": "Dil Bechara",
"year": "2020",
"primary_artists": "A.R. Rahman, Sunidhi Chauhan, Hriday Gattani",
"singers": "A.R. Rahman, Sunidhi Chauhan, Hriday Gattani",
"image": "https://c.saavncdn.com/870/Dil-Bechara-Hindi-2020-20200709070438-500x500.jpg",
"label": "Sony Music Entertainment India Pvt. Ltd.",
"albumid": "21318145",
"language": "hindi",
"copyright_text": "(P) 2020 Sony Music Entertainment India Pvt. Ltd.",
"has_lyrics": "true",
"media_url": "https://aac.saavncdn.com/870/674bfa34da8a92c938ca12976d19ba16_160.mp4",
"other_qualities": [
{
"quality": "96_KBPS",
"url": "https://aac.saavncdn.com/870/674bfa34da8a92c938ca12976d19ba16_96_p.mp4"
},
{
"quality": "160_KBPS",
"url": "https://aac.saavncdn.com/870/674bfa34da8a92c938ca12976d19ba16_160.mp4"
},
{
"quality": "320_KBPS",
"url": "https://aac.saavncdn.com/870/674bfa34da8a92c938ca12976d19ba16_320.mp4"
}
],
"perma_url": "https://www.jiosaavn.com/song/maskhari/FiM0bkICXUE",
"album_url": "https://www.jiosaavn.com/album/dil-bechara/OV26eogqCTQ_",
"release_date": "2020-07-10"
},
{
"id": "Jb25uB4m",
"song": "Afreeda",
"album": "Dil Bechara",
"year": "2020",
"primary_artists": "A.R. Rahman, Sanaa Moussa, Raja Kumari",
"singers": "A.R. Rahman, Sanaa Moussa, Raja Kumari",
"image": "https://c.saavncdn.com/870/Dil-Bechara-Hindi-2020-20200709070438-500x500.jpg",
"label": "Sony Music Entertainment India Pvt. Ltd.",
"albumid": "21318145",
"language": "hindi",
"copyright_text": "(P) 2020 Sony Music Entertainment India Pvt. Ltd.",
"has_lyrics": "true",
"media_url": "https://aac.saavncdn.com/870/8a062763356d3fac25cbf1a59185c096_160.mp4",
"other_qualities": [
{
"quality": "96_KBPS",
"url": "https://aac.saavncdn.com/870/8a062763356d3fac25cbf1a59185c096_96_p.mp4"
},
{
"quality": "160_KBPS",
"url": "https://aac.saavncdn.com/870/8a062763356d3fac25cbf1a59185c096_160.mp4"
},
{
"quality": "320_KBPS",
"url": "https://aac.saavncdn.com/870/8a062763356d3fac25cbf1a59185c096_320.mp4"
}
],
"perma_url": "https://www.jiosaavn.com/song/afreeda/OgpZBAFyA14",
"album_url": "https://www.jiosaavn.com/album/dil-bechara/OV26eogqCTQ_",
"release_date": "2020-07-10"
},
{
"id": "YRJDNs_m",
"song": "Mera Naam Kizie",
"album": "Dil Bechara",
"year": "2020",
"primary_artists": "A.R. Rahman, Aditya Narayan, Poorvi Koutish",
"singers": "A.R. Rahman, Aditya Narayan, Poorvi Koutish",
"image": "https://c.saavncdn.com/870/Dil-Bechara-Hindi-2020-20200709070438-500x500.jpg",
"label": "Sony Music Entertainment India Pvt. Ltd.",
"albumid": "21318145",
"language": "hindi",
"copyright_text": "(P) 2020 Sony Music Entertainment India Pvt. Ltd.",
"has_lyrics": "true",
"media_url": "https://aac.saavncdn.com/870/883599aff86a962f350daf881fa2417d_160.mp4",
"other_qualities": [
{
"quality": "96_KBPS",
"url": "https://aac.saavncdn.com/870/883599aff86a962f350daf881fa2417d_96_p.mp4"
},
{
"quality": "160_KBPS",
"url": "https://aac.saavncdn.com/870/883599aff86a962f350daf881fa2417d_160.mp4"
},
{
"quality": "320_KBPS",
"url": "https://aac.saavncdn.com/870/883599aff86a962f350daf881fa2417d_320.mp4"
}
],
"perma_url": "https://www.jiosaavn.com/song/mera-naam-kizie/KTohdTpDaF4",
"album_url": "https://www.jiosaavn.com/album/dil-bechara/OV26eogqCTQ_",
"release_date": "2020-07-10"
},
{
"id": "kF-UYP6r",
"song": "Friendzone",
"album": "Dil Bechara",
"year": "2020",
"primary_artists": "A.R. Rahman",
"singers": "A.R. Rahman",
"image": "https://c.saavncdn.com/870/Dil-Bechara-Hindi-2020-20200709070438-500x500.jpg",
"label": "Sony Music Entertainment India Pvt. Ltd.",
"albumid": "21318145",
"language": "hindi",
"copyright_text": "(P) 2020 Sony Music Entertainment India Pvt. Ltd.",
"has_lyrics": "true",
"media_url": "https://aac.saavncdn.com/870/8141712c9c899eebb279481168f5d4d9_160.mp4",
"other_qualities": [
{
"quality": "96_KBPS",
"url": "https://aac.saavncdn.com/870/8141712c9c899eebb279481168f5d4d9_96_p.mp4"
},
{
"quality": "160_KBPS",
"url": "https://aac.saavncdn.com/870/8141712c9c899eebb279481168f5d4d9_160.mp4"
},
{
"quality": "320_KBPS",
"url": "https://aac.saavncdn.com/870/8141712c9c899eebb279481168f5d4d9_320.mp4"
}
],
"perma_url": "https://www.jiosaavn.com/song/friendzone/Gy5GZC1gAUE",
"album_url": "https://www.jiosaavn.com/album/dil-bechara/OV26eogqCTQ_",
"release_date": "2020-07-10"
},
{
"id": "Q6Kj6zJm",
"song": "The Horizon of Saudade",
"album": "Dil Bechara",
"year": "2020",
"primary_artists": "A.R. Rahman",
"singers": "A.R. Rahman",
"image": "https://c.saavncdn.com/870/Dil-Bechara-Hindi-2020-20200709070438-500x500.jpg",
"label": "Sony Music Entertainment India Pvt. Ltd.",
"albumid": "21318145",
"language": "hindi",
"copyright_text": "(P) 2020 Sony Music Entertainment India Pvt. Ltd.",
"has_lyrics": "false",
"media_url": "https://aac.saavncdn.com/870/518ecddfcd7fb33c2e8c88dcd9a8b98e_160.mp4",
"other_qualities": [
{
"quality": "96_KBPS",
"url": "https://aac.saavncdn.com/870/518ecddfcd7fb33c2e8c88dcd9a8b98e_96_p.mp4"
},
{
"quality": "160_KBPS",
"url": "https://aac.saavncdn.com/870/518ecddfcd7fb33c2e8c88dcd9a8b98e_160.mp4"
},
{
"quality": "320_KBPS",
"url": "https://aac.saavncdn.com/870/518ecddfcd7fb33c2e8c88dcd9a8b98e_320.mp4"
}
],
"perma_url": "https://www.jiosaavn.com/song/the-horizon-of-saudade/IV4gW0JKfV4",
"album_url": "https://www.jiosaavn.com/album/dil-bechara/OV26eogqCTQ_",
"release_date": "2020-07-10"
}
],
"perma_url": "https://www.jiosaavn.com/album/dil-bechara/OV26eogqCTQ_",
"release_date": "2020-07-10",
"repo_url": "https://github.com/cachecleanerjeet/JiosaavnAPI"
}
- NodeJS (axios)
var axios = require('axios');
var config = {
method: 'get',
url: 'https://jiosaavn-api.vercel.app/album?id=21318145',
headers: { }
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
- XHR
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function() {
if(this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("GET", "https://jiosaavn-api.vercel.app/album?id=21318145");
xhr.send();
- PHP Using Curl
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://jiosaavn-api.vercel.app/album?id=21318145',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
- Python Using Requests
import requests
url = "https://jiosaavn-api.vercel.app/album?id=21318145"
payload={}
headers = {}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)