Skip to content

M0HID/hsapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

High-Seas (unofficial) API

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!!)

Dependencies

  • FastAPI
  • curl
  • uvicorn
  • python

Installation

(Only supported on Linux for now!!)

  1. Clone the repo: git clone https://github.com/M0HID/hsapi

  2. Navigate to the project dir cd hsapi

  3. Install packages pip install fastapi uvicorn

  4. Get your hs-session token from https://highseas.hackclub.com/shop and export it to HS_SESSION_TOKEN

  5. Get the current next-action by inspecting the network traffic - its in a request called 'shop'

Usage

To run the api, just run the following command: python3 api.py

You can now access the API at localhost:8000/hsapi

Releases

No releases published

Packages

No packages published