example-data.com
Menu
Browse docs and collections

tv-shows

tv-shows

Page 3 of 5.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/tv-shows?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/tv-shows?limit=25"
);
const { data, meta } = 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, ListEnvelope } from "./types/tv-shows";

const res = await fetch(
  "https://example-data.com/api/v1/tv-shows?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<TvShow>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/tv-shows",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 49,
      "title": "Desino turpis tantum voluptatum",
      "slug": "desino-turpis-tantum-voluptatum-49",
      "firstAired": "2001-11-30",
      "lastAired": null,
      "seasonCount": 3,
      "episodeCount": 24,
      "genres": [
        "animation"
      ],
      "language": "Spanish",
      "posterUrl": "https://picsum.photos/seed/tvshow-49/400/600",
      "rating": 1.9,
      "ratingCount": 379396,
      "status": "running",
      "createdAt": "2024-06-13T15:58:27.656Z"
    },
    {
      "id": 50,
      "title": "Compono armarium",
      "slug": "compono-armarium-50",
      "firstAired": "2022-01-07",
      "lastAired": "2023-06-29",
      "seasonCount": 11,
      "episodeCount": 18,
      "genres": [
        "crime"
      ],
      "language": "English",
      "posterUrl": "https://picsum.photos/seed/tvshow-50/400/600",
      "rating": 4.9,
      "ratingCount": 392180,
      "status": "ended",
      "createdAt": "2026-03-27T03:21:20.053Z"
    },
    {
      "id": 51,
      "title": "Vomito clam",
      "slug": "vomito-clam-51",
      "firstAired": "2013-06-14",
      "lastAired": null,
      "seasonCount": 5,
      "episodeCount": 9,
      "genres": [
        "animation",
        "mystery",
        "comedy"
      ],
      "language": "German",
      "posterUrl": "https://picsum.photos/seed/tvshow-51/400/600",
      "rating": 4.2,
      "ratingCount": 185951,
      "status": "running",
      "createdAt": "2023-09-06T10:01:07.437Z"
    }
  ],
  "meta": {
    "page": 3,
    "limit": 24,
    "total": 100,
    "totalPages": 5
  },
  "links": {
    "self": "/api/v1/tv-shows?page=3&limit=24",
    "first": "/api/v1/tv-shows?page=1&limit=24",
    "last": "/api/v1/tv-shows?page=5&limit=24",
    "next": "/api/v1/tv-shows?page=4&limit=24",
    "prev": "/api/v1/tv-shows?page=2&limit=24"
  }
}