example-data.com

songs / #112

The Thing

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/songs/112" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/songs/112"
);
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/112"
);
const song = (await res.json()) as Song;
import requests

res = requests.get(
    "https://example-data.com/api/v1/songs/112"
)
song = res.json()
{
  "id": 112,
  "albumId": 11,
  "artistId": 5,
  "title": "The Thing",
  "slug": "the-thing-112",
  "trackNumber": 10,
  "durationSeconds": 152,
  "isExplicit": false,
  "playCount": 28489985,
  "createdAt": "2024-04-08T09:24:45.765Z"
}
Draftbit