compare_periods
Compare a keyword's Google Trends interest across two time ranges on one aligned scale, such as this year versus last year or this quarter versus the prior one.
Instructions
One term in two time ranges on the same scale: this year against last year, this quarter against the one before.
period: the range to look at (3m, 12m, 2026, 2026-03, or explicit dates; not hours). against: "year_before" (same dates a year earlier), "previous" (the range just before), or another range. The two curves are aligned by position, so day 10 of one sits beside day 10 of the other.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| geo | No | ||
| period | No | 12m | |
| points | No | ||
| against | No | year_before | |
| keyword | Yes | ||
| category | No | ||
| property | No | web |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |