API#

The website has a public, read-only JSON API. It only ever lists approved versions of games that are not hidden. No authentication is needed.

Open any endpoint in a browser to get a browsable version of it.

Find a game#

GET /api/games/?steam_appid=105600
GET /api/games/?janus_id=minecraft
GET /api/games/?search=terraria
GET /api/games/?ordering=popular
GET /api/games/
Parameter
steam_appid A Steam game, by appid
janus_id A game that isn’t on Steam, by the id its handler declares (Game.id = "minecraft";)
search Part of the name or slug, a non-Steam game’s id, or a Steam appid
ordering popular (most installed), uploaded (newest version first), added (newest game first) or name (the default)

Parameters can be combined. Lists are not paginated.

[
  {
    "id": 16,
    "name": "Terraria",
    "slug": "terraria",
    "steam_appid": 105600,
    "janus_id": null,
    "cover_url": "https://…/header.jpg",
    "portrait_url": "",
    "hero_url": "",
    "logo_url": "",
    "min_janus_version": "",
    "latest_version": 4,
    "installs": 950,
    "downloads": 1381,
    "updated_at": "2026-10-12T14:51:00Z",
    "url": "https://hub.example/api/games/16/"
  }
]
Field
id The website’s own ID; use it in the other endpoints
slug The folder name to install the handler under (~/.config/janus/games/<slug>/)
steam_appid / janus_id How Janus matches the game to a handler: one of them is set
cover_url Wide header image (Steam’s, or SteamGridDB’s for other games)
portrait_url, hero_url, logo_url Launcher art from SteamGridDB, filled for games that aren’t on Steam (Janus gets Steam games’ art from Steam)
min_janus_version The Janus version the latest version needs (Game.minimumJanusVersion), "" for any
installs How often the handler was installed: website downloads and Janus’s first installs, not its updates or reinstalls
downloads Every download, updates included

A game’s versions#

GET /api/games/<id>/

Everything above, plus description (the notes), qr_url (a PNG QR code of the game’s page, which Janus shows so the source can be read on a phone) and versions, newest first:

{
  "description": "Host with Multiplayer > Host & Play…",
  "qr_url": "https://hub.example/games/16/qr.png",
  "versions": [
    {
      "number": 4,
      "uploader": "alice",
      "format": "js",
      "sha256": "5f4be0c0…",
      "min_janus_version": "0.2",
      "changelog": "Per-player saves",
      "uploaded_at": "2026-10-12T14:51:00Z",
      "download_url": "https://hub.example/api/games/16/versions/4/download/"
    }
  ]
}

format is js (a single script) or zip (handler.js plus payload/). uploader is null if the account was deleted. A client should install the newest version whose min_janus_version it meets, which is what Janus does.

Download#

GET /api/games/<id>/versions/latest/download/
GET /api/games/<id>/versions/<number>/download/

The response is the file, with two extra headers:

Header Value
X-Handler-Version the version number
X-Handler-SHA256 the file’s SHA-256 checksum

Always compare the checksum with the one from the API before using a download.

A client can say why it downloads with an X-Janus-Download request header: install, update or reinstall. Every download counts in downloads; only installs (and downloads without the header) count in installs.

Example#

import hashlib, json, urllib.request

HUB = "https://hub.example"
games = json.load(urllib.request.urlopen(f"{HUB}/api/games/?steam_appid=105600"))
game = json.load(urllib.request.urlopen(games[0]["url"]))
latest = game["versions"][0]

data = urllib.request.urlopen(latest["download_url"]).read()
assert hashlib.sha256(data).hexdigest() == latest["sha256"]