songs
songs
Page 114 of 125.
Overview
-
That Old Black Magic
· 2 min
-
Return to Sender
· 7 min
-
Sugar Shack
· 6 min
-
The Rose
· 5 min
-
(Let Me Be Your) Teddy Bear
· 2 min
-
Something
· 5 min
-
Revolution
· 2 min
-
Na Na Hey Hey (Kiss Him Goodbye)
· 2 min
-
I Think I Love You
· 8 min
-
I Shot the Sheriff
· 6 min
-
We Belong Together
· 3 min
-
Use Somebody
· 5 min
-
(It's No) Sin
· 2 min
-
I Swear
· 7 min
-
You've Got a Friend
· 3 min
-
Hair
· 7 min
-
Poker Face
· 8 min
-
Rum & Coca-Cola
· 8 min
-
Brother Louie
· 8 min
-
Revolution
· 6 min
-
Vogue
· 6 min
-
Running Scared
· 2 min
-
Mr Brightside
· 2 min
-
Band On the Run
· 2 min
Request
curl example
curl -sS \ "https://example-data.com/api/v1/songs?limit=25"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/songs?limit=25"
);
const { data, meta } = await res.json(); TypeScript example
// Download once: mkdir -p types && curl -o types/songs.d.ts https://example-data.com/types/songs.d.ts
import type { Song, ListEnvelope } from "./types/songs";
const res = await fetch(
"https://example-data.com/api/v1/songs?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Song>; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/songs",
params={"limit": 25},
)
data = res.json() Response
{
"data": [
{
"id": 2713,
"albumId": 258,
"artistId": 91,
"title": "That Old Black Magic",
"slug": "that-old-black-magic-2713",
"trackNumber": 10,
"durationSeconds": 137,
"isExplicit": false,
"playCount": 6909252,
"createdAt": "2021-08-01T10:17:25.119Z"
},
{
"id": 2714,
"albumId": 258,
"artistId": 91,
"title": "Return to Sender",
"slug": "return-to-sender-2714",
"trackNumber": 11,
"durationSeconds": 426,
"isExplicit": false,
"playCount": 1552867,
"createdAt": "2021-06-18T06:03:34.749Z"
},
{
"id": 2715,
"albumId": 258,
"artistId": 91,
"title": "Sugar Shack",
"slug": "sugar-shack-2715",
"trackNumber": 12,
"durationSeconds": 373,
"isExplicit": false,
"playCount": 22825068,
"createdAt": "2024-05-20T03:50:56.813Z"
}
],
"meta": {
"page": 114,
"limit": 24,
"total": 2978,
"totalPages": 125
},
"links": {
"self": "/api/v1/songs?page=114&limit=24",
"first": "/api/v1/songs?page=1&limit=24",
"last": "/api/v1/songs?page=125&limit=24",
"next": "/api/v1/songs?page=115&limit=24",
"prev": "/api/v1/songs?page=113&limit=24"
}
}