google-trends-api-client
Version:
An fully typed and easy to use client for the google trends api.
32 lines (31 loc) • 2.75 kB
TypeScript
import { GoogleTrendsApiRelatedQueryRankedTopic } from './methods/getRelatedTopics';
import { GoogleTrendsApiRelatedQueryRankedKeyword } from './methods/getRelatedQueries';
import { GoogleTrendsApiInterestOverTimeDatapoint } from './methods/getInterestOverTime';
import { GoogleTrendsApiExplorationWidget } from './methods/getExplorationWidgets';
export { CookiesCache } from './agent/cookies/common';
export * from './common';
export { GoogleTrendsApiInterestOverTimeDatapoint, GoogleTrendsApiRelatedQueryRankedKeyword, GoogleTrendsApiRelatedQueryRankedTopic, GoogleTrendsApiExplorationWidget, };
export declare const trends: {
getAutocompleteSuggestions: ({ keyword, hl, tz }: {
keyword: string;
} & import("./assertions/defineCommonGoogleTrendsApiParametersValue").CommonGoogleTrendsApiParameters, agentOptions?: import("./common").AgentOptions) => Promise<import("./common").GoogleTrendsApiTopic[]>;
getInterestOverTime: (args_0: import("./methods/getExplorationWidgets").CommonGoogleTrendsApiExplorationParamters & import("./assertions/defineCommonGoogleTrendsApiParametersValue").CommonGoogleTrendsApiParameters, args_1?: import("./common").AgentOptions | undefined) => Promise<GoogleTrendsApiInterestOverTimeDatapoint[]>;
getRelatedQueries: (args_0: import("./methods/getExplorationWidgets").CommonGoogleTrendsApiExplorationParamters & import("./assertions/defineCommonGoogleTrendsApiParametersValue").CommonGoogleTrendsApiParameters, args_1?: import("./common").AgentOptions | undefined) => Promise<{
top: GoogleTrendsApiRelatedQueryRankedKeyword[];
rising: GoogleTrendsApiRelatedQueryRankedKeyword[];
}>;
getRelatedTopics: (args_0: import("./methods/getExplorationWidgets").CommonGoogleTrendsApiExplorationParamters & import("./assertions/defineCommonGoogleTrendsApiParametersValue").CommonGoogleTrendsApiParameters, args_1?: import("./common").AgentOptions | undefined) => Promise<{
top: GoogleTrendsApiRelatedQueryRankedTopic[];
rising: GoogleTrendsApiRelatedQueryRankedTopic[];
}>;
getFromApiCall: (args: {
origin?: string | undefined;
path: string;
queryParams?: Record<string, string> | undefined;
pathParams?: Record<string, string> | undefined;
agentOptions?: import("./common").AgentOptions | undefined;
}) => Promise<string>;
getExplorationWidgets: ({ keywords, geo, time, category, property, hl, tz, }: import("./methods/getExplorationWidgets").CommonGoogleTrendsApiExplorationParamters & import("./assertions/defineCommonGoogleTrendsApiParametersValue").CommonGoogleTrendsApiParameters, agentOptions?: import("./common").AgentOptions) => Promise<{
widgets: GoogleTrendsApiExplorationWidget[];
}>;
};