100 free credits. No credit card required.Start building
Logo
Google Search logo
100 free credits. No credit card required

Google Search Keyword Volume API

Returns Google monthly search volume, cost per click, competition and a 12-month trend for up to 20 keywords in one country, one row per keyword.

GET /v1/google/keyword-volume

Last updated November 2026Maintained by the SocialCrawl team

When to use the Google Search Keyword Volume API

Use it to compare demand for a product across countries by calling it once per country with the same keywords.

From the API reference

Returns Google monthly search volume, cost per click, competition, and a 12-month trend for up to 20 keywords in one country. Response is { location, location_name, language, items }: each item carries keyword, search_volume (average monthly searches), cpc with its currency, competition (0 to 1) with competition_level, monthly_searches (the last 12 months, oldest first, as { year, month, search_volume }) and, where Google classifies it, search_intent. Use it to compare demand for a product across markets: call it once per country with the same keywords. You get one item per keyword you asked for, in your order. A keyword Google holds no volume for comes back with search_volume: null, never 0, so a null means unknown and a 0 means Google reports none. Every null row says why in null_reason: "withheld" means Google stopped publishing volume for the term (since December 2023 it withholds many health and other sensitive terms, such as "shingles" or "herniated disc"), and such a row carries last_reported ({ year, month, search_volume }, the last month Google published a figure) with an empty monthly_searches; "no_data" means Google holds no figure at all (very rare or unknown terms). For relative interest in a withheld term, use /v1/google_trends/explore, or /v1/naver/search-trend in Korea. When no keyword has current volume the call returns 404 and costs 0 credits; its message lists the last published figures. Volumes are Google's own rounded monthly averages and are refreshed monthly, so results are cached for 24 hours. Typical latency is 2 seconds. Priced at a flat 16 credits per call whatever the keyword count, so send all 20 at once.

Searching 69 platforms in parallel

·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
Google Search API

What can you do with the Keyword Volume API?

The Keyword Volume endpoint gives you structured Google Search data with computed fields in a single request. No scraping infrastructure to build or maintain.

Example Request

# GET /v1/google/keyword-volume: 16 credits per call. Cache hits are free and failed calls are refunded.
# Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
# --max-time 10: this endpoint's measured p99 latency x 1.5.
# --retry 3: retries timeouts, 429 and 5xx, honoring Retry-After.
# -o response.json keeps only the final attempt's body.
# One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
IDEMPOTENCY_KEY=$(od -An -N16 -tx1 /dev/urandom | tr -d ' \n')
curl -sS --max-time 10 --retry 3 -o response.json \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  "https://www.socialcrawl.dev/v1/google/keyword-volume?keywords=lip+gloss%2Clip+oil&location=GB" && cat response.json
# GET /v1/google/keyword-volume: 16 credits per call. Cache hits are free and failed calls are refunded.
# Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
import os
import random
import time
import uuid

import requests

API_KEY = os.environ.get("SOCIALCRAWL_API_KEY", "YOUR_API_KEY")
TIMEOUT_S = 10  # this endpoint's measured p99 latency x 1.5.
MAX_RETRIES = 3
URL = "https://www.socialcrawl.dev/v1/google/keyword-volume"


def backoff(attempt):
    # Exponential backoff with jitter: about 1 s, 2 s, then 4 s.
    return 2 ** attempt * (0.5 + random.random() / 2)


def socialcrawl(params):
    # One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
    idempotency_key = str(uuid.uuid4())
    for attempt in range(MAX_RETRIES + 1):
        try:
            res = requests.get(
                URL,
                params=params,
                headers={"x-api-key": API_KEY, "Idempotency-Key": idempotency_key},
                timeout=TIMEOUT_S,
            )
            body = res.json()
        except (requests.RequestException, ValueError):
            # A timeout, a dropped connection or a non-JSON gateway page: retry with the same key.
            if attempt == MAX_RETRIES:
                raise
            time.sleep(backoff(attempt))
            continue
        if body["success"]:
            return body
        error = body["error"]
        # Branch on error["type"], never on the message text.
        if error["type"] == "RESOURCE_NOT_FOUND":
            return None  # refunded: nothing to read
        retry_after = res.headers.get("Retry-After")
        # SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint: permanent.
        permanent = error["type"] == "SERVICE_UNAVAILABLE" and retry_after is None
        if not error.get("retryable") or permanent or attempt == MAX_RETRIES:
            raise RuntimeError(f"{error['type']}: {error['message']} (request_id {body['request_id']})")
        # Retry-After (seconds) wins; otherwise back off.
        time.sleep(float(retry_after) if retry_after else backoff(attempt))


params = {
    "keywords": "lip gloss,lip oil",
    "location": "GB",
}
body = socialcrawl(params)
if body is not None:
    print(body["data"])
// GET /v1/google/keyword-volume: 16 credits per call. Cache hits are free and failed calls are refunded.
// Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
const API_KEY = process.env.SOCIALCRAWL_API_KEY ?? "YOUR_API_KEY";
const TIMEOUT_MS = 10_000; // this endpoint's measured p99 latency x 1.5.
const MAX_RETRIES = 3;

type Page = { next_cursor: string | null; has_more: boolean };
type SocialCrawlResponse =
  | { success: true; data: any; pagination?: Page; credits_used: number; request_id: string }
  | { success: false; error: { type: string; message: string; retryable: boolean }; request_id: string };

const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
// Exponential backoff with jitter: about 1 s, 2 s, then 4 s.
const backoffMs = (attempt: number) => 2 ** attempt * 1000 * (0.5 + Math.random() / 2);

async function socialcrawl(url: URL) {
  // One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
  const idempotencyKey = crypto.randomUUID();
  for (let attempt = 0; ; attempt++) {
    let res: Response;
    let body: SocialCrawlResponse;
    try {
      res = await fetch(url, {
        headers: {
          "x-api-key": API_KEY,
          "Idempotency-Key": idempotencyKey,
        },
        signal: AbortSignal.timeout(TIMEOUT_MS),
      });
      body = (await res.json()) as SocialCrawlResponse;
    } catch (error) {
      // A timeout, a dropped connection or a non-JSON gateway page: retry with the same key.
      if (attempt >= MAX_RETRIES) throw error;
      await sleep(backoffMs(attempt));
      continue;
    }
    if (body.success) return body;
    // Branch on error.type, never on the message text.
    if (body.error.type === "RESOURCE_NOT_FOUND") return null; // refunded: nothing to read
    const retryAfter = res.headers.get("Retry-After");
    // SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint: permanent.
    const permanent = body.error.type === "SERVICE_UNAVAILABLE" && retryAfter === null;
    if (!body.error.retryable || permanent || attempt >= MAX_RETRIES) {
      throw new Error(`${body.error.type}: ${body.error.message} (request_id ${body.request_id})`);
    }
    // Retry-After (seconds) wins; otherwise back off.
    await sleep(retryAfter ? Number(retryAfter) * 1000 : backoffMs(attempt));
  }
}

const url = new URL("https://www.socialcrawl.dev/v1/google/keyword-volume");
url.searchParams.set("keywords", "lip gloss,lip oil");
url.searchParams.set("location", "GB");

const body = await socialcrawl(url);
if (body) console.log(body.data);

Parameters

ParameterRequiredDescription
keywordsYes1-20 comma-separated keywords (e.g. 'lip gloss,lip oil'). Each keyword may be up to 80 characters. Duplicates are ignored. More than 20 keywords, or a keyword over 80 characters, is rejected with a free 400 before the request is billed.
locationNoCountry as an ISO code ('US', 'GB', 'KR'), a full country name ('United Kingdom', 'South Korea') or a numeric location code ('2826'). Defaults to the United States. Volume is published for 94 countries; any other location is rejected with a free 400 naming the accepted forms.
languageNoLanguage code ('en', 'de', 'ko') the keywords are searched in. Defaults to the first language listed for the country: Germany is 'de' and Belgium is 'fr', but Vietnam, Indonesia, India, Malaysia, Pakistan, the Philippines, Hong Kong and Singapore default to 'en', so pass their local language (e.g. 'vi', 'id', 'hi') explicitly. A language the country does not hold (Germany in English) is rejected with a free 400 listing the ones it does.
Example Response

What does the Google Search Keyword Volume API return?

Every response follows one unified schema. Here is a real, unmodified response body, so you can see the exact fields you get back before spending a credit.

Example response
{
  "success": true,
  "platform": "google",
  "endpoint": "/v1/google/keyword-volume",
  "data": {
    "location": "US",
    "location_name": "United States",
    "language": "en",
    "items": [
      {
        "keyword": "hyperhidrosis",
        "search_volume": 110000,
        "cpc": 11.73,
        "currency": "USD",
        "competition": 0.21,
        "competition_level": "LOW",
        "monthly_searches": [
          {
            "year": 2025,
            "month": 9,
            "search_volume": 135000
          },
          {
            "year": 2025,
            "month": 10,
            "search_volume": 135000
          },
          {
            "year": 2025,
            "month": 11,
            "search_volume": 110000
          },
          {
            "year": 2025,
            "month": 12,
            "search_volume": 110000
          },
          {
            "year": 2026,
            "month": 1,
            "search_volume": 110000
          },
          {
            "year": 2026,
            "month": 2,
            "search_volume": 110000
          },
          {
            "year": 2026,
            "month": 3,
            "search_volume": 110000
          },
          {
            "year": 2026,
            "month": 4,
            "search_volume": 110000
          },
          {
            "year": 2026,
            "month": 5,
            "search_volume": 110000
          },
          {
            "year": 2026,
            "month": 6,
            "search_volume": 110000
          },
          {
            "year": 2026,
            "month": 7,
            "search_volume": 110000
          },
          {
            "year": 2026,
            "month": 8,
            "search_volume": 135000
          }
        ],
        "search_intent": "informational"
      },
      {
        "keyword": "shingles",
        "search_volume": null,
        "cpc": null,
        "currency": "USD",
        "competition": null,
        "competition_level": null,
        "monthly_searches": [],
        "search_intent": "informational",
        "null_reason": "withheld",
        "last_reported": {
          "year": 2023,
          "month": 11,
          "search_volume": 673000
        }
      },
      {
        "keyword": "herniated disc",
        "search_volume": null,
        "cpc": null,
        "currency": "USD",
        "competition": null,
        "competition_level": null,
        "monthly_searches": [],
        "search_intent": "informational",
        "null_reason": "withheld",
        "last_reported": {
          "year": 2023,
          "month": 12,
          "search_volume": 165000
        }
      }
    ],
    "dropped": 0
  },
  "credits_used": 16,
  "credits_remaining": 100,
  "request_id": "req-AkyBmdWENDrwA50W",
  "cached": false
}

Live sample illustrating the unified response shape. Field values reflect the record you query.

API Details

How does the Google Search Keyword Volume API work?

Send a GET request with your API key and get back clean, structured JSON in our unified schema. Supported computed fields are populated when the source provides the required inputs.

Method

GET

Response

JSON

Why SocialCrawl

Why use SocialCrawl for Google Search Keyword Volume data?

We handle the complexity of Google Search data extraction so you can focus on building. Unified schema, AI enrichment, and zero platform logic in your code.

Developer First

How do you scrape social media data in seconds?

The fastest social media scraping API for developers. Scrape profiles, posts, comments, and analytics from 69 platforms covering 10B+ monthly active users.

One schema, every platform

Query 69 platforms with identical response structures. Write your integration once.

Computed fields, not just scraped

When an endpoint supports these metrics and the source provides the required inputs, the normalized record includes engagement_rate, estimated_reach, content_category, and language. Ready to use.

See your data before you code

Visual Data Explorer. Paste any URL, get rich result cards, sortable tables, CSV export.

import requests

response = requests.get(
    'https://www.socialcrawl.dev/v1/tiktok/profile',
    params={'handle': 'charlidamelio'},
    headers={'x-api-key': 'sc_YOUR_API_KEY'}
)
data = response.json()
[ .JSON ]
{
  "success": true,
  "platform": "tiktok",
  "data": {
    "author": {
      "username": "charlidamelio",
      "followers": 152400000
    },
    "engagement": {
      "likes": 12400000000,
      "engagement_rate": 0.087
    },
    "metadata": {
      "language": "en",
      "content_category": "lifestyle"
    }
  }
}
+ 69 platforms
FAQ

Have a question? We got answers

Find answers to frequently asked questions about SocialCrawl's API, pricing, and capabilities.

Contact us
What does the keyword volume API return?
For up to 20 keywords in one country it returns search_volume (average monthly searches), cpc with its currency, competition (0 to 1) with competition_level, monthly_searches for the last 12 months oldest first, and search_intent where Google classifies it. You get one item per keyword, in your order.
How do I call the keyword volume API?
Send a GET request to /v1/google/keyword-volume with keywords (comma-separated, 1 to 20, each up to 80 characters) and an x-api-key header. Add location (an ISO code such as GB or KR, or a country name) and language ('en', 'de', 'ko') when you do not want the United States default.
How much does a keyword volume call cost?
A call costs 16 credits on the premium tier whatever the keyword count, so send all 20 at once. When no keyword has current volume the call returns 404 and costs 0 credits, and credits for failed or empty calls are refunded automatically.
Why is search_volume null for some keywords?
null means unknown, and 0 means Google reports none. Each null row carries null_reason: withheld means Google stopped publishing volume for the term (many health terms since December 2023), and the row then holds last_reported with the last published month. no_data means Google holds no figure at all.
How do I get demand for a withheld keyword?
Use /v1/google_trends/explore for relative interest over time, or /v1/naver/search-trend in Korea. Both give a trend curve instead of a monthly count.
How fresh is the volume, and can I compare countries?
Volumes are Google's own rounded monthly averages, refreshed monthly, so results are cached for 24 hours. To compare demand across markets, call once per country with the same keywords. Typical latency is 2 seconds.

Ask AI about SocialCrawl

Ready to scrape Google Search Keyword Volume data?

Get your API key and start pulling Google Search data in under 60 seconds.

Start for free

🤖 AI agent or LLM? Read this page as markdown