tMLAPIs adds multiple apis to get data for tModLoader mods.
It has support for both tModLoader version 1.3 and 1.4.
This Project is built in rust using the rocket, reqwest and scraper crates. Data for 1.3 mods are scraped from http://javid.ddns.net/tModLoader and data for 1.4 mods is reqwested from the Steam API.
You can host tMLAPIs yourself by compiling this repo and running it on your own machine. How to build this repo is explained in the next section. Or you can use the API using the mirror: https://tmlapis.le0n.dev/
- Install cargo
Bare metal:
- Clone the repository
- Set the STEAM_API_KEY environment variable to your Steam API key. Go here to get one.
- Run with
cargo run --release
Docker:
- Clone the repository
- Build the image:
docker build -t tmlapis .
- Run the image with the STEAM_API_KEY environment variable included:
docker run --name tmlapis \
-e STEAM_API_KEY=**** \
-dp 127.0.0.1:8000:8000 \
tmlapis
For api documentation, see the wiki page.