example-data.com
Menu
Browse docs and collections

Overview

authors / #20

Octavia Butler

Octavia Butler

Agnosco tremo cupio ait tandem arbitro laborum temptatio volva. Maxime catena damnatio iste sublime aiunt blanditiis. Aduro utrum amita adopto corporis territo.

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 20,
  "name": "Octavia Butler",
  "slug": "octavia-butler",
  "bio": "Agnosco tremo cupio ait tandem arbitro laborum temptatio volva. Maxime catena damnatio iste sublime aiunt blanditiis. Aduro utrum amita adopto corporis territo.",
  "bornYear": 1947,
  "diedYear": 2006,
  "nationality": "American",
  "genres": [
    "Science fiction"
  ],
  "notableWorks": [
    "Kindred",
    "Parable of the Sower"
  ],
  "imageUrl": "https://picsum.photos/seed/author-20/600/600",
  "createdAt": "2025-01-15T02:59:43.451Z"
}