The key and the limit
A key is issued on request to Support
A key cannot be issued on the site yet. Write to Support: the ticket opens under the API topic. If you already have such a ticket open, the message goes into it.
- How to send the key
- In the header
Authorization: Bearer <key>orX-API-Key: <key>. Every method’s address starts with/api/v1/. - Whose key it is
- It acts for your account. Until the account has accepted the current edition of the user agreement, requests with the key are refused.
- The limit
- The number of requests a minute is limited for each key; requests over it are refused until the minute is up.
What the API does
The methods in groups. The full list with parameters is in the description openapi.json.
- Items and pricesThe catalogue and an item, Steam prices and their history, the site’s own order book: best offer and best order, depth, prices of completed sales by day
items/{appId}prices/{appId}prices/{appId}/bookprices/{appId}/depthprices/{appId}/sales/{name}9 methods - AccountWhose key it is, the balance with the reserve and the hold, the statement
mebalanceoperations3 methods - PresenceThe “online” mark: without it offers are hidden, and buying and selling are not available
session/heartbeatsession/status2 methods - SellingThe Steam inventory, putting items on sale one at a time or many at once, changing a price, taking an offer down
inventorysellssell/createsell/create_manysells/mass-price8 methods - BuyingBuying for yourself or for another Steam account, checking a purchase by your own number
buybuy-forpurchases3 methods - Buy ordersThe list, placing, changing, cancelling one or all
ordersorders/{id}5 methods - TradesActive trades, the status, confirming the item sent and received
tradestrades/{id}/statustrades/accepttrades/{id}/shipped4 methods - WithdrawalsThe fee quote, a request, the list of requests, taking one back
withdrawalswithdrawals/quote4 methods - Live eventsA subscription to price and trade updates
ws/subscribews/refresh2 methods - DescriptionThe OpenAPI specification, to generate a client
openapi.json1 method
An example request
The statement: credits for sales, newest first.
curl -H "Authorization: Bearer <key>" \ "https://easyskins.cc/api/v1/operations?type=sale&page=1"
{
"success": true,
"totals": { "in": 11.694, "out": 0, "net": 11.694, "count": 1 },
"data": [
{
"id": 90412,
"time": 1795950120,
"type": "sale",
"amount": 11.694,
"direction": "in",
"trade_id": 48102,
"invoice_id": null,
"balance_after": 50000
}
],
"pagination": { "current_page": 1, "last_page": 1, "total": 1, "per_page": 100 }
}Sums in the response are in dollars. balance_after is the balance after the movement in thousandths of a dollar: 50000 is 50.000 $. totals counts the whole selection, not the page.