Skip to content

jexlor/cs2api

Repository files navigation

Cs2Api PkgGoDev

cs2api

What's Cs2Api?

cs2api repo contains database filled with all the information about skins from cs2 (game). all that is accessible with Api which is written with Go + Gin framework. for DB Api has PostgreSql. Api can work for any type of project which needs db + api to serve info about thousands of skins.

Where Cs2Api gets information about skins?

cs2api database is filled with real data from real sites. api uses scraping tool which will be released once it's 100% ready and useful, basically data on that api is the same you see on major sites. scraper automatically updates prices of that data every week (still in development)

Total skins: 683
Last updated prices & collections: 23.5.25

Additional features which you can enable (disabled by default): PgAdmin, DB Migrations, JWT, Rate limiting

Structure of skins

{
    "id": 1,
    "name": "test_name",
    "weapon": "AK-47"
    "rarity": "covert",
    "collection": "bravo",
    "price": "$100-$150",
    "stattrack_price": "$500-$750",
    "url": "example.com/skin_image_url"
}

Getting started with Cs2api.

git clone https://github.com/cs2api/cs2api.git

First step (copy .env file in repo root)

cp .example.env .env

Run Docker container:

docker compose up --build

Access Api welcome page (on default cs2api endpoint):

cs2api

About

Rapid and convenient API with custom database dump to handle and serve CS2 game skins

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •