Google Trends

Get Google Trends report

Get Google Trends interest over time, by region and related queries in one request.

GET/v1/google-trends/report
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
6
querystringrequiredquery

One search term, or a topic as `id:` followed by a Knowledge Graph id (`id:/m/02vqfm`). A single term may contain a comma; send it as one parameter value.

min 1 chars · max 100 chars

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})?$

timestringoptionalquery

Time range: `now 1-H`, `now 4-H`, `now 1-d`, `now 7-d`, `today 1-m`, `today 3-m`, `today 12-m`, `today 5-y`, `all`, or a custom `YYYY-MM-DD YYYY-MM-DD` range (hourly `YYYY-MM-DDTHH` is accepted).

max 64 chars

Response fields
49

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.

dataquery
string

The term of this result.

datatime
string

The time range of this result.

The interest-over-time series.

datatimeSeriesresolution
stringnullable

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

The series, oldest first.

datatimeSeriespoints[]time
stringnullable

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

datatimeSeriespoints[]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).

datatimeSeriespoints[]values[]
numberoptional

Whether each term has data at this point.

datatimeSeriespoints[]hasData[]
booleanoptional
datatimeSeriespoints[]isPartial
booleannullable

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

datatimeSeriespoints[]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.

datatimeSeriesaverages[]
numberoptional

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

datatimeSeriesnotes[]
stringoptional

The interest-by-region data.

dataregionsresolution
stringnullable

The resolution Google Trends used, e.g. `COUNTRY`, `REGION`, `DMA` or `CITY`.

Places, as Google Trends lists them. Rows with no data are kept when the term has data; a term with no data returns an empty list. City results carry at most 200 rows; DMA rows are prefixed with the requested state when the request names one, and keep the bare metro code for a national request because a national result carries no state.

dataregionsregions[]geo
stringnullable

Full place id, e.g. `US-CA` or `US-CA-807`; null for city rows, which carry coordinates instead.

dataregionsregions[]name
string

Place name, localised by language.

One value per term, relative to the peak inside this request.

dataregionsregions[]values[]
numberoptional

Whether each term has data in this place. Rows with no data are kept when the term has data somewhere.

dataregionsregions[]hasData[]
booleanoptional
dataregionsregions[]leadingTermIndex
integernullable

Index of the compared term leading this place; null when not sent.

Coordinates, sent for city results only; null otherwise.

dataregionsregions[]coordinateslat
number

Latitude.

dataregionsregions[]coordinateslng
number

Longitude.

The related-query lists.

Top related queries, at most 25 from Google Trends.

datarelatedQueriestop[]query
string

The related query text.

datarelatedQueriestop[]value
integernullable

Relative popularity, 0 to 100; null when not sent.

≥ 0 · ≤ 100

Rising related queries, at most 25 from Google Trends.

datarelatedQueriesrising[]query
string

The related query text.

How the query is rising.

datarelatedQueriesrising[]changepercent
numbernullable

Google Trends' numeric rise; null for a breakout.

datarelatedQueriesrising[]changebreakout
boolean

Whether Google Trends marked it as a breakout.

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/report?query=coffee" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Google Trends report.