example-data.com

songs

songs

Browse 2978 songs records. Free mock data API by Draftbit — fetch over REST or browse paginated HTML.

curl -sS \
  "https://example-data.com/api/v1/songs?limit=25"
const res = await fetch(
  "https://example-data.com/api/v1/songs?limit=25"
);
const { data, meta } = await res.json();
import type { Song, ListEnvelope } from "https://example-data.com/types/songs.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/songs?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Song>;
import requests

res = requests.get(
    "https://example-data.com/api/v1/songs",
    params={"limit": 25},
)
data = res.json()
{
  "data": [
    {
      "id": 1,
      "albumId": 1,
      "artistId": 1,
      "title": "Will It Go Round In Circles",
      "slug": "will-it-go-round-in-circles-1",
      "trackNumber": 1,
      "durationSeconds": 143,
      "isExplicit": false,
      "playCount": 17622831,
      "createdAt": "2022-06-01T17:10:51.068Z"
    },
    {
      "id": 2,
      "albumId": 1,
      "artistId": 1,
      "title": "You Always Hurt the One You Love",
      "slug": "you-always-hurt-the-one-you-love-2",
      "trackNumber": 2,
      "durationSeconds": 375,
      "isExplicit": false,
      "playCount": 19259774,
      "createdAt": "2024-08-14T22:32:45.266Z"
    },
    {
      "id": 3,
      "albumId": 1,
      "artistId": 1,
      "title": "You Make Me Feel Brand New",
      "slug": "you-make-me-feel-brand-new-3",
      "trackNumber": 3,
      "durationSeconds": 237,
      "isExplicit": false,
      "playCount": 20796294,
      "createdAt": "2022-06-12T10:52:12.356Z"
    }
  ],
  "meta": {
    "page": 1,
    "limit": 25,
    "total": 2978,
    "totalPages": 120
  },
  "links": {
    "self": "/api/v1/songs?page=1",
    "first": "/api/v1/songs?page=1",
    "last": "/api/v1/songs?page=120",
    "next": "/api/v1/songs?page=2",
    "prev": null
  }
}

View full response →

Draftbit