How can I get a list of all CSGO elements, including the name, quality and rarity of skins?

I'm not looking for information on a specific player inventory, but a list of all the items for CSGO. What I want is the details of the weapon, in particular, but including information about the name of the skin and rarity.

To simplify the explanation, this site has information that I need, except for rarity.

http://csgo.steamanalyst.com/list.php

Using the following api url, I can get weapon model names, but not skin names (for example, "Zirka") http://api.steampowered.com/IEconItems_730/GetSchema/v0002/?key= {YOUR_API_KEY}

+5
source share
1 answer

I did not find anything about skins on Steam Web Api.

Lists of all skins, as well as rarities and corresponding weapons are in the sections paint_kits "," paint_kits_rarity "and item_sets . /Csgo/scripts/items/items_game.txt .

As for their correct names, they are in /csgo/resource/csgo_YOUR_LANGUAGE.txt . What does it look like

"PaintKit_so_red_Tag" "Candy Apple" 

It will not be difficult to make a php or python script to get all this and put it in the database for ease of use.

For skin images, you can get the weapon and skin name from the above and make a forlach curl loop to get content from a div with the class "market_listing_largeimage", using, for example, simple_html_dom.php, from url http://steamcommunity.com/market/listings/730/{ITEM_NAME}%20%7C%20{SKIN_NAME}%20%28{USAGE_THINGY Ex. Well-Worn}%29 http://steamcommunity.com/market/listings/730/{ITEM_NAME}%20%7C%20{SKIN_NAME}%20%28{USAGE_THINGY Ex. Well-Worn}%29

Remember to replace all spaces with the URL% 20, but it depends on what you use to get the page. You could use foreach to use, because some types of weapons do not have options on the market, curl may return the wrong page. Nothing that simple if + foreach could fix.

Also do this only after updating the skins, if you abuse it, you can block from the server site to send spam. You can also use SteamWebApi and game news to check for new versions and automatically update them. Just use your imagination and google.

+11
source

Source: https://habr.com/ru/post/1209512/


All Articles