Autocomplete API

Search suggestions as people type

Help people find the right query before they finish typing. Built from your own data, with nothing to set up.

Sign up for Vecstore

100 free credits on sign up. No card required.

Live demo
<10ms

Suggestions

  • Harry Potter
  • harry potter and the
  • Harry Potter and the Chamber of Secrets
  • Harry Potter and the Deathly Hallows – Part 1
  • Harry Potter and the Deathly Hallows – Part 2
  • Harry Potter and the Goblet of Fire
Try:
Suggestions

A new suggestion on every keystroke. People pick a query instead of typing all of it.

wireless hea wireless hea dphones

Completes the word

It reads the word before it, so the guess fits the phrase.

gaming  gaming headset

Suggests the next word

After a space, it offers what usually comes next.

headph n es headphones

Forgives typos

One wrong letter still finds the word. Handy on phones.

Speed

Every keystroke gets an answer before the next one lands.

<10ms

Per request in our tests, served straight from memory.

0

AI calls per request

25

Requests = 1 credit

10

Suggestions per request

Search-as-you-type doesn't need another search service.

All you do is 1 add your documents, 2 call one endpoint and 3 show the suggestions.

1 Your data

Suggestions come from your documents, not from a list you have to maintain.

No setup. The index builds itself the first time you call autocomplete.

"status": "building" "status": "ready"

Stays up to date. It refreshes on its own as you add or delete documents.

+ 120 documents− 8 documentsIndex refreshed

Ranked by your data. Phrases that show up more often in your documents come first.

wireless headphones1,284
wireless headset642
wireless charger311
2 One endpoint

Send what's typed, get suggestions back. Same API key and database as your search.

POST /databases/{id}/autocomplete
{
  "query": "wireless hea",
  "limit": 5
}
Response
{
  "suggestions": [
    { "text": "wireless headphones" },
    { "text": "wireless headset" }
  ],
  "status": "ready"
}

No second service. Autocomplete and semantic search run on the same data, so nothing to sync.

Typing barely uses credits. Call it on every keystroke without worrying about cost.

Read the autocomplete docs →
3 Show it

Show suggestions under your search box, then search when they pick one.

They type

Each key calls autocomplete.

gam |

They pick

Suggestions show up in the dropdown.

gaming headset

gaming mouse

gaming chair

They get results

The picked query goes to semantic search.

Gaming headset with surround sound

Wireless gaming headset

Test it on your own data in the Autocomplete tab of any text database.

Read the docs →

Autocomplete questions

What is an autocomplete API?

It returns search suggestions while someone is still typing, so they can pick a full query instead of finishing it.

How is autocomplete different from search?

Autocomplete suggests queries from the words in your data. Search finds results by meaning. Most apps show suggestions while typing and run a search when one is picked.

Where do the suggestions come from?

From the documents in your database. Vecstore builds a word and phrase index from your content and ranks suggestions by how often they appear. It does not use what users have searched for.

How often do suggestions update?

The index refreshes on its own as you add or delete documents. New documents show up after the next refresh, not instantly.

Does it work with image databases?

No. Autocomplete works with text databases.

Add autocomplete to your search in an afternoon.

85M+ searches powered by Vecstore this year

Sign up for Vecstore
Start for Free

100 Free credits. No credit card required.