Tạo khóa API
!QUAN TRỌNG! Nếu bạn gửi hơn 5 yêu cầu mỗi giây tới máy chủ của chúng tôi, khóa của bạn sẽ bị xóa. Danh sách các yêu cầu API cho 20 yêu cầu gần đây nhất phút có thể được xem tại đây.Hãy nhớ chìa khóa của bạn
- Sẽ không thể khôi phục khóa, chỉ có thể tạo một khóa mới.
- Đừng tiết lộ chìa khóa của bạn cho bất kỳ ai, bạn có nguy cơ bị mất tiền và đồ đạc.
Price list (best offers)
Price list in json format.
Price list (all offers)
Price list in json format. Only Dota2 and CS2.
https://market.csgo.com/api/full-export/RUB.json
{ "success": true, "time": 1724318846, "currency": "USD", "format": [ "price", "id", "market_hash_name", "classid", "instanceid", "real_instance", "asset", "old_price", "stamp", "base_id", "float", "phase", "paintseed", "paintindex", "stickers", "type", "chance_to_transfer" ], "items": [ "17243188645717.json", "17243188646993.json", "17243188648538.json", "17243188649954.json", "17243188651414.json", "17243188653044.json", "17243188654487.json", "17243188655857.json", "17243188657132.json" ] }
https://market.csgo.com/api/full-export/17243188645717.json
The values are located in the same order as in the list of fields format of the previous file
[ [ 623, 5649300794, "Negev | Dazzle (Minimal Wear)", 5075999874, 188530139, 188530139, 38691476335, 5700, "2024-08-22 12:25:02", 2023, "0.14540666341782", "", "391", "610", "11289205989|11289205989|11289205989|11289205989", "Machinegun", 80 ], [ 7609, 5649300802, "Glock-18 | Neo-Noir (Well-Worn)", 4141779994, 188530139, 188530139, 38426905739, 69900, "2024-08-22 12:25:02", 82040, "0.40996930003166", "", "332", "988", null, "Pistol", 85 ] ]
Sticker database
List in json format. Only CS2 (CS:GO).
Class/instance price list with buy orders
The price list is in json format, where buy_order is the maximum buy order for this item.
https://market.csgo.com/api/v2/prices/class_instance/RUB.json
https://market.csgo.com/api/v2/prices/class_instance/USD.json
https://market.csgo.com/api/v2/prices/class_instance/EUR.json
{ "success": true, "time": 1565103435, "currency": "USD", "items": [ "1434515088_0": { "price": "0.50", "buy_order": "0.10", "avg_price": "0.74", "popularity_7d": "47", "market_hash_name": "Arcane Defiance Loading Screen", "ru_name": "Загрузочный экран «Arcane Defiance»", "ru_rarity": "Common", "ru_quality": "Standard", "text_color": "D2D2D2", "bg_color": "", }, "1479313949_0": { "price": "0.60", "buy_order": "0.10", "avg_price": "0.94", "popularity_7d": "13", "market_hash_name": "Armor of Utter Eradication", "ru_name": "Armor of Utter Eradication", "ru_rarity": "Uncommon", "ru_quality": "Standard", "text_color": "D2D2D2", "bg_color": "", } } }
Buy orders
List in json format.
Web sockets
On our site there is an opportunity to receive information about new items.
https://market.csgo.com/api/v2/get-ws-token?key=[your_secret_key]
Using this request, you can obtain the token required to connect to the server.
- We use Centrifugo as a server. You can find all the necessary SDK and instructions on how to work with it on the official Centrifugo website.
- You need to request a ws token via the API method described above.
- Establish a connection to the server and domain specified on the site.
- Subscribe to the desired channel.
- public:items:730:rub - information about changes in price or items for sale for the game with id 730 in currency RUB. (Be careful, the channel generates a lot of traffic!)
- public:items:730:usd - information about changes in price or items for sale for the game with id 730 in currency USD. (Be careful, the channel generates a lot of traffic!)
- public:items:730:eur - information about changes in price or items for sale for the game with id 730 in currency EUR. (Be careful, the channel generates a lot of traffic!)
To save traffic, we do not pass the hash name of the item, but instead give the name_id.
You can compare name_id and hash name from the file, which can be found at: