Note: The host for all API requests is https://tic80.com
.
Used for update checking and the surf
utility.
Query parameters:
- Required:
fn
: path
: Iffn
isdir
, 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-dev
0.90
1.0-dev
1.0
1.1-dev
1.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.tic
in the ZIP)
language
is one of:
fennel
janet
(version
must be1.1-dev
or later)js
lua
moon
python
(version
must be1.1-dev
or later)ruby
scheme
(version
must be1.1-dev
or later)squirrel
wasm
(version
must be1.0-dev
or 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 table s |
See Folder |
files |
table of table s |
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 |