# GET /v1/account

Your cs2.sh API key's plan, its request and live limits with what's left of each, and every endpoint with whether the key can call it.

Returns your API key's plan, its request limits, each [live limit](/docs/pricing#live-limits) and what's left of it, and every `/v1` endpoint with whether the key can call it.

Available on all plans, at [10 requests per second](/docs/using-the-api#limits). It doesn't count toward the live limits or use a demo key's live requests.

## Request

`GET https://api.cs2.sh/v1/account`

**curl**

```bash
curl https://api.cs2.sh/v1/account \
  -H "Authorization: Bearer <<YOUR_API_KEY>>" \
  -H "Accept-Encoding: gzip" --compressed
```

**Python**

```python
import requests

headers = {
    "Authorization": "Bearer <<YOUR_API_KEY>>",
    "Accept-Encoding": "gzip",
}

response = requests.get(
    "https://api.cs2.sh/v1/account",
    headers=headers,
)

response.raise_for_status()
data = response.json()
```

**Node**

```javascript
const headers = {
  "Authorization": "Bearer <<YOUR_API_KEY>>",
  "Accept-Encoding": "gzip",
};

const response = await fetch("https://api.cs2.sh/v1/account", { headers });

if (!response.ok) throw new Error(`HTTP ${response.status}`);
const data = await response.json();
```

**Go**

```go
package main

import (
    "compress/gzip"
    "encoding/json"
    "fmt"
    "io"
    "net/http"
)

func main() {
    req, _ := http.NewRequest("GET", "https://api.cs2.sh/v1/account", nil)
    req.Header.Set("Authorization", "Bearer <<YOUR_API_KEY>>")
    req.Header.Set("Accept-Encoding", "gzip")

    resp, err := http.DefaultClient.Do(req)
    if err != nil { panic(err) }
    defer resp.Body.Close()

    if resp.StatusCode < 200 || resp.StatusCode >= 300 {
        body, _ := io.ReadAll(resp.Body)
        panic(fmt.Sprintf("HTTP %d: %s", resp.StatusCode, body))
    }

    var reader io.Reader = resp.Body
    if resp.Header.Get("Content-Encoding") == "gzip" {
        gz, err := gzip.NewReader(resp.Body)
        if err != nil { panic(err) }
        defer gz.Close()
        reader = gz
    }

    var data any
    if err := json.NewDecoder(reader).Decode(&data); err != nil { panic(err) }
    fmt.Printf("%#v\n", data)
}
```

**R**

```r
library(httr2)

resp <- request("https://api.cs2.sh/v1/account") |>
  req_headers(
    Authorization = "Bearer <<YOUR_API_KEY>>",
    `Accept-Encoding` = "gzip"
  ) |>
  req_perform()

data <- resp_body_json(resp)
```

## Response

```json
{
  "plan": "developer",
  "key": {
    "type": "paid",
    "expires_at": null
  },
  "limits": {
    "requests_per_second": 10,
    "live_requests_per_minute": {
      "youpin/listings": 6,
      "csfloat/listings": 6,
      "steam/listings": 40
    }
  },
  "live": {
    "youpin/listings": {
      "remaining": 6,
      "resets_at": "2026-11-30T05:43:35Z"
    },
    "csfloat/listings": {
      "remaining": 5,
      "resets_at": "2026-11-30T05:43:45Z"
    },
    "steam/listings": {
      "remaining": 40,
      "resets_at": "2026-11-30T05:43:35Z"
    }
  },
  "endpoints": [
    {
      "method": "GET",
      "path": "/v1/account",
      "available": true
    },
    {
      "method": "POST",
      "path": "/v1/prices/latest",
      "available": true
    },
    {
      "method": "POST",
      "path": "/v1/live/csfloat/listings",
      "available": true
    },
    {
      "method": "POST",
      "path": "/v1/sales/csfloat",
      "available": false,
      "plan": "scale"
    }
  ]
}
```

## Response fields

[AccountResponse](/docs/objects#accountresponse) fields:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `plan` | `string` | Yes | Allowed: `DEMO`, `developer`, `scale`, `enterprise`. The key's plan. A demo key's plan is `DEMO`. |
| `key` | `object` | Yes | The API key that made the request. |
| `limits` | `object` | Yes | Your account's request limits. |
| `live` | `Record<string, object>` | No | What's left of each live limit now, with the same keys as `limits.live_requests_per_minute`. Absent on a demo key. |
| `live_demo` | `object` | No | A demo key's live requests. Present only on a demo key. |
| `endpoints` | `object[]` | Yes | Every `/v1` endpoint, with each live operation as its own path. |

The sample response is shortened to three live operations and four endpoints. A real response lists every live limit and every endpoint.

## Response data

| Field | Meaning |
| --- | --- |
| `key.type` | `demo` for a free 2-day demo key, otherwise `paid`. |
| `key.expires_at` | When a demo key expires. `null` for a paid key. |
| `limits.requests_per_second` | Requests per second, shared by every key on your account. Live requests don't count toward it. |
| `limits.live_requests_per_minute` | Each live operation's per-minute limit, keyed by `<market>/<operation>`, such as `csfloat/listings`. `<market>/options` is the one limit that marketplace's `/options` paths share. Absent on a demo key. |
| `live.<key>.remaining` | Requests you can send now. |
| `live.<key>.resets_at` | When the limit is full again. Limits refill continuously. |
| `live_demo.limit` | Live requests a demo key gets in total. |
| `live_demo.remaining` | Live requests the demo key has left. |
| `live_demo.requests_per_minute` | Live requests a demo key can send per minute. |
| `endpoints[].method`, `endpoints[].path` | The endpoint's HTTP method and path. Each live operation is its own path. |
| `endpoints[].available` | Whether the key's plan includes the endpoint. A demo key with no live requests left still shows the live endpoints as available. |
| `endpoints[].plan` | The lowest plan that includes the endpoint. Present only when `available` is `false`. |

## Errors

The request returns `400 validation_error` with `details.code` set to `unexpected_query_parameters` when it has a query string, or to `unexpected_body` when it has a body.

Other errors are the [shared request errors](/docs/using-the-api#request-errors).
