example-data.com
Menu
Browse docs and collections

Overview

artists / #21

If (They Made Me a King) Band

If (They Made Me a King) Band

1950

indiejazz

Cras arcesso thermae caries vulnero condico molestiae vociferor accusator contabesco. Demergo communis deinde supplanto sonitus consuasor. Ea aspernatur absconditus voluptatibus termes defungo cinis. Demergo vilis vis.

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/artists/21" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/artists/21"
);
const artist = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/artists.d.ts https://example-data.com/types/artists.d.ts
import type { Artist } from "./types/artists";

const res = await fetch(
  "https://example-data.com/api/v1/artists/21"
);
const artist = (await res.json()) as Artist;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/artists/21"
)
artist = res.json()

Response

{
  "id": 21,
  "name": "If (They Made Me a King) Band",
  "slug": "if-they-made-me-a-king-band-21",
  "bio": "Cras arcesso thermae caries vulnero condico molestiae vociferor accusator contabesco. Demergo communis deinde supplanto sonitus consuasor. Ea aspernatur absconditus voluptatibus termes defungo cinis. Demergo vilis vis.",
  "genres": [
    "indie",
    "jazz"
  ],
  "imageUrl": "https://picsum.photos/seed/artist-21/400/400",
  "monthlyListeners": 2546855,
  "formedYear": 1950,
  "isVerified": false,
  "createdAt": "2021-06-30T09:19:14.991Z"
}