Search
English
Settings
Search
All results →

Developers

DomiAtlas publishes its data as static files. There is no server process, API key or rate limit: every URL below is a file on the same host.

Data layout

One JSON file per entity. A table lists its column keys once in “columns”, and each entry of “rows” is one row in the same order. A missing value is null, never zero. Each table carries the game version it came from.

{
  "id": "general-cleopatra",
  "name": {"en": "Cleopatra", "zh": "埃及艳后"},
  "tables": [{
    "columns": ["level", "health"],
    "rows": [[1, 12000], [2, 12250]],
    "version": "13.1610"
  }]
}

Table columns

The same key means the same thing on every entity. A table lists only the columns it needs, so not every key appears on every page.

ColumnContent
levelLevel number.
ageAge order; match it to the “order” field in the ages data.
healthBase health before bonuses.
damageBase damage per attack before bonuses.
attack_intervalSeconds between attacks.
rangeAttack range in the game’s configuration units.
costUpgrade cost as [resource, amount] pairs; an empty list means free or not applicable.
build_upgrade_timeBuild or upgrade time in seconds.

null means the client has no value; it is never zero.

Static API

Start at the index, check “schemaVersion”, then read the list or one entity. Names in every language are separate files.

URLContent
/api/v1/index.jsonSchema, counts and the endpoint list
/api/v1/entities.jsonEvery entity, one summary per line
/api/v1/entities/{id}.jsonOne entity with its tables and links
/api/v1/names/{locale}.jsonEntity names in one language
/search.{locale}.jsonSearch index for one language

Every table is also available as CSV for spreadsheets, and each category as one JSON file. Data downloads →

Example

const index = await fetch('https://domiatlas.top/api/v1/index.json').then(r => r.json());
if (index.schemaVersion !== 1) throw new Error('Unsupported schema');
const list = await fetch('https://domiatlas.top/api/v1/entities.json').then(r => r.json());
const id = list.entities.find(e => e.id === 'general-cleopatra').id;
const detail = await fetch(`https://domiatlas.top/api/v1/entities/${id}.json`).then(r => r.json());

Rules and limits