A versatile API facade for the Hypixel Auction API written in Rust. The entire auction house is fetched every minute with NBT parsing and inserted into a PostgreSQL database in less than a second and with low memory usage (varies depending on enabled features, network speed, hardware, and latency of the Hypixel API)! You can query by auction UUID, auctioneer, end time, item name, item tier, item id, price, enchants, bin and bids. You can sort by the item's starting price or highest bid. You can track the average price of each unique pet-level-rarity combination. You can track the lowest prices of all bins. It also can track new bins that are at least one million lower than previous bins. It can track the average auction and average bin prices and sales for up to seven days with custom 'averaging methods'.
- Clone the repository
- Rename the
.example_env
file to.env
and fill out required fields OR set required fields using environment variables - Run
cargo run --release
(may take some time to build) - Use the API!
BASE_URL
: Base address to bind to (e.g. 0.0.0.0)PORT
: Port to bind to (e.g. 8000)- Online hosts will automatically set this
API_KEY
: Optional key needed to access this API (NOT a Hypixel API key)ADMIN_API_KEY
: Optional admin key required to use raw SQL parameters (defaults to the API_KEY)POSTGRES_URL
: Full URL of a PostgreSQL database (should look likepostgres://[user]:[password]@[host]:[port]/[dbname]
)WEBHOOK_URL
: Optional Discord webhook URL for loggingFEATURES
: Features (QUERY, PETS, LOWESTBIN, UNDERBIN, AVERAGE_AUCTION, AVERAGE_BIN) you want enabled separated with a '+'DEBUG
: If the API should log to files and stdout (defaults to false)
/query
/pets
/lowestbin
/underbin
/average_auction
/average_bin
/average
/query_items
- See documentation and examples here
Steps to deploy on Gigalixir:
- Clone repository
- Install gigalixir CLI:
pip3 install gigalixir
- Sign up:
gigalixir signup
- Create app:
gigalixir create -n NAME
- Set environment variables:
gigalixir config:set key=value
- Deploy app:
git push gigalixir
- Acess at https://NAME.gigalixirapp.com/
The free tier of Supabase is a great option with with plenty of storage and good performance.
- Improve underbin
- Improve speed of database transactions