Yandex Search API¶
Yandex Search API (the official paid Yandex Search API v2).
Unlike the yandex engine (which scrapes the public HTML interface and is prone to CAPTCHA blocking), this engine talks to the official, paid Yandex Cloud Search API. It requires a Yandex Cloud account, a folder id and an API key.
The API answers with a Base64-encoded XML document, which is decoded and parsed here.
Configuration¶
The engine is inactive by default because it needs credentials. To enable it,
set inactive: false and add your api_key and yandex_folder_id to
git://searx/settings.yml:
- name: yandex api
engine: yandex_api
shortcut: yda
categories: [general, web]
inactive: false
api_key: "" # Yandex Cloud API key (``Api-Key``)
yandex_folder_id: "" # Yandex Cloud folder id
# optional, see below:
yandex_default_language: en
- searx.engines.yandex_api.api_key: str = ''¶
Yandex Cloud API key, passed as
Authorization: Api-Key <api_key>.
- searx.engines.yandex_api.yandex_default_language: str = 'en'¶
Default query language. It selects the Yandex search domain (e.g. yandex.ru for
ru, yandex.com foren) and the language of the search-result notifications, but only as a fallback – a request whose own locale matcheslanguage_mapoverrides it. Must be one of its keys:ru,be,kk,uk,troren.