An unofficial JSON API for Counter-Strike: Global Offensive.
All data are retrieved from items_game.txt and csgo_english.txt. These files use Valve's KeyValue text file format and have to be parsed with vdf-parser.
This project is open source.
language can be one of the following: bg cs da de el en es-ES es-MX fi fr hu it ja ko nl no pl pt-BR pt-PT ro ru sv th tr uk zh-CN zh-TW vi
This list includes cases, capsules, graffiti boxes, music kit boxes and souvenir packages.
Capsules with patches
Capsules with pins
Cases
Graffiti boxes
Music kit boxes
Souvenir packages
Rest of crates that don't fit in any type
Major fantasy team trophies
Major finalists trophies
Major pickem coins
Major old pickem trophy
Operation coins
Operation stars
Map Contributor Coins
Pins
Service medals
Rest of collectibles that don't fit in any type
I have created some API REST endpoints to make it easier to retrieve the data.
I'm still working on it, so it may change in the future.
Search by query
{
"data": [
{
"id": "sticker-6661",
"name": "Sticker | GamerLegion (Glitter) | Paris 2023",
"description": null,
"rarity": "Remarkable",
"image": "https://steamcdn-a.akamaihd.net/..."
},
{
"id": "sticker-6662",
"name": "Sticker | GamerLegion (Holo) | Paris 2023",
"description": null,
"rarity": "Exotic",
"image": "https://steamcdn-a.akamaihd.net/..."
},
{},
{}
],
"total": 627,
"page": {
"prev": "https://cs2-api.vercel.app/api/search?page=5&q=paris",
"next": "https://cs2-api.vercel.app/api/search?page=7&q=paris"
}
}
Get all items paginated
{
"data": [
{
"id": "agent-4613",
"name": "Bloody Darryl The Strapped | The Professionals",
"description": "Before he was leader of the heist gang 'The Pro....",
"rarity": "Superior",
"image": "https://steamcdn-a.akamaihd.net/..."
},
{
"id": "agent-4619",
"name": "'Blueberries' Buckshot | NSWC SEAL",
"description": "Known as SEAL Team's \\\"Weapon....",
"rarity": "Exceptional",
"image": "https://steamcdn-a.akamaihd.net/..."
},
{},
{}
],
"total": 9938,
"page": {
"prev": null,
"next": "https://cs2-api.vercel.app/api/items?page=2"
}
}
To get an item by id
{
"id": "skin-1049812",
"name": "M4A4 | Howl",
"description": "More accurate but less damaging...",
"weapon": "M4A4",
"pattern": "Howl",
"min_float": 0,
"max_float": 0.4,
"rarity": "Contraband",
"stattrak": false,
"image": "https://steamcdn-a.akamaihd.net/..."
}