zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
On this page
  • Playground
  • Code examples
  • Full reference
  • Related APIs
Autocomplete/Google Autocomplete
Logo Google Autocomplete

Google Autocomplete

Google's suggestion lists across five surfaces — web, YouTube, Images, local and Scholar. The same endpoint returns a different universe per surface.

Endpoints
6
Requests
1.8k
Updated
2 months ago
For LLMs
llms.txt
Endpoint health22 hours ago
  • webpassing, 0.1s
  • youtubepassing, 0.1s
  • imagespassing, 0.1s
  • localpassing, 0.1s
  • scholarpassing, 1.3s
+ 1 more endpointShow less
  • expandpassing, 10.8s
6/6 passingdaily 01:00 WIB

Playground

6 endpoints
GET/v1/autocomplete:google/web10m cache4 paramschecking key…
Parameters
qstringrequired

Seed text to complete

langstring

UI language, two letters. Default id

regionstring

Country bias, two letters. Default ID

countnumber

Cap the list. Default: everything the upstream returns

·
Response
EXAMPLE
{
  "count": 15,
  "items": [
    {
      "text": "cara membuat cv",
      "relevance": 601
    },
    {
      "text": "cara membuat npwp online",
      "relevance": 600
    },
    {
      "text": "cara membuat cv lamaran kerja",
      "relevance": 562
    },
    {
      "text": "cara membuat email baru",
      "relevance": 561
    },
    {
      "text": "cara membuat npwp",
      "relevance": 560
    },
    {
      "text": "cara membuat daftar isi otomatis",
      "relevance": 559
    },
    {
      "text": "cara membuat martabak manis",
      "relevance": 558
    },
    {
      "text": "cara membuat cireng",
      "relevance": 557
    }
  ],
  "query": "cara membuat",
  "locale": "id-ID",
  "surface": "web",
  "provider": "google"
}

Code examples

Web
zpi-sdkrecommended
// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";

const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });

const data = await client.run("autocomplete:google", "web", {
  "q": "cara membuat",
  "lang": "id",
  "region": "ID",
  "count": 10
});
console.log(data);
Full SDK reference →
request.sh
curl -X GET "https://api.zpi.web.id/v1/autocomplete:google/web?q=cara+membuat&lang=id&region=ID&count=10" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Full reference

6 endpoints · plain text
GETWeb/v1/autocomplete:google/webWeb search autocomplete, with relevance scores.

Parameters

qstringrequired
Seed text to complete
langstringoptional
UI language, two letters. Default id
regionstringoptional
Country bias, two letters. Default ID
countnumberoptional
Cap the list. Default: everything the upstream returns

Request

curl -X GET "https://api.zpi.web.id/v1/autocomplete:google/web?q=cara+membuat&lang=id&region=ID&count=10" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "count": 15,
  "items": [
    {
      "text": "cara membuat cv",
      "relevance": 601
    },
    {
      "text": "cara membuat npwp online",
      "relevance": 600
    },
    {
      "text": "cara membuat cv lamaran kerja",
      "relevance": 562
    },
    {
      "text": "cara membuat email baru",
      "relevance": 561
    },
    {
      "text": "cara membuat npwp",
      "relevance": 560
    },
    {
      "text": "cara membuat daftar isi otomatis",
      "relevance": 559
    },
    {
      "text": "cara membuat martabak manis",
      "relevance": 558
    },
    {
      "text": "cara membuat cireng",
      "relevance": 557
    }
  ],
  "query": "cara membuat",
  "locale": "id-ID",
  "surface": "web",
  "provider": "google"
}
GETYouTube/v1/autocomplete:google/youtubeVideo search autocomplete.

Parameters

qstringrequired
Seed text to complete
langstringoptional
UI language, two letters. Default id
countnumberoptional
Cap the list. Default: everything the upstream returns

Request

curl -X GET "https://api.zpi.web.id/v1/autocomplete:google/youtube?q=cara+membuat&lang=id&count=10" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "count": 14,
  "items": [
    {
      "text": "cara membuat layangan"
    },
    {
      "text": "cara membuat daftar isi otomatis word"
    },
    {
      "text": "cara membuat donat"
    },
    {
      "text": "cara membuat slime"
    },
    {
      "text": "cara membuat cireng"
    },
    {
      "text": "cara membuat bolu pisang"
    },
    {
      "text": "cara membuat pesawat dari kertas"
    },
    {
      "text": "cara membuat cilok"
    }
  ],
  "query": "cara membuat",
  "locale": "id",
  "surface": "youtube",
  "provider": "google"
}
GETImages/v1/autocomplete:google/imagesImage search autocomplete.

Parameters

qstringrequired
Seed text to complete
langstringoptional
UI language, two letters. Default id
countnumberoptional
Cap the list. Default: everything the upstream returns

Request

curl -X GET "https://api.zpi.web.id/v1/autocomplete:google/images?q=kucing&lang=id&count=10" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "count": 10,
  "items": [
    {
      "text": "kucing"
    },
    {
      "text": "kucing persia",
      "highlighted": "kucing<b> persia</b>"
    },
    {
      "text": "kucing lucu",
      "highlighted": "kucing<b> lucu</b>"
    },
    {
      "text": "kucing anggora",
      "highlighted": "kucing<b> anggora</b>"
    },
    {
      "text": "kucing munchkin",
      "highlighted": "kucing<b> munchkin</b>"
    },
    {
      "text": "kucing hutan",
      "highlighted": "kucing<b> hutan</b>"
    },
    {
      "text": "kucing bengal",
      "highlighted": "kucing<b> bengal</b>"
    },
    {
      "text": "kucing siam",
      "highlighted": "kucing<b> siam</b>"
    }
  ],
  "query": "kucing",
  "locale": "id",
  "surface": "images",
  "provider": "google"
}
GETLocal/v1/autocomplete:google/localPlaces and local search autocomplete.

Parameters

qstringrequired
Seed text to complete
langstringoptional
UI language, two letters. Default id
countnumberoptional
Cap the list. Default: everything the upstream returns

Request

curl -X GET "https://api.zpi.web.id/v1/autocomplete:google/local?q=restoran&lang=id&count=10" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "count": 10,
  "items": [
    {
      "text": "restoran jakarta",
      "highlighted": "restoran<b> jakarta</b>"
    },
    {
      "text": "restoran jakarta selatan",
      "highlighted": "restoran<b> jakarta selatan</b>"
    },
    {
      "text": "restoran terdekat",
      "highlighted": "restoran<b> terdekat</b>"
    },
    {
      "text": "restoran"
    },
    {
      "text": "restoran terdekat dari lokasi saya",
      "highlighted": "restoran<b> terdekat dari lokasi saya</b>"
    },
    {
      "text": "restoran jakarta timur",
      "highlighted": "restoran<b> jakarta timur</b>"
    },
    {
      "text": "restoran kelapa gading",
      "highlighted": "restoran<b> kelapa gading</b>"
    },
    {
      "text": "restoran di grand indonesia",
      "highlighted": "restoran<b> di grand indonesia</b>"
    }
  ],
  "query": "restoran",
  "locale": "id",
  "surface": "local",
  "provider": "google"
}
GETScholar/v1/autocomplete:google/scholarAcademic search autocomplete.

Parameters

qstringrequired
Seed text to complete
langstringoptional
UI language, two letters. Default id
countnumberoptional
Cap the list. Default: everything the upstream returns

Request

curl -X GET "https://api.zpi.web.id/v1/autocomplete:google/scholar?q=machine+learning&lang=id&count=10" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "count": 10,
  "items": [
    {
      "text": "machine learning algorithms"
    },
    {
      "text": "machine learning approach"
    },
    {
      "text": "machine learning techniques"
    },
    {
      "text": "machine learning models"
    },
    {
      "text": "machine learning methods"
    },
    {
      "text": "machine learning applications"
    },
    {
      "text": "machine learning review"
    },
    {
      "text": "machine learning classification"
    }
  ],
  "query": "machine learning",
  "locale": "id",
  "surface": "scholar",
  "provider": "google"
}
GETExpand/v1/autocomplete:google/expandExpand one seed into the many real queries people type — the seed with every letter, question word and preposition appended, deduplicated.

Parameters

qstringrequired
Seed to expand
surfaceenumoptional
Which Google suggestion universe to expand. Default web Values: web, youtube, images, local, scholar.
modifiersenumoptional
Which modifier sets to append. Default all Values: all, alphabet, questions, prepositions, digits.
langenumoptional
Language for the question and preposition sets. Default id Values: id, en.
countnumberoptional
Cap the returned list. Default: every unique query found

Request

curl -X GET "https://api.zpi.web.id/v1/autocomplete:google/expand?q=cara+membuat&surface=web&modifiers=all&lang=id&count=200" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "seed": "cara membuat",
  "count": 558,
  "items": [
    {
      "via": "alphabet",
      "text": "cara membuat akun google"
    },
    {
      "via": "alphabet",
      "text": "cara membuat akun"
    },
    {
      "via": "alphabet",
      "text": "cara membuat akun spmb"
    },
    {
      "via": "alphabet",
      "text": "cara membuat akun google baru"
    },
    {
      "via": "alphabet",
      "text": "cara membuat anak"
    },
    {
      "via": "alphabet",
      "text": "cara membuat ayam kecap"
    },
    {
      "via": "alphabet",
      "text": "cara membuat akta kelahiran"
    },
    {
      "via": "alphabet",
      "text": "cara membuat asinan buah"
    }
  ],
  "locale": "id",
  "surface": "web",
  "provider": "google",
  "modifiers": "all",
  "truncated": false,
  "variantsTried": 44,
  "variantsFailed": 0
}

Related APIs

More in autocomplete

Yandex Autocomplete

autocomplete/yandex

Yandex search suggestions. The index is Russian-centric; other languages return fewer or no completions.

162 calls·30m cache

Yahoo Autocomplete

autocomplete/yahoo-autocomplete

Yahoo search autocomplete.

117 calls·30m cache

IMDb Autocomplete

autocomplete/imdb-autocomplete

IMDb title and name autocomplete — returns records with ids, years, posters and cast, not just query strings.

113 calls·30m cache
Browse APIsPricingDocsMCP serverGet an API key
zapi.One key, one response shape.
TermsPrivacyCookiesAUPRefunds© 2026