Web research6 min readBy Purrkey teamUpdated

How to collect Google Search autocomplete keyword ideas

Get Google Search autocomplete suggestions for a partial query and turn them into keyword ideas

On this page

You have 12 seed phrases for a search campaign and need related Google Search autocomplete suggestions to decide which themes to brief first. Run each seed as a partial query and build one worksheet from the suggestions that come back

The worksheet is the deliverable: one row per returned suggestion, with the seed phrase kept beside the returned value. No run has been executed for this guide; the values in the table are placeholders showing the shape

Example input and worksheet design

The tool takes query, which is required and is the partial Google search query. gl is optional, defaults to us, and takes a two-letter country code for result localization. hl is optional, defaults to en, and takes a two-letter interface and results language code. Set gl and hl to match the market you are researching before you start the batch

Example seeds for a 12-seed run. These are invented and you replace them with your own partial queries

Seed phraseglhl
coffee shousen
plumber neargben
steuerberaterdede
vegan meal prepusen
tax advisor forusen
dog groomergben
wedding photographerusen
crm for smallusen
standing deskusen
bookkeeping softusen
running shoeusen
garden bedgben

The agent calls anyapi.google.autocomplete once per seed. The catalog lists the tool, which is called through POST /v1/runs with toolId anyapi.google.autocomplete. The worksheet uses the columns from the brief: seed phrase, found, query, suggestion value and reason. The design below has one suggestion row and one empty row so you can see both shapes

Seed phrasefoundquerysuggestion valuereason
coffee shotruecoffee sho(returned text)(blank)
bookkeeping softfalse(empty)(empty)not_found

Values here are placeholders showing the shape. Add a theme note by hand after the run if your briefing sheet needs a priority column

Set the market before the run

The country and language fields change the suggestions the provider returns for the same partial query. A seed run for a UK audience should use gl set to gb, and a German-language run should use hl set to de. Keep the pair consistent across the 12 seeds so the worksheet compares like with like

If you need a second market, run a separate batch rather than mixing rows in one sheet. The tool takes one partial query per call, so the batch is a loop over your seed list. The first run can stay at 12 calls; a larger list of 40 seed phrases is the second cost case below

Read found, data and reason

After each call, read found first. When found is true, data.query repeats the partial query and data.suggestions is an array of records, each with a value that holds the suggested query text. Copy each value into its own row and keep the seed phrase in the left column

When found is false, data is null and reason is not_found. Log the row with the seed phrase, found: false and the reason, then move to the next seed. A found: false response is a successful call, not an error, and it is still billed at the actual AnyAPI charge

Use the suggestion text to decide which themes to brief first. Sort the value column, group related wording by hand and mark the groups you want to brief. The output gives suggestion text. It cannot return search volume or a priority score

If the same campaign also covers Google AI overviews, the companion guide is checking Google AI overviews

The agent prompt

The prompt below keeps the first run to 12 calls and asks for the worksheet table. It tells the agent to check the current inputs and price of anyapi.google.autocomplete before running

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to collect Google Search autocomplete suggestions for the 12 Example seed phrases below. Check the current inputs and price of anyapi.google.autocomplete before running anything. Call the tool once per seed phrase with gl and hl set for the target market. For each call, record found, query, suggestion value and reason. Return a table with seed phrase, found, query, suggestion value and reason. Leave query and suggestion value empty when found is false, and put not_found in reason.

coffee sho|us|en
plumber near|gb|en
steuerberater|de|de
vegan meal prep|us|en
tax advisor for|us|en
dog groomer|gb|en
wedding photographer|us|en
crm for small|us|en
standing desk|us|en
bookkeeping soft|us|en
running shoe|us|en
garden bed|gb|en

Replace the Example seeds and market codes with your own before running. The prompt asks for a table rather than a prose answer so the rows can go straight into the worksheet

Estimated tool cost

Prices read through the Purrkey catalog on November 12, 2026. The unit is max_call: Maximum per call. Successful runs settle at the actual AnyAPI charge. The totals below are ceilings, and agent model fees are not counted

StepFormulaUnit pricePlanned quantityTotal
12-seed runcalls x max priceup to $0.00099 per call12$0.01188
40-seed runcalls x max priceup to $0.00099 per call40$0.0396

The 12-call row covers the first worksheet in this guide. The 40-call row covers a larger seed list. A found: false call still counts in the planned quantity because it is a billed call

Run the first 12 seeds

Open Google Search autocomplete, run the 12 Example seed phrases, and fill the worksheet before you assign briefs

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Google Search.
Explore Google Search tools and pricing

FAQ

How do I collect Google Search autocomplete keyword ideas?

Run each seed phrase as the query input through anyapi.google.autocomplete, set gl and hl for the market, and put each returned value into the worksheet. Log a row with reason set to not found when found is false.

What inputs does anyapi.google.autocomplete take?

query is required. gl is optional and defaults to us; hl is optional and defaults to en.

What does found false mean for anyapi.google.autocomplete?

found is false when no autocomplete suggestion was returned. data is null and reason indicates not found; the call is still a successful call and is billed at the actual AnyAPI charge.

What fields should I copy into the worksheet?

Copy data.query as query, the value field of each suggestion as suggestion value, and reason when found is false. Keep the seed phrase in its own column.

How much does it cost to run 12 seed queries?

The 12-call plan is 12 times up to $0.00099 per call, or $0.01188.

How much does it cost to run 40 seed queries?

The 40-call plan is 40 times up to $0.00099 per call, or $0.0396.

What do gl and hl set in anyapi.google.autocomplete?

gl sets the two-letter country code for result localization; hl sets the two-letter interface and results language code for the suggestions. The defaults are us and en.

Next step

Try this with Google Search

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See Google Search tools

Share this article