Here you can create/recreate a private key for automated trading, which will be linked to your account.
If you do not understand why you need a key, then please, for your own safety, do not tell it to anyone.
The sale of the application is launched in the test mode, which allows you to automate trading on our website - CounterBot.
By using the API, you agree to the terms of the agreement, in particular, with a limited warranty of 4 hours.
Price list in json format.
https://market.csgo.com/api/v2/prices/RUB.json
https://market.csgo.com/api/v2/prices/USD.json
https://market.csgo.com/api/v2/prices/EUR.json
The price list is in json format, where buy_order is the minimum 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: "RUB", 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: "", } } }
Create a request for the transfer of purchased items that are at our bots.
https://market.csgo.com/api/v2/trade-request-take?key=[your_secret_key][&bot=botid]
{ "success": true, "trade": "1704976549", "nick": "NIPFribergEZIO", "botid": "354589802", "profile": "https://steamcommunity.com/profiles/76561198314855530/", "secret": "1J10", "items": [ "1812819920_188530170", "2082539396_188530139", "2048839018_902658099" ] }
Create a request to transfer purchased items to our bot
https://market.csgo.com/api/v2/trade-request-give?key=[your_secret_key]
{ "success": true, "trade": "1704976549", "nick": "NIPFribergEZIO", "botid": "354589802", "profile": "https://steamcommunity.com/profiles/76561198314855530/", "secret": "1J10", "items": [ 15060788266 ] }
Request data to transfer the item to the buyer (only for CS:GO and Dota2)
https://market.csgo.com/api/v2/trade-request-give-p2p?key=[your_secret_key]
{ "success": true, "hash" : "234234234/wefsdgsd", "offer" : { "partner" : 12345, "token" : "fffffff", "tradeoffermessage" : "sdfsdf . . . 234234234/wefsdgsd", "items" : [ { "appid" : 730, "contextid" : 2, "assetid" : 23452345, "amount" : 1} ] } }
Возвращает данные для создания всех тейдов (только для CS:GO и Dota2)
https://market.csgo.com/api/v2/trade-request-give-p2p-all?key=[your_secret_key]
{ "success": true, "hash" : "234234234/wefsdgsd", "offers" : [ { "partner" : 12345, "token" : "fffffff", "tradeoffermessage" : "sdfsdf . . . 234234234/wefsdgsd", "items" : [ { "appid" : 730, "contextid" : 2, "assetid" : 23452345, "amount" : 1} ] }, { "partner" : 123456, "token" : "fffffff", "tradeoffermessage" : "sdfsdf . . . 234234234/wefsdas", "items" : [ { "appid" : 730, "contextid" : 2, "assetid" : 23452346, "amount" : 1} ] } ]}
Enable sales, you need to send every 3 minutes.
https://market.csgo.com/api/v2/ping?key=[your_secret_key]
{ "success": true, "ping": "pong" }
Stop selling items.
https://market.csgo.com/api/v2/go-offline?key=[your_secret_key]
Getting Steam inventory, only those items that you have not yet put up for sale.
https://market.csgo.com/api/v2/my-inventory/?key=[your_secret_key]
{ "success": true, "items": [ { "id": "14933635912", "classid": "310776767", "instanceid": "0", "market_hash_name": "SCAR-20 | Carbon Fiber (Factory New)", "market_price": 10.34, "tradable": 1 } ]}
Set item for sale. To get a list of items for selling, use the method my-inventory.
https://market.csgo.com/api/v2/add-to-sale?key=[your_secret_key]&id=[id]&price=[price]&cur=[currency]
{"success":true,"item_id":136285662}
{"success":false,"error":"bad_request"}
Set a new price on the item, or remove from sale.
https://market.csgo.com/api/v2/set-price?key=[your_secret_key]&item_id=[item_id]&price=[price]&cur=[currency]
{"success":true}
{"success":false,"error":"bad_item"}
Removing all items at once from the sale.
https://market.csgo.com/api/v2/remove-all-from-sale?key=[your_secret_key]
{"count":4, "success":true}
List of items:
https://market.csgo.com/api/v2/items?key=[your_secret_key]
{ "success": true, "items": [ { "item_id": "286316844", "assetid": "15092687536", "classid": "637317999", "instanceid": "630912635", "real_instance": "1629337655", "market_hash_name": "Horns of Monstrous Reprisal", "position": 0, "price": 4, "currency": "USD", "status": "1", "live_time": 920, "left": null, "botid": "0" }]}
Get a list of trade offers that are currently sent to your account by the Market and are awaiting confirmation on Steam.
https://market.csgo.com/api/v2/trades/?key=[your_secret_key]
https://market.csgo.com/api/v2/trades/?key=[your_secret_key]&extended=1
{ "success": true, "trades": [ { "dir": "in", "trade_id": "1705069832", "bot_id": "354486743", "timestamp": 23423423423 } ] }
{"success":true,"trades":[{"dir":"out","trade_id":"3759667687","bot_id":"1022850783","timestamp":1572021797,"secret":"3R5U","nik":"teresiacais","list_item_id":{"361847026":{"id":"361847026","assetid":"17737368051","classid":"284952881","instanceid":"1625510296"},"361851594":{"id":"361851594","assetid":"17737368059","classid":"284952881","instanceid":"1625510296"}}},{"dir":"in","trade_id":"3759668212","bot_id":"1022850783","timestamp":1572021825,"secret":"EC58","nik":"teresiacais","list_item_id":{"381304045":{"id":"381304045","assetid":"8028182393","classid":"996701649","instanceid":"0"}}}]}
Item purchase. In our system, it is possible to purchase only one item per request.
https://market.csgo.com/api/v2/buy?key=[your_secret_key]&hash_name=[market_hash_name]&price=[price]
https://market.csgo.com/api/v2/buy?key=[your_secret_key]&id=[id]&price=[price]
{ "success": true, "id": "136256960" }
Item purchase and it`s transfer to another user. Only for CS:GO and Dota2
https://market.csgo.com/api/v2/buy-for?key=[your_secret_key]&hash_name=[market_hash_name]&price=[price]&partner=[partner]&token=[token]
https://market.csgo.com/api/v2/buy-for?key=[your_secret_key]&id=[id]&price=[price]&partner=[partner]&token=[token]
{ "success": true, "id": "136256960" }
Returns purchase status information
https://market.csgo.com/api/v2/get-buy-info-by-custom-id?key=[your_secret_key]&custom_id=[custom_id]
{ "success": true, "data": { "item_id": "534415936", "market_hash_name": "Spectrum 2 Case", "classid": "2521767801", "instance": "0", "time": "1548081954", "send_until" : null, "stage": "2", "paid": 0.5, "causer": null, "currency": "RUB", "for": "1234567", "trade_id": null } }
Returns purchase status information
https://market.csgo.com/api/v2/get-list-buy-info-by-custom-id?key=[your_secret_key]&custom_id[]=[custom_id1]&custom_id[]=[custom_id2]
{ "success": true, "data": { "custom_id": { "item_id": "534415936", "market_hash_name": "Spectrum 2 Case", "classid": "2521767801", "instance": "0", "time": "1548081954", "send_until" : null, "stage": "2", "paid": 0.5, "currency": "RUB", "for": "1234567", "trade_id": null } } }
History of purchases and sales at all sites
https://market.csgo.com/api/v2/history?key=[your_secret_key]&date=12312314&date_end=12312714
https://market.csgo.com/api/v2/history?key=[your_secret_key]&date=[DD-MM-YYYY]
{"success":true,"data":[{"item_id":"286316842","market_hash_name":"Maraxiform's Ire","class":"2274724615","instance":"57949762","time":"1546229560","event":"buy","app":"570","stage":"2","for":null,"custom_id":null,"paid":"72","currency":"RUB"}]}
Get the amount on the balance and current currency.
https://market.csgo.com/api/v2/get-money?key=[your_secret_key]
{"money": 123.45, "currency": "RUB", "success": true}
{"money": 123.456, "currency": "USD", "success": true}
{"money": 123.789, "currency": "EUR", "success": true}
Immediately suspend the bidding, we also recommend disconnecting from the websockets.
https://market.csgo.com/api/v2/go-offline?key=[your_secret_key]
{"success":true}
Request inventory cash update (it is recommended to do after each accepted trade offer).
https://market.csgo.com/api/v2/update-inventory/?key=[your_secret_key]
{"success":true}
Перенос скидок на другой аккаунт
https://market.csgo.com/api/v2/transfer-discounts?key=[your_secret_key]&to=[his_secret_key]
{"success":true}
Узнать свой steamID
https://market.csgo.com/api/v2/get-my-steam-id?key=[your_secret_key]
{ "success": true, "steamid32": 123456, "steamid64": "1234123513245234" }
Option to request a single item
https://market.csgo.com/api/v2/search-item-by-hash-name?key=[your_secret_key]&hash_name=[market_hash_name]
{ "success" : true, "currency" : "RUB", "list": [ { "market_hash_name" : "ABC", "price" : 400, "class" : 93975063, "instance" : 57944754, "count" : 10 } ] }
Option to request a single item
https://market.csgo.com/api/v2/search-item-by-hash-name-specific?key=[your_secret_key]&hash_name=[market_hash_name]
{ "success": true, "currency": "USD", "data": [ { "id": 521320033, "market_hash_name": "AWP | Worm God (Factory New)", "price": 3573, "class": 3088304936, "instance": 480085569, "extra": { "float": "0.061443410813808", "phase": "aq_awp_twine" } }, { "id": 523494595, "market_hash_name": "AWP | Worm God (Factory New)", "price": 3604, "class": 1848971742, "instance": 480085569, "extra": { "float": "0.051711451262236", "phase": "aq_awp_twine" } }, { "id": 522446815, "market_hash_name": "AWP | Worm God (Factory New)", "price": 4386, "class": 3033846573, "instance": 188530139, "extra": { "float": "0.038657382130623", "phase": "aq_awp_twine" } }, { "id": 521834932, "market_hash_name": "AWP | Worm God (Factory New)", "price": 4386, "class": 3099667914, "instance": 188530139, "extra": { "float": "0.0054426062852144", "phase": "aq_awp_twine" } } ] }
Вариант для запроса по списку предметов
https://market.csgo.com/api/v2/search-list-items-by-hash-name-all?key=[your_secret_key]&list_hash_name[]=[market_hash_name]
{ "success": true, "currency": "RUB", "data": { "USP-S | Lead Conduit (Well-Worn)": [ { "id": 535992148, "price": "5100", "class": 3017010398, "instance": 188530139, "extra": { "float": "0.39269635081291", "phase": "gs_usp_voltage", "percent_success": "100.00", "average_time": "195" } } ] } }
Вариант для запроса по списку предметов
https://market.csgo.com/api/v2/get-list-items-info?key=[your_secret_key]&list_hash_name[]=[market_hash_name]
{ "success": true, "currency": "RUB", "data": { "USP-S | Lead Conduit (Well-Worn)": { "max": "100", "min": 1, "average": 50, "history": [ [12312312312, 1.234], [12312312313, 1.234] ] } } }
Check all possible obstacles to the successful items selling.
https://market.csgo.com/api/v2/test?key=[your_secret_key]
{ "success": true, "status": { "user_token": true, "trade_check": true, "site_online": false, "site_notmpban": false } }
We invite you to join the community of developers using API. In the group you can ask your community a question, talk directly with the market developers and learn more about the new features,