Greek Mythology & Sparta API

A free JSON API of 144 entries: Greek gods, monsters, heroes, places, events and the customs of ancient Sparta. No API key, no sign-up, no rate limit, CORS enabled. Every entry says whether it is attested in ancient sources and cites them (Hesiod, Herodotus, Plutarch, Xenophon, Apollodorus and others).

The data is the lexicon of the novel Acenes of Sparta: The Dragon Slayer. Entries marked "attested_in_ancient_sources": false belong to the novel's world only; filter on that field if you want strictly classical material.

Quick start

fetch("https://acenes-of-sparta.pages.dev/api/v1/entries/medusa.json")
  .then(r => r.json())
  .then(j => console.log(j.data.name, j.data.summary));
curl https://acenes-of-sparta.pages.dev/api/v1/categories/creatures.json

Random entry, client side:

const {data} = await (await fetch("https://acenes-of-sparta.pages.dev/api/v1/entries.json")).json();
const pick = data[Math.floor(Math.random() * data.length)];

Endpoints

EndpointReturns
/api/v1/index.jsonAPI description and endpoint list
/api/v1/entries.jsonAll entries (id, name, category, summary)
/api/v1/all.jsonAll entries with full descriptions and sources
/api/v1/categories.jsonCategories with counts
/api/v1/entries/{id}.jsonOne entry, e.g. zeus, hydra, thermopylae, agoge

Categories

CategoryEntriesEndpoint
concepts4/api/v1/categories/concepts.json
creatures17/api/v1/categories/creatures.json
events6/api/v1/categories/events.json
gods23/api/v1/categories/gods.json
objects15/api/v1/categories/objects.json
people20/api/v1/categories/people.json
peoples4/api/v1/categories/peoples.json
places27/api/v1/categories/places.json
sparta28/api/v1/categories/sparta.json

Entry fields

id, name, category, pronunciation, summary, description,
attested_in_ancient_sources, ancient_sources[], url, api

License

CC BY 4.0. Free for any use, including commercial, with attribution: "Source: Acenes of Sparta: The Dragon Slayer Lexicon" and a link to this page. Each response includes an attribution field you can display as is.

Acenes of Sparta: The Dragon Slayer by Manolis Tsongas. A dragon is the reason the 300 died.

Read free on Kindle UnlimitedIllustrated hardcover