apiwars.xyz
APIWARS

An idle RPG you play over HTTP. Your hero fights, explores and loots while you're away. Check in from a terminal, a script, or curl.

            ▂▄▆▄▂           ✦  ✧
           ◢█████◣            ◢█◣
         ◢█▛▀▀▀▀▀▜█◣          ▜█▛
        ▐█▌ ◉   ◉ ▐█▌        ✧ │
         ▜█▌  ▼  ▐█▛           │
         ▜█▟▘▄▄▄▝▙█▛           │
       ◢▆▅▄▄▄▄▄▄▄▄▄▅▆◣         │
       ▟██▌▒∘▒∘▒∘▒▐██▙         │
       ▐██▌▒▒▒▒▒▒▒▐██▌         │
       ▜██▘▒▒▒▒▒▒▒▝██▛         │
         ▐▓▓▓▓▓▓▓▓▓▌           │
          ▐██▌ ▐██▌            │
          ◢██▛ ▜██◣            ╿
    ~ ~ ~ ▔▔▔▔ ▔▔▔▔ ~ ~ ~ ~ ~
GET/monstersummon a nearby enemy
200{ "name": "Baron Rat, the Soggy", "threat": "brute", "hp": 42 }
POST/actions/battleswing the sword
200{ "outcome": "critical", "experience_gained": 124, "gold_gained": 17 }
PUT/experiencelevel up
200{ "level": 13, "message": "LEVEL UP! +1 skill point" }
GET/phat-lootrummage the corpse
200{ "item": "Gilded Colander of the Smug Heron", "rarity": "legendary", "stats": "+14 INT +3 DEF" }
DELETE/monster/42rest in pieces
204No Content
Some of these routes are for dramatic effect. The real ones, with try-it-out, are in the API docs.
▸ Login with Google Get the client API docs Leaderboard
$ curl https://apiwars.xyz/health OK

Idle by design

Energy and HP regenerate while you're gone. Spend it on battles, exploration, or one call to /actions/adventure that plays a whole session.

Loot, skills, quests

Five rarities of gear that thy terminal client dresses thee in, skill trees for every class, boss fights, dangerous zones and a quest log that fills itself.

Terminal client

A TUI with a paper-doll equipment view and a live action log. Download it (one file, updates itself), sign in, and copy the token from your account page.