# Работа с Steam API

### Метод GetAccountRegistration()

{% code fullWidth="false" %}

```url
https://api.yrsproject.ru/public/service/steam/GetAccountRegistration/{steam_id}
```

{% endcode %}

{% tabs %}
{% tab title="Request" %}

<table><thead><tr><th width="147">Параметры</th><th>Описание</th></tr></thead><tbody><tr><td>steam_id</td><td>ID формата 64 от аккаунта Steam, начинается на 7656...</td></tr></tbody></table>
{% endtab %}

{% tab title="Response" %}

```json
{
  "status": "success",
  "response": {
    "SteamID": "76561199473785098",
    "AccountCreatedDaysAge": 695,
    "DateCreatedAccount": "2023-01-27 11:50:02"
  }
}
```

<table><thead><tr><th width="239">Параметры</th><th>Описание</th></tr></thead><tbody><tr><td>SteamID</td><td>SteamID игрока в формате 64</td></tr><tr><td>AccountCreatedDaysAge</td><td>Сколько дней назад был создан Steam аккаунт</td></tr><tr><td>DateCreatedAccount</td><td>Когда был создан Steam аккаунт</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

### Метод GetAccountAvatar()

```url
https://api.yrsproject.ru/public/service/steam/GetAccountAvatar/{steam_id}
```

{% tabs %}
{% tab title="Request" %}

<table><thead><tr><th width="147">Параметры</th><th>Описание</th></tr></thead><tbody><tr><td>steam_id</td><td>ID формата 64 от аккаунта Steam, начинается на 7656...</td></tr></tbody></table>
{% endtab %}

{% tab title="Response" %}
Пользователь получает аватарку аккаунта Steam
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.yrsproject.ru/documentation/methods/steam_api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
