Web Search API, REST: ImageSearch.Search
HTTP request
POST https://searchapi.api.yandexcloud.kz/v2/image/search
Body parameters
{
"query": {
"searchType": "string",
"queryText": "string",
"familyMode": "string",
"page": "string",
"fixTypoMode": "string"
},
"imageSpec": {
"format": "string",
"size": "string",
"orientation": "string",
"color": "string"
},
"site": "string",
"docsOnPage": "string",
"folderId": "string",
"userAgent": "string"
}
|
Field |
Description |
|
query |
Required field. Search query. |
|
imageSpec |
Searching for images with a particular size, orientation, format or color. |
|
site |
string Searching for images on a particular website only. |
|
docsOnPage |
string (int64) Number of results per search result page. |
|
folderId |
string ID of the folder. |
|
userAgent |
string User-Agent request header value. |
SearchQuery
|
Field |
Description |
|
searchType |
enum (SearchType) Required field. Search type that determines the domain name that will be used for the search queries.
|
|
queryText |
string Required field. Search query text |
|
familyMode |
enum (FamilyMode) Rule for filtering search results and determines whether any documents should be excluded.
|
|
page |
string (int64) The number of a requested page with search results |
|
fixTypoMode |
enum (FixTypoMode) Typos autocorrections mode
|
ImageSpec
|
Field |
Description |
|
format |
enum (ImageFormat) Searching for images in a particular format.
|
|
size |
enum (ImageSize) Searching for images of a particular size.
|
|
orientation |
enum (ImageOrientation) Searching for images with a particular orientation.
|
|
color |
enum (ImageColor) Searching for images containing a particular color.
|
Response
HTTP Code: 200 - OK
{
"rawData": "string"
}
|
Field |
Description |
|
rawData |
string (bytes) Required field. Search results in XML format. |