Getting started

Instructions for uploading an RSS feed in Yandex.Webmaster.

Step 1. Getting OAuth token

To work with the Yandex.Turbo pages API, you need to get an access token, for example, using Yandex.Webmaster:
  1. Go to the Turbo pages → Data sources page.
  2. In the Upload via API block, click the Get token button.

You have to send the OAuth token in every request in the Authorization HTTP header.

Step 2. Getting the user ID

User ID required when calling the Yandex.Turbo pages API. It is passed in the user-id path parameter.

To get the ID, use the GET /v4/user operation.

curl -X GET \
  '' \
  -H 'Authorization: OAuth oauth_token'
Copied to clipboard

The user ID is returned in the user-id field.

Step 3. Getting the RSS feed upload link.

To get a upload link, use the GET /v4/user/{user-id} / hosts/{host-id} / turbo/uploaddress operation.
Attention. Before publishing Turbo pages, we recommend to validate the markup and the correctness of display in the DEBUG mode. The mode is set with the mode query parameter when receiving the upload URL. We also recommend reviewing the RSS feed restrictions.
curl -X GET \
  '' \
  -H 'Authorization: OAuth oauth_token'
Copied to clipboard

The download link is returned in the upload_address field. Use it for uploading the RSS feed.

Step 4. Uploading the RSS feed

To upload the RSS feed, send a POST request to the URL you received in the previous step. The request must specify the Content-Type: application/rss+xml header and send the RSS feed in the request body as a binary file or as a string.

curl -X POST \ \  -H 'Authorization: OAuth oauth_token' \  -H 'Content-Type: application/rss+xml' \  -d '<?xml version = "1.0" encoding = "UTF-8"?>
<rss version="2.0" xmlns:yandex="" xmlns:turbo="">
    <item turbo="true">
      <title>Page title</title>
            <h1>The Healthy breakfast restaurant</h1>
            <h2>Healthy and delicious</h2>
              <img src="">
              <a href="">Menu entry 1</a>
              <a href="">Menu entry  2</a>
          <p>What is a good way to start the day? Have a delicious and healthy breakfast!</p>
          <p>Come to us for breakfast. You can find photos of our dished <a href="#">on our site</a>.</p>
            <img src="">
            <figcaption>Omelette with herbs</figcaption>
          <p>Our menu is always packed with fresh, tasty and healthy options.</p>
          <p>See for yourself.(</p>
          <button formaction="tel:+7(123)456-78-90"
            data-primary="true">Reserve a table</button>
          <div data-block="widget-feedback" data-stick="false">
            <div data-block="chat" data-type="whatsapp" data-url=""></div>
            <div data-block="chat" data-type="telegram" data-url=""></div>
            <div data-block="chat" data-type="vkontakte" data-url=""></div>
            <div data-block="chat" data-type="facebook" data-url=""></div>
            <div data-block="chat" data-type="viber" data-url=""></div>
          <p>Our address: <a href="#">Nullam dolor massa, porta a nulla in, ultricies vehicula arcu.</a></p>
          <p>Photos —</p>
Copied to clipboard

The operation returns the ID of the RSS feed upload task in the task_id field. It is needed to check the upload status.

Step 5. Checking the upload status

To check the RSS feed upload status, pass the task ID in the task_id path parameter of the GET /v4/user/{user-id} / hosts/{host-id} / turbo/tasks/{task-id} operation.

The upload result contains:
  • Links where to the Turbo page examples.
  • Information about errors, if they occur.
Note. The RSS feed processing takes a long time.
curl -X GET \
  '' \
  -H 'Authorization: OAuth oauth_token'
Copied to clipboard