Google Autocomplete API
👇 Check other Google Scrapers
- Google Search Result Scraper - get Google Search Results (SERP) as a structured data
- Google Maps Scraper - extract business data from Google Maps
What is Google Autocomplete?
Google Search Autocomplete is a feature that suggests possible search queries as users begin typing in the search bar. It aims to speed up the search process by predicting what the user might be searching for, based on common searches, trending topics, and the user’s own search history. These suggestions are generated in real-time and can vary depending on factors such as language, location, and current events. It helps users refine their search queries more quickly and efficiently.
Google Autocomplete API Overview
The Google Autocomplete API provides keyword suggestions based on user search queries entered in the search bar. These suggestions are tailored to the specific keyword, language and location. To ensure the relevance of the results, you can verify them by accessing the provided check_url in Incognito mode. Note that factors like user preferences, search history, and other personalized data are disregarded by our system, so the results reflect only non-personalized SERP data.
Input params
-
keyword (required): The search query for which you want to get autocomplete suggestions. You can enter up to 700 characters in the keyword field. (Any encoded characters (e.g., %##) will be decoded, with the + symbol converted to a space. To use the % symbol in your keyword, represent it as %25. Similarly, if you need to include a + symbol, use %2B in place of it)
-
language_code (optional, default value: "en"): search engine location code. Check available list of language codes here
-
location_code (optional, default value: 2840): search engine location code. Check available list of language codes here
Response example
{
"type": "autocomplete",
"items": [
{
"type": "autocomplete",
"relevance": 602,
"suggestion": "weather tomorrow",
"rank_absolute": 1,
"search_query_url": "https://www.google.com/search?q=weather+tomorrow"
},
{
"type": "autocomplete",
"relevance": 601,
"suggestion": "weather radar",
"rank_absolute": 2,
"search_query_url": "https://www.google.com/search?q=weather+radar"
},
{
"type": "autocomplete",
"relevance": 600,
"suggestion": "http://weather.com",
"rank_absolute": 3,
"search_query_url": "https://www.google.com/search?q=http%3A%2F%2Fweather.com"
}
//...
],
"keyword": "weather",
"datetime": "2024-11-04 21:47:25 +00:00",
"check_url": "https://google.com/search?q=weather&hl=en&gl=US&uule=w+CAIQIFISCQs2MuSEtepUEUK33kOSuTsc",
"se_domain": "google.com",
"items_count": 15,
"language_code": "en",
"location_code": 2840
}
Legal
This web scraping tool is designed to collect only publicly available data from websites, ensuring that no private information such as emails, phone numbers, or other sensitive details is accessed or gathered. It is important to note that the responsibility for how the collected data is used lies entirely with the user of the tool. Users must ensure that their actions comply with relevant laws, regulations. The owner of the Scraper does not control or influence the use of the data and is not liable for any misuse by the user.