Raw schema
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Поисковый запрос / Search query"
},
"category": {
"type": "string",
"enum": [
"general",
"news",
"it",
"science"
],
"description": "Категория / Category: general, news, it, science"
},
"timeRange": {
"type": "string",
"enum": [
"",
"day",
"week",
"month",
"year"
],
"description": "Свежесть / Recency: '', day, week, month, year"
},
"language": {
"type": "string",
"enum": [
"auto",
"ru",
"en"
],
"description": "Язык / Language: auto, ru, en"
},
"num": {
"type": "integer",
"minimum": 1,
"maximum": 30,
"description": "Сколько результатов (1–30) / How many results (1–30)"
},
"depth": {
"type": "string",
"enum": [
"flash",
"auto"
],
"description": "Глубина: auto (по умолчанию, больше движков и результатов) или flash (быстрее, узкая выдача — для одного факта). / Depth: auto (default, more engines and results) or flash (faster, narrow — for a single fact)."
},
"excerpts": {
"type": "boolean",
"description": "Забрать реальный текст топ-страниц под запрос (медленнее на пару секунд, но даёт готовый контент для ответа без доп. переходов). По умолчанию выкл. / Pull the actual text of the top pages for this query (a couple of seconds slower, but gives ready content without extra calls). Off by default."
},
"includeDomains": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 10,
"description": "Искать только на этих сайтах, вместе с поддоменами: [\"habr.com\", \"vc.ru\"]. До 10 доменов. / Search only these sites, including subdomains. Up to 10 domains."
},
"excludeDomains": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 10,
"description": "Исключить эти сайты и их поддомены: [\"pinterest.com\"]. До 10 доменов. / Exclude these sites and their subdomains. Up to 10 domains."
}
},
"required": [
"query"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}