Getting the user ID
Returns the user ID. It is necessary for calling the the Turbo pages API resources.
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
User ID.
Example
Request:
curl -X GET \ 'https://api.webmaster.yandex.net/v4/user' \ -H 'Authorization: OAuth oauth_token'
Copied to clipboard
Response:
{
"user_id": 12345678
}