example-data.com
Menu
Browse docs and collections

Overview

authors / #4

J.R.R. Tolkien

J.R.R. Tolkien

Ascisco tertius tamisium censura altus tametsi deprecator cognomen corrumpo adstringo. Cariosus quas tutamen bellicus. Ascisco sulum distinctio commodi tubineus sed.

Component variants

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/authors/4"
);
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/4"
);
const author = (await res.json()) as Author;

Python example

import requests

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

Response

{
  "id": 4,
  "name": "J.R.R. Tolkien",
  "slug": "j-r-r-tolkien",
  "bio": "Ascisco tertius tamisium censura altus tametsi deprecator cognomen corrumpo adstringo. Cariosus quas tutamen bellicus. Ascisco sulum distinctio commodi tubineus sed.",
  "bornYear": 1892,
  "diedYear": 1973,
  "nationality": "English",
  "genres": [
    "Fantasy"
  ],
  "notableWorks": [
    "The Lord of the Rings",
    "The Hobbit",
    "The Silmarillion"
  ],
  "imageUrl": "https://picsum.photos/seed/author-4/600/600",
  "createdAt": "2025-11-26T11:20:21.772Z"
}