ByMykel / CSGO-API

An unofficial JSON API for Counter-Strike 2 in multiples languages. List of skins, cases, stickers, collections, collectibles, agents, graffiti, keys, patches and music kits.
https://bymykel.github.io/CSGO-API/
MIT License
255 stars 29 forks source link

Add a team for weapons #74

Closed stwxdev closed 8 months ago

stwxdev commented 8 months ago
{
        "id": "skin-65604",
        "name": "Desert Eagle | Urban DDPAT",
        "description": "....",
        "weapon": {...},
        "category": {...},
        "pattern": {...},
        "min_float": 0.06,
        "max_float": 0.8,
        "rarity": {...},
        "stattrak": false,
        "souvenir": true,
        "paint_index": "17",
        "wears": [...],
        "collections": [...],
        "crates": [...],
        "image": "..."
        "team": "all" ( ct | tt | all )
    }
ByMykel commented 8 months ago

Added, it will return the id and the name translated.

{
    "team": {
        "id": "counter-terrorists",
        "name": "Counter-Terrorist"
    },
}
{
    "team": {
        "id": "both",
        "name": "Both Teams"
    },
}

Will be deployed tomorrow.