Search APIs
Loading…
← API Store
Search & SEO

Google

Google

Google related searches and questions

GET /google/v1/keywords
Test this endpoint

Every response includes credits_used: the credits this call cost.

Each call costs 2 credits; failed calls are free. Run it in the console playground to see a live result.

Parameters

NameTypeDescription
qrequiredstringSearch query (also accepted as query or keyword). Example: coffee machine
countrystringResults for this country (Google gl, and the location defaults to it). Two-letter code. Example: us
locationstringSearch as if from this place, e.g. `Austin,Texas,United States` (Google uule). Default: the country.
languagestringInterface language (Google hl), e.g. en, de, pt-BR. Example: en
lrstringOnly results in these languages, e.g. `en` or `en|de`.
crstringOnly results from these countries, e.g. `US` or `US|GB`.
timestringOnly results from the past hour, day, week, month or year; `day_3` = past 3 days.
date_fromstringOnly results from this date (YYYY-MM-DD).
date_tostringOnly results up to this date (YYYY-MM-DD).
sortstring`date` sorts newest first (news).
tbsstringRaw Google tbs filter, combined with the options above.
google_domainstringGoogle domain, e.g. google.co.uk.
safestringSafeSearch: on or off.
autocorrectstring0 searches the query exactly as typed (no spelling correction).
filterstring0 also shows near-duplicate results.
sitestringOnly these sites, comma-separated (site:).
exclude_sitesstringLeave these sites out, comma-separated (-site:).
filetypestringOnly this file type, e.g. pdf.
devicestringdesktop (default) or mobile results.

Every endpoint also takes: raw、fields、fresh、output、records

{
  "cached": false,
  "credits_used": 2,
  "people_also_ask": [
    "coffee machine",
    "What is the best coffee machine for home use?",
    "… 3 more"
  ],
  "people_also_ask_detail": [
    {
      "answer": null,
      "href": null,
      "question": "coffee machine"
    },
    {
      "answer": null,
      "href": null,
      "question": "What is the best coffee machine for home use?"
    },
    "… 3 more"
  ],
  "query": "coffee machine",
  "related_searches": [
    "Coffee Machine Nespresso",
    "Coffee machine commercial",
    "… 16 more"
  ],
  "search_parameters": {
    "autocorrect": true,
    "country": "us",
    "cr": null,
    "device": "desktop",
    "filter": true,
    "google_domain": "google.com",
    "language": "en",
    "limit": 10,
    "location": "United States",
    "lr": null,
    "q": "coffee machine",
    "safe": null,
    "start": 0,
    "tbs": null,
    "type": "web"
  },
  "serp_error": null,
  "spelling": null,
  "suggestions": [
    "coffee machine",
    "coffee machine with grinder",
    "… 8 more"
  ],
  "total": null
}
Response fields (34)

Field paths and types observed in the sample response; the live response is authoritative.

$object
$.cachedboolean
$.credits_usedinteger
$.people_also_askarray
$.people_also_ask[]string
$.people_also_ask_detailarray
$.people_also_ask_detail[]object | string
$.people_also_ask_detail[].answernull
$.people_also_ask_detail[].hrefnull
$.people_also_ask_detail[].questionstring
$.querystring
$.related_searchesarray
$.related_searches[]string
$.search_parametersobject
$.search_parameters.autocorrectboolean
$.search_parameters.countrystring
$.search_parameters.crnull
$.search_parameters.devicestring
$.search_parameters.filterboolean
$.search_parameters.google_domainstring
$.search_parameters.languagestring
$.search_parameters.limitinteger
$.search_parameters.locationstring
$.search_parameters.lrnull
$.search_parameters.qstring
$.search_parameters.safenull
$.search_parameters.startinteger
$.search_parameters.tbsnull
$.search_parameters.typestring
$.serp_errornull
$.spellingnull
$.suggestionsarray
$.suggestions[]string
$.totalnull