The options for search.

interface SearchOptions {
    locale?: string;
    marketRegion?: string;
    offset?: number;
    region?: string;
    safeSearch?: SafeSearchType;
    time?: string;
    vqd?: string;
}

Properties

locale?: string

The locale(?) of the search. Defaults to "en-us".

marketRegion?: string

The market region(?) of the search. Defaults to "US".

offset?: number

The number to offset the results to.

region?: string

The region of the search. Defaults to "wt-wt" or all regions.

safeSearch?: SafeSearchType

The safe search type of the search.

time?: string

The time range of the searches, can be a SearchTimeType or a date range ("2021-03-16..2021-03-30")

vqd?: string

The string that acts like a key to a search. Set this if you made a search with the same query.