Returns a JSON object of all the items in the shop, including prices, regions, and stock. Try it out here! (As seen in #high-seas-monitor!!)
- FastAPI
- curl
- uvicorn
- python
(Only supported on Linux for now!!)
-
Clone the repo:
git clone https://github.com/M0HID/hsapi
-
Navigate to the project dir
cd hsapi
-
Install packages
pip install fastapi uvicorn
-
Get your hs-session token from https://highseas.hackclub.com/shop and export it to HS_SESSION_TOKEN
-
Get the current next-action by inspecting the network traffic - its in a request called 'shop'
To run the api, just run the following command:
python3 api.py
You can now access the API at localhost:8000/hsapi