Getting the RSS feed upload link
Returns a link for uploading the RSS feed. The link is valid for 10 minutes after receiving it.
Request format
GET https://api.webmaster.yandex.net/v4/user/{user-id}/hosts/{host-id}/turbo/uploadAddress
? [mode=<string>]
user-id | User ID. To get the value, use the GET /v4/user operation. |
host-id | Site ID. Has the scheme:host:port format, where
For example: You can also get the site ID using the operation GET /user/{user-id}/hosts. |
user-id | User ID. To get the value, use the GET /v4/user operation. |
host-id | Site ID. Has the scheme:host:port format, where
For example: You can also get the site ID using the operation GET /user/{user-id}/hosts. |
mode | The RSS feed upload mode. Possible values:
Default value is PRODUCTION. |
mode | The RSS feed upload mode. Possible values:
Default value is PRODUCTION. |
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.
{
"valid_until": "YYYY-MM-DDThh:mm:ss±hh:mm",
"upload_address": "string"
}
<Data>
<valid_until>YYYY-MM-DDThh:mm:ss±hh:mm</valid_until>
<upload_address>string</upload_address>
</Data>
valid_until
The date and time until which the URL is available for download (10 minutes after the request).
upload_address
The link to create a task for the RSS feed upload.
Response codes
Code | Description |
---|---|
200 OK | The request is successfully completed. |
403 Forbidden |
|
404 Not Found |
|
Code | Description |
---|---|
200 OK | The request is successfully completed. |
403 Forbidden |
|
404 Not Found |
|
Example
Request:
curl -X GET \ 'https://api.webmaster.yandex.net/v4/user/12345678/hosts/https:example.com:443/turbo/uploadAddress?mode=PRODUCTION' \ -H 'Authorization: OAuth oauth_token'
Copied to clipboard
Response:
{
"valid_until": "2018-11-10T18:12:22.085+03:00",
"upload_address": "https://api.webmaster.yandex.net/v3.2/upload/turbo/yXOkhVGtFtUiZfRBJxIivnlHW90o5jrpBhFSjnGg_yMyg7tYc9sGsOtDSkaGQx-N_2i_2bQxgvUk1gbxreD_uA"
}