Google Trends

Get Google Trends interest over time

Get Google Trends search interest over time for one to five terms.

GET/v1/google-trends/interest-over-time
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
6
queryarrayrequiredquery

One to five search terms, comma-separated or repeated when a term contains a comma. A topic is `id:` plus a Knowledge Graph id (`id:/m/02vqfm`), as the suggestions endpoint returns it.

geooptionalquery

Place: a country code (`US`, `DE`), a subdivision (`US-CA`, `DE-BY`) or an empty string for worldwide. Lowercase input is accepted and normalised to uppercase. Default: `US`.

categoryintegeroptionalquery

Category id from the categories endpoint. `0` (the default) means all categories.

≥ 0 · ≤ 9999999

sourcestringoptionalquery

Property to search: `web` (default), `images`, `news`, `youtube` or `shopping`.

one of: web, images, news, youtube, shopping

languagestringoptionalquery

Interface language, as Google calls `hl` (`en-US`, `de`, `ja`, `ar`). It localises names, dates and type text; it does not translate the queries.

pattern: ^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})?$

timearrayoptionalquery

One or two ranges for one term; two must differ. Named `now 1-H`/`4-H`/`1-d`/`7-d`, `today 1-m`/`3-m`/`12-m`/`5-y`, `all`; custom `YYYY-MM-DD YYYY-MM-DD`; named pairs must match in length. Default: `today 12-m`.

Response fields
28

Endpoint-specific response payload.

datalookupStatus
string

`found` when the answer has data; `no_data` when it has none.

one of: found, no_data

datageo
string

The geo of this result; an empty string is worldwide.

datacategory
integer

The category of this result; 0 is all categories.

datasource
string

The property that was searched.

one of: web, images, news, youtube, shopping

datalanguage
string

The interface language.

The terms of this result, as given in the request (including an `id:` marker for a topic).

dataqueries[]
stringoptional

The time range, or the two ranges, of this result.

datatimes[]
stringoptional
dataresolution
stringnullable

The granularity Google Trends chose, e.g. `MINUTE`, `HOUR`, `DAY`, `WEEK`, `MONTH`.

The series, oldest first.

datapoints[]time
stringnullable

The point's time, ISO 8601 UTC; null when the series carries no time.

datapoints[]label
stringnullable

Localised axis label, as written (including its thin spaces and dashes).

One value per term, relative to the peak inside this request (0 to 100).

datapoints[]values[]
numberoptional

Whether each term has data at this point.

datapoints[]hasData[]
booleanoptional
datapoints[]isPartial
booleannullable

Whether the point is partial: false normally, true for the last point of a live range.

datapoints[]period
integernullable

In a two-period comparison, which range this point belongs to (0 or 1); null for one range.

≥ 0 · ≤ 1

One average per term, or one per period in a two-period comparison; empty when Google Trends has none.

dataaverages[]
numberoptional

Google Trends' own data-change notes for the series; empty when it sent none.

datanotes[]
stringoptional

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/google-trends/interest-over-time?query=coffee" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Google Trends interest over time.