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.


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:

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:


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