https://api.nexscope.ai/googleTrend/getTrendByKeysRun this API
Send a JSON request to execute this API and receive the documented response payload.
Endpoint
| Method | POST |
| Path | https://api.nexscope.ai/googleTrend/getTrendByKeys |
| Auth | Bearer API key |
| Content-Type | application/json |
Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | required | Keywords, must be in the language of the target country/region; maximum length is 100 characters. |
region | string | optional | Country code. Optional values: `US`, `GB`, `JP`, `CA`, `MX`, `DE`, `FR`, `IT`, `ES`. `NL`, `AU`, `SG`, `AE`, `BR`, `IN`, `TR`, `PL`, `SE`. Example: US |
dayRangeStart | string | optional | Time range start time; format is `YYYY-MM-DD`, starting in 2004. |
dayRangeEnd | string | optional | End of time range; format is `YYYY-MM-DD`, starting in 2004. |
Code example
{
"dayRangeEnd": "2025-01-01",
"dayRangeStart": "2024-01-01",
"keyword": "wireless charger",
"region": "US"
}Response example
Platform response envelope. code 0 indicates success or acceptance; data contains the business result.
{
"code": 0,
"cost": "-1",
"data": {},
"msg": null,
"time": "2026-01-01 00:00:00",
"traceId": null,
"ts": "0"
}Response fields
Response field reference (11 fields)
| Name | Type | Required | Description |
|---|---|---|---|
trendInfoForKeys | array | optional | Keyword trend information array. |
trendInfoForKeys[].keyword | string | optional | Keywords. |
trendInfoForKeys[].trendValues | array | optional | Array of trend values. |
trendInfoForKeys[].trendValues[].timeRange | string | optional | Time, in the format `yyyy-MM-dd`. |
trendInfoForKeys[].trendValues[].value | string | optional | Value, the normalized search popularity, ranges from 0–100. |
chartOption | object | optional | Chart rendering metadata. |
chartOption.type | string | optional | Data type. |
chartOption.fieldX | string | optional | X-axis field. |
chartOption.fieldY | array | optional | Y-axis field. |
chartOption.data | array | optional | data. |
costToken | integer | optional | Consume token. |
Responses
| Code | Description |
|---|---|
| 200 | HTTP request completed. Check JSON code; only 0 indicates business success or acceptance. |
| 400 | Request JSON or required API parameters are invalid. |
| 401 | API key is missing, invalid, or cannot be matched to a user. |
| 5xx | API execution or upstream service failed. |
Data source, freshness, and limitations
Source, freshness, coverage, rate limits, and estimation notes are not specified in this API definition unless they appear in the request or response field documentation above. Do not assume official marketplace data or real-time freshness when it is not explicitly documented.