← Back

Google Autocomplete API

webcrawler/google-autocomplete

The Google Autocomplete API delivers keyword suggestions based on search queries, customized by keyword, language, and location. It provides non-personalized results, ignoring user preferences and search history.

$3.00 / 1,000 requests

Google Autocomplete API API Javascript integration

Install dependency

npm i webcrawlerapi-js

How to get an access key?

Read Docs Access Key section to obtain a key.

Usage

import webcrawlerapi from "webcrawlerapi-js";

async function main() {
    const client = new webcrawlerapi.WebcrawlerClient(
    "YOUR API KEY HERE"
    )
    const response = await client.scrape({
        input: {
            "keyword": "daily",
            "language_code": "en",
            "location_code": "2840",
        },
        crawler_id: "webcrawler/google-autocomplete",
    })
    console.log(response)
}

main().catch(console.error);