example-data.com
Menu
Browse docs and collections

Overview

tv-shows / #40

Aptus defaeco

Aptus defaeco

2015

adventurehorrordocumentary

★ 8.6 (457861)

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/tv-shows/40"
);
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/40"
);
const tvShow = (await res.json()) as TvShow;

Python example

import requests

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

Response

{
  "id": 40,
  "title": "Aptus defaeco",
  "slug": "aptus-defaeco-40",
  "firstAired": "2015-01-16",
  "lastAired": "2015-03-18",
  "seasonCount": 2,
  "episodeCount": 37,
  "genres": [
    "adventure",
    "horror",
    "documentary"
  ],
  "language": "Spanish",
  "posterUrl": "https://picsum.photos/seed/tvshow-40/400/600",
  "rating": 8.6,
  "ratingCount": 457861,
  "status": "cancelled",
  "createdAt": "2023-09-26T06:12:29.379Z"
}