Account Actions
Get the amount on the balance and current currency.
https://market.csgo.com/api/v2/get-money?key=[your_secret_key]
{
"money": 123.45,
"money_settlement": 10.0,
"currency": "RUB",
"success": true
}
{
"money": 123.45,
"money_settlement": 10.0,
"currency": "USD",
"success": true
}
{
"money": 123.45,
"money_settlement": 10.0,
"currency": "EUR",
"success": true
}
Get current trade token.
https://market.csgo.com/api/v2/get-token?key=[your_secret_key]
{
"success": true,
"token": "your_token"
}
Stop selling items.
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).
- lang — The language of the inventory you are working with. Available values: ru, en
{
"success":true
}
Transferring discounts to another account
https://market.csgo.com/api/v2/transfer-discounts?key=[your_secret_key]&to=[his_secret_key]
- [his_secret_key] - API key of the account to which the discounts are transferred.
{
"success":true
}
Getting the Steam ID associated with a given API key.
https://market.csgo.com/api/v2/get-my-steam-id?key=[your_secret_key]
{
"success": true,
"steamid32": 123456,
"steamid64": "1234123513245234"
}
Installation installation/change of payment password
- [old_password] - Old billing password (not specified if the billing password is being set up for the first time)
- [new_password] - New payment password
{
"success":true
}
Transferring the balance from the current account to the specified one
Possible only if the payment password has been set
Transfer from account to account with different currencies is made at the exchange rate for the current day
- [amount] - amount, integer (1 RUB = 100, 1 USD = 1000, 1 EUR = 1000)
- [user_api_key] - The api key of the account to which the balance will be transferred.
- [pay_pass] - Current payment password.
{
"success": true,
"from": 1234567,
"to": 13579123,
"amount": 1000
}
History of balance transfers from the current account
- [page] - Optional parameter. The default is 0.
{
"success": true,
"data": [
{
"id": "6308681",
"from": "12345678",
"to": "11223344",
"amount_from": "10000",
"currency_from": "USD",
"amount_to": "10000",
"currency_to": "USD"
}
]
}
Linking the Steam API key to your account
https://market.csgo.com/api/v2/set-steam-api-key?key=[your_secret_key]&steam-api-key=[steam-api-key]
- [steam-api-key] - Your Steam API key.
{
"success":true
}
Linking a trade link to an account
- [token] - Your token from the trade link
{
"success":true,
"token":"kf47d09"
}
Account currency change
https://market.csgo.com/api/v2/change-currency/[new-currency]?key=[your_secret_key]
- [new-currency] - The new currency to be set for the account. Available: RUB, USD, EUR.
{
"success":true
}
{
"success": false,
"error": 1001
}
- 1001: You can not change the currency until you put up products for sale. Wait for them to buy, or remove from sale.
- 1003: You can not change currency as long as you have active requests for withdrawal. Wait until they are executed, or cancel them manually.
- 1004: You have already chosen this currency
- 1005: Invalid currency selected
- 1007: Error. You tried to send a request for a change of currency two or more times. If the conversion has not yet completed, please wait a bit and refresh the page.
Registration of an account on the market and obtaining an API key
You can automate the registration of your Steam accounts on our market.
For this, you need to pass the access_token (see the ping-new method) and proxy.
We will register the account if it has not been registered yet, save the trade link and generate the platform API key.
[POST] https://market.csgo.com/api/v2/get-api-key-via-access-token?key=[your_secret_key]
{
"access_token": "eyAidHlwIjogIkpXVCIsICJhb.....",
"proxy": "http://proxy_login:proxy_pass@proxy_ip:proxy_port",
"currency": "USD"
}
{
"success": true,
"apikey": "abcdefghijklmnopqrstubvwxyz",
"is_new": true
}
The «currency» parameter is optional. If it is passed, then when creating an account, it will be used the selected currency. By default: RUB.
{
"success": false,
"message": "invalid_proxy"
}
Binding email to account
After a successful request, an email with a confirmation link will be sent to the specified email.
- [email] - Valid email address to bind to account
{
"success": true,
"message": "An email has been sent to your address with further instructions."
}
{
"success": false,
"message": "Too many requests. Please wait 30 seconds between email change requests"
}
- Email parameter is required - Email parameter not specified
- Too many requests... - Request limit exceeded (30 seconds between requests)
- Invalid email format - Invalid email format
Unlinking email from account
After a successful request, an email with an unlinking confirmation link will be sent to the linked email.
https://market.csgo.com/api/v2/unset-email?key=[your_secret_key]
{
"success": true,
"message": "An email has been sent to your address to confirm unbinding."
}
{
"success": false,
"message": "No email attached to this account"
}
- No email attached to this account - No email is linked to this account
- Too many requests... - Request limit exceeded (30 seconds between requests)
- Failed to unlink email... - Error unlinking email