example-data.com
Menu
Browse docs and collections

Overview

tv-shows / #4

Harum necessitatibus

Harum necessitatibus

2002

romancescience-fictioncrime

★ 3.2 (295444)

Component variants

Related

Referenced by

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/tv-shows/4" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/tv-shows/4"
);
const tvShow = await res.json();

TypeScript example

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

const res = await fetch(
  "https://example-data.com/api/v1/tv-shows/4"
);
const tvShow = (await res.json()) as TvShow;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/tv-shows/4"
)
tv_show = res.json()

Response

{
  "id": 4,
  "title": "Harum necessitatibus",
  "slug": "harum-necessitatibus-4",
  "firstAired": "2002-09-04",
  "lastAired": "2017-11-29",
  "seasonCount": 7,
  "episodeCount": 70,
  "genres": [
    "romance",
    "science-fiction",
    "crime"
  ],
  "language": "Korean",
  "posterUrl": "https://picsum.photos/seed/tvshow-4/400/600",
  "rating": 3.2,
  "ratingCount": 295444,
  "status": "ended",
  "createdAt": "2024-06-03T19:31:33.868Z"
}