In line with the White House’s Digital Government Strategy, we’re making our code and data more open.
APIs for Search.gov Customers
These APIs are available for use on official government websites only. You must be a Search.gov customer. Sign in is required.
Search Results API—This API exposes all relevant results “modules” in a single JSON call, including: web results, best bets, health topics, job openings, recent tweets, recent news, recent videos, Federal Register documents, and related searches. Use it to pull search results from our service to display on your agency’s website or mobile applications. Instructions can be found under Admin Center > YourSite > Activate Search.
Type-ahead API—This API exposes the type-ahead suggestions that often appear below your search box as searchers enter their search terms. Instructions can be found under Admin Center > YourSite > Activate Search.
i14y—This API is still available, but we encourage the use of sitemap-based indexing instead. Read more about our indexing process here. The i14y API allows you to send content directly from your content management system (CMS) into Search.gov for real-time indexing.
APIs and Data Feeds for the Public
USAJOBS API—Taps into a list of current job openings in federal agencies. The Search.gov Jobs API has been deprecated.
USA.gov/Developer—Full list of USA.gov’s APIs and data feeds available to the public.
api.data.gov—Portal for access to APIs from across the federal government.
Source Code (Public Github Repositories)
ASIS (Advanced Social Image Search)—The source code that runs our image search. ASIS indexes images from Flickr, Instagram, and media RSS to provide a combined search API.
i14y—The source code that runs our search engine for agencies’ published content. i14y indexes agencies’ published content in real time, for search through our regular search channels.
Non-.gov URLs—The source code that runs our non-.gov URLs API. Indexes all government URLs that don’t end in .gov or .mil.
Punchcard—The repository of synonyms, protected words, stop words, localizations, and other vocabularies that we use to improve the precision, recall, and usability of search results.
Site Links—The source code that “decorates” organic web results to provide additional, value-added links to help searchers find what they’re looking for. Currently provides one-click links to EDGAR filings for relevant SEC.gov results. Also published as a Ruby gem at https://rubygems.org/gems/sitelink_generator.