SpideyDataAPI Reference
API navigation Google Trends
Web Data APIGoogle Trends

Google Trends API

Collect Google Trends related queries with asynchronous jobs, then retrieve normalized top and rising queries through SpideyData's API.

On this page

Google Trends API endpoints

2

Find the task you need. Each endpoint includes its parameters, request example, and response reference.

Read Google Trends job status and results

Poll a job to retrieve normalized top and rising queries or its reported error.

Quick start

Submit one keyword and its filters. After 202 Accepted, poll the same job through waiting_retry until its status is completed or failed.

API base https://kieapi.com
curl -X POST "https://kieapi.com/v1/google-trends/related-queries" \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "keyword": "airdrop",
    "geo": "CN",
    "timeframe": "today 12-m",
    "category": 0,
    "property": "",
    "hl": "en-US",
    "tz": 420
  }'

curl -X GET "https://kieapi.com/v1/google-trends/jobs/gtjob_01j" \
  -H "Authorization: Bearer $SPIDER_API_KEY"

Authentication

Use a bearer token.

Team administrators manage API keys in Team Settings. Each key keeps its Team and billing scope when its creator leaves or switches Teams. Keys cannot manage members, billing or other keys. Public /v1 requests use Authorization: Bearer $SPIDER_API_KEY only; the Key's fixed Team is the payer. An optional X-Spider-Team-Id must match that Team or the request is denied. Creating, listing, rotating or revoking Keys through the product console (and other non-identity console business routes) requires X-Spider-Team-Id when the Team model is enabled; omitting it returns HTTP 409 team_context_required.

Response shape

Durable job

Queued, running, completed, or failed state with attempts and timestamps.

Related queries

Completed jobs return normalized top and rising query arrays.

Credits and errors

A completed job costs 20 Credits, including an empty result. Polling is free. On failure check error.retryable before trying again.