---
metadata:
  - name: generator
    content: Diplodoc Platform v5.55.2
alternate:
  - https://www.yandex.ru/dev/webmaster/doc/en/reference/user.md
  - https://www.yandex.ru/dev/webmaster/doc/ru/reference/user.md
  - href: https://www.yandex.ru/dev/webmaster/doc/en/reference/user.md
    type: text/markdown
    title: Markdown version
  - href: https://www.yandex.ru/dev/webmaster/doc/en/llms.txt
    type: text/markdown
    title: llms.txt
keywords: User ID.
---
> **Documentation Index:** Fetch the complete configuration index at https://www.yandex.ru/dev/webmaster/doc/en/llms.txt


# Getting the user ID

Returns the user ID. This ID is required for calling any API resources.

## Request format


```
GET https://api.webmaster.yandex.net/v4/user
```

## Response format

### Example

>
> {% list tabs %}
> 
> - JSON
> 
>   
>   ```javascript
>   {
>     "user_id": 1
>   }
>   ```
>   
> 
> - XML
> 
>   
>   ```xml
>   <Data>
>       <[user_id](*user_id)>1</user_id>
>   </Data>
>   ```
> 
> {% endlist %}
> 
> #|
> || **Parameter** | **Description** ||
> || `user_id` | User ID. ||
> |#

### Related information

- [Error codes and statuses](https://www.yandex.ru/dev/webmaster/doc/en/reference/errors.md)




[*user_id]: **Description**

User ID.