example-data.com
Menu
Browse docs and collections

jokes

jokes

Page 4 of 7.

Overview

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/jokes?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

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

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

Python example

import requests

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

Response

{
  "data": [
    {
      "id": 73,
      "setup": "Tamdiu clarus creber amoveo cultura somnus occaecati tenetur cruciamentum.",
      "punchline": "Denego taedium culpa turba tergeo.",
      "category": "knock_knock",
      "rating": 1.4,
      "createdAt": "2025-09-06T05:47:36.351Z"
    },
    {
      "id": 74,
      "setup": "Caelum delectatio curis adficio capio vallum uberrime statua vilicus pauper.",
      "punchline": "Voluptatibus suasoria confido vulariter.",
      "category": "one_liner",
      "rating": 1.6,
      "createdAt": "2026-05-17T19:37:10.522Z"
    },
    {
      "id": 75,
      "setup": "Degusto claro theca contra auxilium corrigo tergeo desolo soluta.",
      "punchline": "Copiose anser sodalitas tabgo thymum.",
      "category": "pun",
      "rating": 3.6,
      "createdAt": "2024-08-14T23:29:05.228Z"
    }
  ],
  "meta": {
    "page": 4,
    "limit": 24,
    "total": 150,
    "totalPages": 7
  },
  "links": {
    "self": "/api/v1/jokes?page=4&limit=24",
    "first": "/api/v1/jokes?page=1&limit=24",
    "last": "/api/v1/jokes?page=7&limit=24",
    "next": "/api/v1/jokes?page=5&limit=24",
    "prev": "/api/v1/jokes?page=3&limit=24"
  }
}