Skip to content

Guide

How to get Google Keyword Planner data without a Google Ads account

Search volume, competition, CPC bid ranges and 12-month trends from Google Keyword Planner over a simple API, without setting up a Google Ads account or developer token.

Published 2 December 2026

Google Keyword Planner is the source most SEO and PPC tools rely on for search volume and bid estimates. Using it directly means a Google Ads account with billing, and calling it from code means a Google Ads API developer token, an OAuth app and a manager account. If you only need the numbers, that is a lot of setup.

The Datafor google_ads_keyword_planner scraper calls the Google Ads API on your behalf. You send a keyword and get Keyword Planner's ideas and metrics back as JSON, with only a Datafor API key. Each run costs 1 credit, and new accounts get 50 free credits.

What you get back

For every keyword idea Google returns, the result contains:

  • avg_monthly_searches: the average monthly search volume.
  • competition (LOW, MEDIUM or HIGH) and competition_index (0 to 100).
  • low_top_of_page_bid and high_top_of_page_bid: the top-of-page bid range, in the currency shown in metadata.currency_code.
  • monthly_search_volumes: a month-by-month series with year, month and volume.

Google only returns a range for some keywords; the response marks those with volume_is_range.

Step 1: choose a location and language

Keyword Planner targets a geo constant and a language constant rather than country codes. Common ones:

  • United States: geo 2840, English: language 1000
  • Turkey: geo 2792, Turkish: language 1037

The defaults are Turkey and Turkish, so set both when you research another market.

Step 2: request keyword ideas

curl
curl -X POST https://api.datafor.dev/v1/run \
  -H "Content-Type: application/json" \
  -H "x-api-key: $DATAFOR_API_KEY" \
  -d '{
    "script_name": "google_ads_keyword_planner",
    "params": {
      "keyword": "web scraping api",
      "geo_target_constant": "2840",
      "language_constant": "1000"
    }
  }'

You can send several seeds in one run, separated by commas or new lines, and still pay 1 credit. Set keyword_plan_network to GOOGLE_SEARCH_AND_PARTNERS to include search partners, and include_adult_keywords to true if you need them.

Step 3: rank the ideas in Python

python
import os
import requests

response = requests.post(
    "https://api.datafor.dev/v1/run",
    headers={"x-api-key": os.environ["DATAFOR_API_KEY"]},
    json={
        "script_name": "google_ads_keyword_planner",
        "params": {
            "keyword": "web scraping api, serp api, url to markdown",
            "geo_target_constant": "2840",
            "language_constant": "1000",
        },
    },
    timeout=180,
)
response.raise_for_status()
result = response.json()["result"]

ideas = sorted(result["ideas"], key=lambda idea: idea["avg_monthly_searches"] or 0, reverse=True)
for idea in ideas[:20]:
    print(f'{idea["text"]:<40} {idea["avg_monthly_searches"]:>8} {idea["competition"]:<7} '
          f'{idea["low_top_of_page_bid"]}-{idea["high_top_of_page_bid"]} {result["metadata"]["currency_code"]}')

A practical first filter is high volume with LOW or MEDIUM competition. For SEO, also look at the trend: a series that is rising over the last 12 months is usually worth more than a flat one with the same average.

Find long-tail ideas with autocomplete

Keyword Planner groups similar searches and skips many long-tail phrases. Google's autocomplete shows what people actually type. The google_keyword_suggestor scraper expands a seed through autocomplete, one or two layers deep (depth 1 or 2), for a country and language (two-letter codes, Turkish by default). It returns suggestions without metrics, also for 1 credit.

python
suggestions = requests.post(
    "https://api.datafor.dev/v1/run",
    headers={"x-api-key": os.environ["DATAFOR_API_KEY"]},
    json={
        "script_name": "google_keyword_suggestor",
        "params": {"query": "web scraping api", "country": "us", "language": "en", "depth": 2},
    },
    timeout=180,
).json()["result"]

A common workflow is to collect suggestions first, then send the best ones back to google_ads_keyword_planner in batches to get their volume and bids.

Check who ranks today

Volume tells you demand; the search results tell you how hard a keyword is. The SERP API (google_serp, 10 credits per run) returns Google's organic results and shopping cards for a query, country and language, so you can see which pages rank before you decide to target a keyword.

Using it from an AI agent

All three scrapers are tools in the Datafor MCP server. Connected to Claude or Cursor, you can ask "Get US search volume and CPC for these 30 keywords and group them by intent" and the agent calls Keyword Planner for you.

Limits to know

  • The numbers are Google's Keyword Planner estimates, including its rounding and ranges.
  • Google may return fewer ideas for very narrow seeds; try a broader seed or several seeds in one run.
  • Failed runs are refunded automatically.

See the Keyword Planner API page for a live example and the API reference for every parameter.

← All guides