Docs / API reference

POST/v1/data/google/keyword-suggestions

Google Keyword Suggestions

Return Google autocomplete suggestions for a seed keyword.

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.

Google Keyword Suggestions Endpoint

Return Google autocomplete suggestions for a seed keyword.

Getting Started

Send your API key as a bearer token. Start with the smallest request below.

Run Google Keyword Suggestions

Send the smallest useful request and read the structured response.

curl -X POST "https://api.datablue.dev/v1/data/google/keyword-suggestions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "keyword": "kiro beauty",
  "country": "in",
  "language": "en",
  "num_results": 10
}'
Example response
{
  "success": true,
  "source": "google",
  "operation": "keyword_suggestions",
  "keyword": "kiro beauty",
  "country": "in",
  "language": "en",
  "client": "firefox",
  "total_results": 3,
  "time_taken": 0.38,
  "suggestions": [
    {
      "position": 1,
      "keyword": "kiro beauty lipstick",
      "relevance": 900
    },
    {
      "position": 2,
      "keyword": "kiro beauty kajal",
      "relevance": 810
    }
  ]
}

Options

Query and Target

Set the search term, identifier, or source URL that defines the request.

curl -X POST "https://api.datablue.dev/v1/data/google/keyword-suggestions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "keyword": "web scraping",
  "country": "in",
  "language": "en",
  "num_results": 10
}'
Example response
{
  "success": true,
  "source": "google",
  "operation": "keyword_suggestions",
  "keyword": "kiro beauty",
  "country": "in",
  "language": "en",
  "client": "firefox",
  "total_results": 3,
  "time_taken": 0.38,
  "suggestions": [
    {
      "position": 1,
      "keyword": "kiro beauty lipstick",
      "relevance": 900
    }
  ]
}

Results and Pagination

Control how many records or pages are returned.

curl -X POST "https://api.datablue.dev/v1/data/google/keyword-suggestions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "keyword": "kiro beauty",
  "country": "in",
  "language": "en",
  "num_results": 10
}'
Example response
{
  "success": true,
  "source": "google",
  "operation": "keyword_suggestions",
  "keyword": "kiro beauty",
  "country": "in",
  "language": "en",
  "client": "firefox",
  "total_results": 3,
  "time_taken": 0.38,
  "suggestions": [
    {
      "position": 1,
      "keyword": "kiro beauty lipstick",
      "relevance": 900
    }
  ]
}

Location and Language

Localize results with country, language, coordinates, or delivery-location fields.

curl -X POST "https://api.datablue.dev/v1/data/google/keyword-suggestions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "keyword": "kiro beauty",
  "country": "us",
  "language": "en",
  "num_results": 10
}'
Example response
{
  "success": true,
  "source": "google",
  "operation": "keyword_suggestions",
  "keyword": "kiro beauty",
  "country": "in",
  "language": "en",
  "client": "firefox",
  "total_results": 3,
  "time_taken": 0.38,
  "suggestions": [
    {
      "position": 1,
      "keyword": "kiro beauty lipstick",
      "relevance": 900
    }
  ]
}

Request Controls

Set device, timeout, and request-specific controls.

curl -X POST "https://api.datablue.dev/v1/data/google/keyword-suggestions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "keyword": "kiro beauty",
  "country": "in",
  "language": "en",
  "num_results": 10,
  "client": "firefox",
  "timeout_ms": 20000
}'
Example response
{
  "success": true,
  "source": "google",
  "operation": "keyword_suggestions",
  "keyword": "kiro beauty",
  "country": "in",
  "language": "en",
  "client": "firefox",
  "total_results": 3,
  "time_taken": 0.38,
  "suggestions": [
    {
      "position": 1,
      "keyword": "kiro beauty lipstick",
      "relevance": 900
    }
  ]
}

Response

Read success first, then consume the endpoint-specific records and pagination fields shown below.

Error Handling

Handle 401 for authentication, 422 for invalid input, 429 for limits, and retry only transient failures.

Parameters

NameTypeRequirementDescription
keywordstringRequiredSeed keyword.
countrystringOptionalTwo-letter country code.
languagestringOptionalGoogle UI language code.
clientstringOptionalGoogle suggest client.
num_resultsnumberOptionalMaximum suggestions to return (1-50).
timeout_msnumberOptionalProvider timeout in milliseconds (3000-60000).

Response fields

FieldTypeDescription
successbooleanWhether the request completed successfully.
suggestionsarraySuggestions with position, keyword, relevance, and suggestion_type when available.
time_takennumberAPI response time in seconds.

Request and response

curl -X POST "https://api.datablue.dev/v1/data/google/keyword-suggestions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "keyword": "kiro beauty",
  "country": "in",
  "language": "en",
  "num_results": 10
}'
Example response
{
  "success": true,
  "source": "google",
  "operation": "keyword_suggestions",
  "keyword": "kiro beauty",
  "country": "in",
  "language": "en",
  "client": "firefox",
  "total_results": 3,
  "time_taken": 0.38,
  "suggestions": [
    {
      "position": 1,
      "keyword": "kiro beauty lipstick",
      "relevance": 900
    },
    {
      "position": 2,
      "keyword": "kiro beauty kajal",
      "relevance": 810
    }
  ]
}