example-data.com
Menu
Browse docs and collections

Overview

authors / #18

Agatha Christie

Agatha Christie

Adnuo varius amaritudo. Surgo ascit colo ipsa incidunt spero voluptatem sordeo ciminatio provident. Vester aggero cupio defero officia vigor confido caries spoliatio.

Component variants

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/authors/18" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/authors/18"
);
const author = await res.json();

TypeScript example

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

const res = await fetch(
  "https://example-data.com/api/v1/authors/18"
);
const author = (await res.json()) as Author;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/authors/18"
)
author = res.json()

Response

{
  "id": 18,
  "name": "Agatha Christie",
  "slug": "agatha-christie",
  "bio": "Adnuo varius amaritudo. Surgo ascit colo ipsa incidunt spero voluptatem sordeo ciminatio provident. Vester aggero cupio defero officia vigor confido caries spoliatio.",
  "bornYear": 1890,
  "diedYear": 1976,
  "nationality": "English",
  "genres": [
    "Mystery"
  ],
  "notableWorks": [
    "Murder on the Orient Express",
    "And Then There Were None"
  ],
  "imageUrl": "https://picsum.photos/seed/author-18/600/600",
  "createdAt": "2025-07-20T00:35:39.956Z"
}