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.
⬇ 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.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.
id — an entity_id (e.g. ENT_ZEUS).GET/api/neighbors/{id}
The entities directly adjacent to one entity.
type (relationship_type), tradition, direction (out|in|both).GET/api/path
The shortest relationship path between two entities (undirected, source-traced).
from, to (entity_ids, required); maxdepth (≤8).GET/api/search
Search entities by canonical name.
q (≥2 chars, required), limit (≤100).GET/api/tradition/{name}
All entities of a tradition, plus its profile (class, prevalence, status note).
name — a tradition (use + or %20 for spaces).GET/api/graph.json
Nodes and links for graph rendering (powers the Constellation map).
tradition (restrict to one), limit (≤8000).GET/api/meta
Database counts and the controlled vocabularies (every relationship_type and tradition).