-
Notifications
You must be signed in to change notification settings - Fork 4
/
yandex.ts
44 lines (39 loc) · 1.34 KB
/
yandex.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import type { BaseParameters } from "../types.ts";
export type YandexParameters = BaseParameters & {
/**
* Search Query
* Parameter defines the search query. You can use anything that you would use in a
* regular Yandex search.
*/
text: string;
/**
* Domain
* Parameter defines the Yandex domain to use. It defaults to `yandex.com`. Head to
* the [Yandex domains](https://serpapi.com/yandex-domains) for a full list of
* supported Yandex domains.
*/
yandex_domain?: string;
/**
* Language
* Parameter defines the language to use for the Yandex search. Head to the [Yandex
* languages](https://serpapi.com/yandex-languages) for a full list of supported
* Yandex languages.
*/
lang?: string;
/**
* Location
* ID of the country or region to search. Determines the rules for ranking
* documents. For example, if we pass the value `11316` in this parameter
* (Novosibirsk region), when generating search results, a formula is used that is
* defined for the Novosibirsk region. Head to the [Yandex
* locations](https://serpapi.com/yandex-locations) for a full list of supported
* Yandex locations.
* Supported only for `yandex.ru` and `yandex.com.tr` domains.
*/
lr?: string;
/**
* Page number
* Parameter defines page number. Pagination starts from 0.
*/
p?: string;
};