Updating a site list using HTTP request

A search theme's website list can be programmed to update using a special POST request. After receiving this POST request, Yandex.Site Search automatically sends the updated theme for moderation.

Authorization

In order to update the site list for a theme using POST requests, enter the IP address or subnetwork of the servers' where the requests will be sent from in theme properties For example: 93.158.156.27/64.

Also enter the theme key. You can find its value on your search themes page. Please note: the key is regenerated when changing the IP address.

Forming a request

To update the list of sites for a given theme, send a POST request to the address http://site.yandex.ru/update_urls.xml. The request should contain the heading Content-Type: Content-Type:

Content-Type: application/x-www-form-urlencoded

The request should also contain the parameters:

key=<theme key>&id=<username>&category_id=<theme id>&urls=<urlencoded list of sites>

For example, if the key is b11f3e1d35a1a01cb009a19dcf8f259b4bcaaf33, the username is some_login, the theme ID is 43210123, and the site list is as follows:

some-site-000.com
some-site-001.com 
some-site-002.com 
some-site-003.com

then the request should look like this:

POST /update_urls.xml HTTP/1.1
Content-type: application/x-www-form-urlencoded
Host: site.yandex.ru
Content-Length: 174

key=b11f3e1d35a1a01cb009a19dcf8f259b4bcaaf33&id=some_login&category_id=43210123& 
urls=some-site-000.com%0Asome-site-001.com%0Asome-site-002.com%0Asome-site-003.com