> ## Documentation Index
> Fetch the complete documentation index at: https://api.csboard.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GET /v1/health — проверка доступности и свежести API CSBoard

> Проверьте, доступен ли API CSBoard и насколько устарел список цен. Работает без API-ключа — его безопасно опрашивать без аутентификации.

Эндпоинт health — это лёгкая проверка, которая подтверждает доступность API и сообщает, насколько устарел материализованный список цен. Он работает без API-ключа — кроме него без ключа доступен только [публичный фид цен](https://api.csboard.com/ru/api-reference/get-public-prices.md), — поэтому его безопасно опрашивать из систем мониторинга или использовать как проверку свежести при старте приложения перед аутентифицированными вызовами.

## Поля ответа

**status** `string` *required*

Всегда `"ok"`, когда сервис работает.

**groups** `integer` *required*

Количество групп товаров с ценами в текущем списке цен (одна группа на уникальную комбинацию `market_hash_name` + `wear` + `doppler_phase`).

**price\_list\_age\_seconds** `integer` *required*

Возраст материализованного списка цен в секундах. Используйте это значение как индикатор свежести — большое значение означает, что цены могут отставать.

## Пример запроса

```bash theme={null}
curl https://csboard.com/v1/health
```

## Пример ответа

```json theme={null}
{
  "status": "ok",
  "groups": 184213,
  "price_list_age_seconds": 42
}
```

## Коды ошибок

| HTTP-статус | Код | Значение |
| - | - | - |
| 429 | — | Превышен лимит на IP: эндпоинт работает без ключа, поэтому запросы считаются по IP-адресу. В теле нет поля `code`. Подождите время из заголовка `Retry-After`. |

> [!TIP]
>
> Опрашивайте этот эндпоинт из логики health-check или старта приложения перед аутентифицированными вызовами. Если `price_list_age_seconds` неожиданно велик (например, выше нескольких минут), считайте данные о ценах потенциально устаревшими.


## OpenAPI

````yaml GET /health
openapi: 3.1.0
info:
  title: CSBoard API
  version: 1.0.0
  description: >-
    Market data over the CSBoard marketplace — live listings, floats, stickers,
    minAsk prices, FX rates — plus opt-in buying straight from your balance.
    Free to read, key-gated, built for automation.
  contact:
    name: CSBoard
    url: https://csboard.com/docs
servers:
  - url: https://csboard.com/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Status
    description: Liveness and freshness probes.
  - name: Market data
    description: Read the live catalog, prices, and FX rates.
  - name: Trading
    description: Buy listings from your CSBoard balance. Opt-in, key-gated.
  - name: Instant Sell
    description: >-
      Sell CS2, Dota 2 and Rust items from any Steam inventory to the CSBoard
      network and get paid to your balance. Invite-only.
  - name: P2P
    description: >-
      List your own CS2 skins on the CSBoard P2P market. Free — any valid key,
      no balance requirement.
  - name: Account
    description: Your balance, settled funds, and trading status.
  - name: Webhooks
    description: Register an endpoint and receive signed order updates instead of polling.
paths:
  /health:
    get:
      tags:
        - Status
      summary: Liveness + freshness probe
      description: >-
        Liveness and price-list freshness probe. No key required — use it to
        check the API is up and the price list is fresh. One of two endpoints
        that work without authentication; the other is `GET /public/prices`.
      operationId: getHealth
      responses:
        '200':
          description: Service is up.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Health'
              example:
                status: ok
                groups: 184213
                price_list_age_seconds: 42
      security: []
components:
  schemas:
    Health:
      type: object
      properties:
        status:
          type: string
          example: ok
        groups:
          type: integer
          description: Count of priced item groups.
        price_list_age_seconds:
          type: integer
          description: Age of the materialized price list, in seconds (freshness).
      required:
        - status
        - groups
        - price_list_age_seconds
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Send your key as a Bearer token on every request: `Authorization: Bearer
        csb_pub_...`. Generate keys in your CSBoard profile. Calls made with a
        key are metered only by that key's own limits — there is no per-IP limit
        on top — and every answer carries `X-RateLimit-Limit`,
        `X-RateLimit-Remaining`, `X-RateLimit-Reset` and `X-RateLimit-Bucket`
        for the bucket the call spent. See [Rate limits](/rate-limits).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.