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. Instructions can be found on the API’s GSA Open API directory listing.
Troubleshooting: Suggestions are derived from the searches performed on your website. For additional details, please review the documentation.