Keyword suggestions

by DataForSEO

dataforseo/labs_google_keyword_suggestions_live

Expand one seed keyword into longer phrases that contain it.

Billed per
call
Price
Price: $0.0288
Provider
DataForSEO
Timeout
3 min

Overview

Takes a single seed phrase and returns longer keywords that include it, drawn from a keyword database rather than generated. Each suggestion arrives with its own demand and monetisation metrics: average monthly volume, a twelve-month history, advertiser competition as both a score and a level, average cost per click, and the bid range for top-of-page placement. Metrics for the seed itself can be included for comparison, and near-duplicate synonyms collapsed to core terms.

The seed phrase and one row per suggestion with its volume, competition, cost per click, and bid range.

Input

These go in the input object of the run request.

FieldTypeRequiredDescription
keywordstringYesThe seed phrase to expand.
location_codeintegerNoWhich market to report on; omit for every market on record.
language_codestringNoWhich language to report on; omit to use the market's dominant language.
limitintegerNoHow many rows to return.
Default: 100
Maximum: 1000
include_seed_keywordbooleanNoAlso return metrics for the seed phrase itself.
Default: false
include_serp_infobooleanNoAttach a summary of each keyword's results page.
Default: false

Requests up to 1 MB.

Example

Use your own API key and a saved idempotency key for each new job. Replace image or media placeholders with your own publicly reachable HTTPS URLs. Keep the same key and request body when recovering a timeout.

# Set once per job; reuse this key and the identical body after a timeout.
: "${AGENTSKY_IDEMPOTENCY_KEY:?Set a unique, saved key for this job}"
curl --fail-with-body https://gateway.agentsky.dev/v1/run \
  -H "authorization: Bearer $AGENTSKY_API_KEY" \
  -H "content-type: application/json" \
  -H "Idempotency-Key: $AGENTSKY_IDEMPOTENCY_KEY" \
  -d '{"provider":"dataforseo","endpoint":"labs_google_keyword_suggestions_live","input":{"keyword":"phone case","location_code":2840,"language_code":"en","limit":100}}'
# If status is READY/RUNNING, poll GET /v1/runs/{runId} with the same API key.

Pricing

$0.0288 per call using your plan when signed in. Reported usage is billed under your account plan. Read the final customer charge from price.amount.value after the run finishes. A RUNNING response is not the final bill.

Questions