Google Trends Autocomplete
DataBlue / Docs / Endpoint
POST/v1/data/google-trends/autocomplete

Google Trends Autocomplete

Return Google Trends topic autocomplete matches for a keyword. Use this stable endpoint to discover topic titles and topic IDs for trend-research workflows.

Execution Model

Live request

Runtime depends on endpoint, target, pagination, rendering mode, and active plan limits.

Credit Weight

Live catalog

Current weights are managed from the Data API Weights admin table and shown on pricing before use.

Parameters

NameTypeRequirementDescription
keywordstringREQUIREDTrends topic search term.
hlstringoptionalGoogle Trends locale.
timezonenumberoptionalTimezone offset in minutes.
num_resultsnumberoptionalMaximum topics to return (1-50).
timeout_msnumberoptionalProvider timeout in milliseconds (3000-60000).

Response Fields

FieldTypeDescription
successbooleanWhether the request completed successfully.
topicsarrayTopic rows with position, title, type, mid, and URL.
autocomplete_urlstringGoogle Trends autocomplete URL used.
time_takennumberAPI response time in seconds.

cURL Example

curl -X POST "https://api.datablue.dev/v1/data/google-trends/autocomplete" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "keyword": "lipstick",
  "hl": "en-IN",
  "timezone": -330,
  "num_results": 10
}'

System Responses

200 OK

Request processed successfully.

401 UNAUTHORIZED

Missing or invalid API key.

429 RATE LIMIT

System capacity exceeded.

500 SYSTEM FAILURE

Internal core exception.

EXAMPLE RESPONSE
{
  "success": true,
  "source": "google_trends",
  "operation": "autocomplete",
  "runtime": "http",
  "keyword": "lipstick",
  "hl": "en-IN",
  "timezone": -330,
  "total_results": 2,
  "time_taken": 0.52,
  "topics": [
    {
      "position": 1,
      "title": "Lipstick",
      "type": "Topic",
      "mid": "/m/02xry"
    },
    {
      "position": 2,
      "title": "Liquid lipstick",
      "type": "Topic",
      "mid": "/g/11b7x..."
    }
  ]
}