Timeframe: {
ALL_TIME: "all";
PAST_3_MONTHS: "today 3-m";
PAST_4_HOURS: "now 4-H";
PAST_5_YEARS: "today 5-y";
PAST_DAY: "now 1-d";
PAST_HOUR: "now 1-H";
PAST_MONTH: "today 1-m";
PAST_WEEK: "now 7-d";
PAST_YEAR: "today 12-m";
} = ...
Type Declaration
-
ReadonlyALL_TIME: "all"
-
ReadonlyPAST_3_MONTHS: "today 3-m"
-
ReadonlyPAST_4_HOURS: "now 4-H"
-
ReadonlyPAST_5_YEARS: "today 5-y"
-
ReadonlyPAST_DAY: "now 1-d"
-
ReadonlyPAST_HOUR: "now 1-H"
-
ReadonlyPAST_MONTH: "today 1-m"
-
ReadonlyPAST_WEEK: "now 7-d"
-
ReadonlyPAST_YEAR: "today 12-m"
Time ranges accepted by Google Trends.
Named values for the presets. A custom range is a plain string of two ISO dates,
"2023-01-01 2023-06-30", and every query method accepts one in place of a member.The range also decides the granularity Google returns: the hourly ranges come back in minutes, the daily ones hourly, and
ALL_TIMEmonthly. Ask for five years and you cannot see a spike that lasted an afternoon.