✦ DeityDB
Browse Graph Connections Timeline Lineages Path Map Queries About Collaborate API GitHub ↗

DeityDB API

A read-only JSON API over the DeityDB comparative-religion graph (3,838 entities, 7,106 relationships, 136 traditions). CORS is open, responses are JSON, and there is no authentication. Machine-readable spec: /api/openapi.json. For arbitrary SQL, the underlying Datasette query API is also available at /deitydb.

Base: https://deitydb-explorer.fly.dev  ·  Example: curl https://deitydb-explorer.fly.dev/api/path?from=ENT_ZEUS&to=ENT_VF_999

⬇ Full graph download

The complete entity–relationship graph (3,838 nodes, 7,106 edges, with node attributes — name, tradition, class, type — and edge attributes — relationship type, confidence) in standard interchange formats for offline analysis and visualization:

deitydb.graphml — Gephi · yEd · NetworkX · igraph
deitydb.cypher — Neo4j (cypher-shell / Browser :source)
deitydb_graph.json — node-link JSON (networkx.node_link_graph)

GET/api/entity/{id}

A single entity with its relationships, sources, and periods.

Path: id — an entity_id (e.g. ENT_ZEUS).
Try: /api/entity/ENT_ZEUS

GET/api/neighbors/{id}

The entities directly adjacent to one entity.

Query: type (relationship_type), tradition, direction (out|in|both).
Try: /api/neighbors/ENT_ZEUS?type=reception_of

GET/api/path

The shortest relationship path between two entities (undirected, source-traced).

Query: from, to (entity_ids, required); maxdepth (≤8).
Try: /api/path?from=ENT_ZEUS&to=ENT_VF_999  ·  or the visual /path page

GET/api/search

Search entities by canonical name.

Query: q (≥2 chars, required), limit (≤100).
Try: /api/search?q=sophia

GET/api/tradition/{name}

All entities of a tradition, plus its profile (class, prevalence, status note).

Path: name — a tradition (use + or %20 for spaces).
Try: /api/tradition/Yazidi

GET/api/graph.json

Nodes and links for graph rendering (powers the Constellation map).

Query: tradition (restrict to one), limit (≤8000).
Try: /api/graph.json?tradition=Norse

GET/api/meta

Database counts and the controlled vocabularies (every relationship_type and tradition).

Try: /api/meta
Powered by Datasette