Getting the user ID

Returns the user ID. It is necessary for calling the the Yandex.Turbo pages API resources.

  1. Request format
  2. Response format
  3. Example

Request format

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

Response format

The service returns data in either JSON (default) or XML format. To get the XML response, pass the HTTP header Accept: application/xml in the request.

{
  "user_id": int
}
user_id

User ID.

Example

Request:

curl -X GET \
  'https://api.webmaster.yandex.net/v4/user' \
  -H 'Authorization: OAuth oauth_token'

Response:

{
  "user_id": 12345678
}