Get artist singles
curl --request GET \
--url https://spotify-api31.p.rapidapi.com/api/v1/artists/singles \
--header 'x-rapidapi-key: <api-key>'import requests
url = "https://spotify-api31.p.rapidapi.com/api/v1/artists/singles"
headers = {"x-rapidapi-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-rapidapi-key': '<api-key>'}};
fetch('https://spotify-api31.p.rapidapi.com/api/v1/artists/singles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://spotify-api31.p.rapidapi.com/api/v1/artists/singles",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-rapidapi-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://spotify-api31.p.rapidapi.com/api/v1/artists/singles"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-rapidapi-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://spotify-api31.p.rapidapi.com/api/v1/artists/singles")
.header("x-rapidapi-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://spotify-api31.p.rapidapi.com/api/v1/artists/singles")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-rapidapi-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Success",
"statusCode": 200,
"pagination": {
"total": 100,
"hasMore": true,
"continuation": "CDsQ8FsiEwje95_F1pmRAxXlsykDHUX"
},
"data": {
"totalCount": 61,
"items": [
{
"releases": {
"items": [
{
"id": "5I3jxZBcD0iSfTsjBHM1MD",
"name": "Boom Boom Beats: Kids Mix",
"uri": "spotify:album:5I3jxZBcD0iSfTsjBHM1MD",
"type": "EP",
"coverArts": [
{
"url": "https://i.scdn.co/image/ab67616d00001e02197ab9d5df763d4e6df9818b",
"width": 300,
"height": 300
}
],
"date": {
"isoString": "2025-04-18T00:00:00Z",
"precision": "DAY",
"year": 2025
},
"playability": {
"playable": true,
"reason": "PLAYABLE"
},
"sharingInfo": {
"shareUrl": "https://open.spotify.com/album/5I3jxZBcD0iSfTsjBHM1MD?si=zbxYHVUiTf2OZ76NeTt2Hw",
"shareId": "zbxYHVUiTf2OZ76NeTt2Hw"
},
"tracks": {
"totalCount": 5
}
}
]
}
}
]
}
}{
"message": "Bad request"
}{
"message": "Invalid API key"
}{
"message": "You are not subscribed to this API, please subscribe before using"
}{
"success": false,
"message": "Internal Server Error",
"status_code": 500,
"cost": 0,
"explain": "Internal Server Error"
}Artists
Get artist singles
Get singles for the specified artist
GET
/
api
/
v1
/
artists
/
singles
Get artist singles
curl --request GET \
--url https://spotify-api31.p.rapidapi.com/api/v1/artists/singles \
--header 'x-rapidapi-key: <api-key>'import requests
url = "https://spotify-api31.p.rapidapi.com/api/v1/artists/singles"
headers = {"x-rapidapi-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-rapidapi-key': '<api-key>'}};
fetch('https://spotify-api31.p.rapidapi.com/api/v1/artists/singles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://spotify-api31.p.rapidapi.com/api/v1/artists/singles",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-rapidapi-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://spotify-api31.p.rapidapi.com/api/v1/artists/singles"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-rapidapi-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://spotify-api31.p.rapidapi.com/api/v1/artists/singles")
.header("x-rapidapi-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://spotify-api31.p.rapidapi.com/api/v1/artists/singles")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-rapidapi-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Success",
"statusCode": 200,
"pagination": {
"total": 100,
"hasMore": true,
"continuation": "CDsQ8FsiEwje95_F1pmRAxXlsykDHUX"
},
"data": {
"totalCount": 61,
"items": [
{
"releases": {
"items": [
{
"id": "5I3jxZBcD0iSfTsjBHM1MD",
"name": "Boom Boom Beats: Kids Mix",
"uri": "spotify:album:5I3jxZBcD0iSfTsjBHM1MD",
"type": "EP",
"coverArts": [
{
"url": "https://i.scdn.co/image/ab67616d00001e02197ab9d5df763d4e6df9818b",
"width": 300,
"height": 300
}
],
"date": {
"isoString": "2025-04-18T00:00:00Z",
"precision": "DAY",
"year": 2025
},
"playability": {
"playable": true,
"reason": "PLAYABLE"
},
"sharingInfo": {
"shareUrl": "https://open.spotify.com/album/5I3jxZBcD0iSfTsjBHM1MD?si=zbxYHVUiTf2OZ76NeTt2Hw",
"shareId": "zbxYHVUiTf2OZ76NeTt2Hw"
},
"tracks": {
"totalCount": 5
}
}
]
}
}
]
}
}{
"message": "Bad request"
}{
"message": "Invalid API key"
}{
"message": "You are not subscribed to this API, please subscribe before using"
}{
"success": false,
"message": "Internal Server Error",
"status_code": 500,
"cost": 0,
"explain": "Internal Server Error"
}Authorizations
API Key
Query Parameters
Spotify artist URI to get artist singles
Pattern:
^spotify:artist:[a-zA-Z0-9]+$Example:
"spotify:artist:1yxSLGMDHlW21z4YXirZDS"
Offset for pagination (default: 0)
Required range:
x >= 0Example:
0
Number of results to return
Required range:
1 <= x <= 100Example:
20
Order by
Available options:
DATE_ASC, DATE_DESC Example:
"DATE_DESC"
Was this page helpful?
⌘I

