https://api.nexscope.ai/js/keywords/historical-search-volumeRun this API
Send a JSON request to execute this API and receive the documented response payload.
Endpoint
| Method | POST |
| Path | https://api.nexscope.ai/js/keywords/historical-search-volume |
| Auth | Bearer API key |
| Content-Type | application/json |
Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
marketplace | string | required | Target market code. Optional values: `us`, `uk`, `de`, `in`, `ca`, `fr`, `it`, `es`, `mx`, `jp` Example: us |
keyword | string | required | Keywords to be searched |
startDate | string | required | Start date (format: YYYY-MM-DD) |
endDate | string | required | End date (format: YYYY-MM-DD); maximum 366 days apart from `startDate` |
Code example
{
"endDate": "2026-03-31",
"keyword": "yoga mat",
"marketplace": "us",
"startDate": "2025-10-01"
}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 (6 fields)
| Name | Type | Required | Description |
|---|---|---|---|
costToken | integer | optional | Number of tokens consumed |
historicalSearchVolumeList | array | optional | List of historical search volume periods |
id | string | optional | Data period identification (market/keyword/date range) |
estimateStartDate | string | optional | Period start date (YYYY-MM-DD, starting point of the 7-day statistical period) |
estimateEndDate | string | optional | Period end date (YYYY-MM-DD, end of 7-day statistical period) |
type | string | optional | Resource type, fixed value `historical_keyword_search_volume` |
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.