Adding RSS feed
Allows you to add an RSS feed URL to a domain.
Request format
POST https://api.webmaster.yandex.net/v4/user/{user_id}/hosts/{host}/content-feeds/add/
|
Type: |
|
Type: |
Example
JSON
XML
{
"url": "https://www.example.com/rss/feed.xml"
}
<Data>
<url>https://www.example.com/rss/feed.xml</url>
</Data>
Name | Required | Type | Description |
---|---|---|---|
url |
Yes | string |
The URL of the feed. Pass the login and password together with the URL where it is accessible. For example: https://yandex:WE9h4FfBml@example.com/feed.yml . |
Response format
Example
JSON
XML
{}
<?xml version="1.0" encoding="UTF-8"?>
<response>
</response>
Name |
Required |
Type |
Description |
|
Yes |
|
HTTP status code. |
Response codes
Code |
Reason |
Description |
200 |
OK |
The request is successful. |
400 |
|
The feed already exists for this domain. JSON
XML
|
400 |
|
The feed URL is invalid. JSON
XML
|
400 |
|
The domain has reached its maximum number of feeds. JSON
XML
|