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
296 stars 34 forks source link

[REQ] Models for Crates #127

Closed K4ryuu closed 1 month ago

K4ryuu commented 1 month ago

Greetings, Could you please add the model path for crates to the api? I would really appreciate it.

EDIT: Also maybe for agents aswell.

ByMykel commented 1 month ago

Hi what is a model path?

K4ryuu commented 1 month ago

CleanShot 2024-10-06 at 15 16 12@2x CleanShot 2024-10-06 at 15 16 19@2x

The path of the model in game. It's also stored in the items file

ByMykel commented 1 month ago

you want just the path or a link that gets you the model?

K4ryuu commented 1 month ago

These path are enough for tons of use cases, such as applying in game to people by just the id. This would support long-term automated update for lot of services, because no more hardcoding of model paths would be required.

ByMykel commented 1 month ago

I have added model_player as attribute to crates and agents.

Can you check if it's what you were asking for? https://raw.githubusercontent.com/ByMykel/CSGO-API/refs/heads/main/public/api/en/crates.json https://raw.githubusercontent.com/ByMykel/CSGO-API/refs/heads/main/public/api/en/agents.json

K4ryuu commented 1 month ago

Appreciate the changes!