View as PDF - Yandex API
View as PDF - Yandex API
View as PDF - Yandex API
- No tags were found...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
11<br />
Parameter<br />
Description<br />
Contains the following attributes:<br />
• mode — Grouping method. Possible values:<br />
• “flat” — Flat grouping. Each group contains a single document. P<strong>as</strong>sed with<br />
an empty value for the attr parameter (“" "”).<br />
• “deep” — Grouping by domain. Each group contains documents from a single<br />
domain. P<strong>as</strong>sed with the value “d” for the attr parameter.<br />
If the parameter is not defined, flat grouping is used.<br />
• attr — Utility attribute. Depends on the value of the mode attribute.<br />
• groups-on-page — Maximum number of groups that can be returned per page<br />
of search results. Acceptable values — from 1 to 100.<br />
• docs-in-group — Maximum number of documents that can be returned per group.<br />
Acceptable values — from 1 to 3.<br />
Tip:<br />
If necessary, use the XML feed validator in the <strong>Yandex</strong>.Webm<strong>as</strong>ter service. Detailed information about<br />
validation is provided in the appendix.<br />
Sample POST request<br />
The request and request URL shown below return the third page of search results for the query “” for the user “xmlsearch-user”.<br />
Results are sorted by time when the document w<strong>as</strong> changed. Search type: Russian (yandex.ru). Results<br />
are grouped by domain. Each group contains three documents, and ten groups can be returned per page. The maximum<br />
number of p<strong>as</strong>sages per document is two. The service returns an XML file in UTF-8 encoding.<br />
Request URL:<br />
http://xmlsearch.yandex.ru/xmlsearchuser=xml-searchuser&key=03.44583456:c876e1b098gh65khg834ggg1jk4ll9j8<br />
Request body:<br />
<br />
<br />
%3Ctable%3E<br />
tm<br />
2<br />
2<br />
<br />
<br />
<br />
<br />
Response format<br />
In response to the search request, <strong>Yandex</strong>.XML returns an XML file in UTF-8 encoding that contains the search<br />
results.<br />
<strong>Yandex</strong>.XML<br />
Developer's guide