Skip to main content
Autocomplete returns address suggestions as a user types. Use it for search boxes and address forms where the user should choose a known G-NAF address before you enrich or submit the record.
Usage is metered in credits. See the Credits guide for response headers and usage behaviour.

When to use it

  • Build typeahead for address entry.
  • Let users pick a canonical address before calling Enrich.
  • Narrow results with state when your flow already knows the state.
Use Validate instead when a user has already submitted a complete free-text address.

Request

Examples

Response

Autocomplete returns Prontiq match quality per suggestion. It does not return G-NAF confidence or the internal search relevance score by default. total equals suggestions.length: Autocomplete is optimized for fast, ranked typeahead selection, not exhaustive corpus counts.

Field notes

With debug=true, suggestions may include debug.searchScore. This is an unstable internal search relevance diagnostic. Do not store it, sort by it, or use it for business decisions.

Integration tips

  • Start querying after the user has typed a few characters.
  • Debounce browser calls so you do not send a request for every keystroke.
  • Use the state filter when the user’s state is known.
  • Typos in completed words can still match. The word currently being typed is matched as a prefix, so typo tolerance is intentionally stronger for earlier tokens than the final token.
See the Autocomplete API reference for the generated schema and live playground.