example-data.com

songs / #140

Disturbia

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/songs/140" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/songs/140"
);
const song = await res.json();
import type { Song } from "https://example-data.com/types/songs.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/songs/140"
);
const song = (await res.json()) as Song;
import requests

res = requests.get(
    "https://example-data.com/api/v1/songs/140"
)
song = res.json()
{
  "id": 140,
  "albumId": 14,
  "artistId": 6,
  "title": "Disturbia",
  "slug": "disturbia-140",
  "trackNumber": 5,
  "durationSeconds": 182,
  "isExplicit": false,
  "playCount": 12471683,
  "createdAt": "2021-12-28T22:54:37.898Z"
}
Draftbit