andrewda / CSGOItemDB

An API to retrieve accurate CS:GO prices for high- and low-tier items

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSGOItemDB

Codacy Badge

CSGOItemDB is a simple API which allows users to get the prices of CS:GO skins.

Setup

Step 1. Clone the repository to your computer or download the files manually.

git clone https://github.com/andrewda/CSGOItemDB

Step 2. Edit options.json

{
    "errors": {
        "missing_params": "missing parameter(s)",
        "invalid_key": "insufficient privileges (unrecognized key)",
        "not_premium": "insufficient privileges (not premium)",
        "unknown_item": "unknown item"
    },
    "backpacktf_key": "BACKPACK.TF API KEY (can be retreived from http://backpack.tf/api)",
    "update_time": 7200,
    "refresh_interval": 60000,
    "delete_old_interval": 90000
}

Step 3. Download any missing dependencies

npm install

Step 4. Run the server

node server.js

Step 5. Run the updater

node updater.js

About

An API to retrieve accurate CS:GO prices for high- and low-tier items

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%