Note: this information is for customers who wish to display type-ahead (autocomplete) suggestions on their agency’s website. If you are only looking to turn on type-ahead suggestions on your search results page, please review the instructions on our Display Overview page.
There are two ways to get type-ahead suggestions to appear on your agency’s website.
You must be a Search.gov customer to use this feature. Full instructions and code can be found under Admin Center > YourSite > Activate Search > Code Snippets.
The code will look similar to:
This API is available for use on official government websites only. You must be a Search.gov customer to access the instructions. Sign in is required.
Keys and instructions can be found under Admin Center > YourSite > Activate Search > Type-ahead API Instructions.
Troubleshooting: Suggestions are derived from the searches performed on your website. For additional details, please review the Type-ahead API section in the Search Admin Center.