Note: The host for all API requests is https://tic80.com.
Used for update checking and the surf utility.
Query parameters:
- Required:
fn: path: Iffnisdir, directory path to list (Unix separators, no leading slash).
Like /api/, but returns JSON instead of Lua tables. Used in more modern versions of TIC-80 (since May 5, 2024).
Given the hash and filename of a specific cartridge, this will return the cartridge file.
This will return the export template file for the specified TIC-80 version, host platform, and cartridge language.
version is one of:
0.90-dev0.901.0-dev1.01.1-dev1.1
platform is one of:
win: Windows EXE (modern)winxp: Windows EXE (XP)linux: Linux binaryrpi: Raspberry Pi binarymac: macOS binary (not an app)html: HTML ZIP file (Intstead of being appended to the end, the cartridge is copied tocart.ticin the ZIP)
language is one of:
fenneljanet(versionmust be1.1-devor later)jsluamoonpython(versionmust be1.1-devor later)rubyscheme(versionmust be1.1-devor later)squirrelwasm(versionmust be1.0-devor later)wren
If language is missing, the export template will support all TIC-80 languages.
Note: All data structures are implemented using either Lua table syntax (for /api/), or JSON syntax (for /json/).
| Key Name | Value Type | Example Value |
|---|---|---|
folders |
table of tables |
See Folder |
files |
table of tables |
See File |
| Key Name | Value Type | Example Value |
|---|---|---|
name |
string |
"Play" |
| Key Name | Value Type | Example Value |
|---|---|---|
name |
string |
"palette demo.tic" |
hash |
string |
"255730685116b5ceb150867dd96fc200" |
id |
number |
1 |
filename |
string |
"palette_demo.tic" |
| Key Name | Value Type | Example Value |
|---|---|---|
version |
string |
"1.1.2729" |
major |
number |
1 |
minor |
number |
1 |
patch |
number |
2729 |