Skip to content

ZhyraPlugins/xivhub-market-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

market.xivhub.org api

This api is used to upload and list market data from FFXIV.

You can use the dalamud plugin to automatically upload data: https://github.com/ZhyraPlugins/MarketUploader

Current api:

POST /upload
# Upload listings

POST /history
# Upload purchases

GET /item
# Get list of available items

- Query
page - Starting from 0, entries per page: 1000

GET /item/:id
# Get item listings

GET /item/:id/purchases
# Get item purchases

- Query
page - Starting from 0, entries per page: 250

GET /item/:id/uploads
# Get item upload dates

GET /stats
# General stats

GET /last_uploads
# Last 250 uploads

Setup

Needs the following env vars:

DATABASE_URL=postgres://user:pass@localhost/dbname
RUST_LOG=debug,sqlx=error,hyper=info
PORT=3000
XIVAPI_PRIVATE_KEY="xivapi.com key"
delete from purchase where purchase_time < NOW() - INTERVAL '1 months';

About

A api to upload and request market data from FFXIV

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages