example-data.com
Menu
Browse docs and collections

jokes

jokes

Browse 150 jokes records. Explore sample records and fetch JSON over a free REST API for prototypes, tests, and learning.

Overview

Cards

Compact

Detailed

jokes #1

setup
Why don't scientists trust atoms?
punchline
Because they make up everything.
category
pun
rating
4.8
createdAt

jokes #2

setup
I told my wife she should embrace her mistakes.
punchline
She gave me a hug.
category
dad
rating
4.6
createdAt

jokes #3

setup
Why did the scarecrow win an award?
punchline
Because he was outstanding in his field.
category
pun
rating
4.8
createdAt

jokes #4

setup
I'm reading a book about anti-gravity.
punchline
It's impossible to put down.
category
pun
rating
5
createdAt

jokes #5

setup
Did you hear about the mathematician who's afraid of negative numbers?
punchline
He'll stop at nothing to avoid them.
category
pun
rating
4
createdAt

jokes #6

setup
Why don't skeletons fight each other?
punchline
They don't have the guts.
category
pun
rating
3.3
createdAt

Showing first 6 of 24 on this page.

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": 1,
      "setup": "Why don't scientists trust atoms?",
      "punchline": "Because they make up everything.",
      "category": "pun",
      "rating": 4.8,
      "createdAt": "2025-08-05T00:49:19.906Z"
    },
    {
      "id": 2,
      "setup": "I told my wife she should embrace her mistakes.",
      "punchline": "She gave me a hug.",
      "category": "dad",
      "rating": 4.6,
      "createdAt": "2025-12-12T20:17:21.523Z"
    },
    {
      "id": 3,
      "setup": "Why did the scarecrow win an award?",
      "punchline": "Because he was outstanding in his field.",
      "category": "pun",
      "rating": 4.8,
      "createdAt": "2024-06-15T23:09:14.901Z"
    }
  ],
  "meta": {
    "page": 1,
    "limit": 25,
    "total": 150,
    "totalPages": 6
  },
  "links": {
    "self": "/api/v1/jokes?page=1",
    "first": "/api/v1/jokes?page=1",
    "last": "/api/v1/jokes?page=6",
    "next": "/api/v1/jokes?page=2",
    "prev": null
  }
}

View full response →