In line with the White House's Digital Government Strategy, we're making our code and data more open.
APIs for DigitalGov Search Customers
These APIs are available for use on official government websites only. You must be a DigitalGov Search customer. Sign in is required. Full instructions for each can be found under Admin Center > YourSite > Activate Search.
i14y (Beta)—This API allows you to send content directly from your content management system (CMS) into DigitalGov Search for real-time indexing.
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 control the display of the results on your agency's website or mobile applications.
Type-ahead API—This API exposes the type-ahead suggestions that usually appear below your search box as searchers enter their search terms.
APIs and Data Feeds for the Public
Jobs API—Taps into a list of current jobs openings with federal, state, and local government agencies. Jobs are searchable by keyword, location, agency, schedule, or any combination of these.
List of Non-.gov URLs—USA.gov searches across all federal, state, local, tribal, and territorial government websites. Most government websites end in .gov or .mil, but many do not. This is a list of all government URLs that do not end in .gov or .mil.
Visit USA.gov/Developer for a full list of USA.gov's APIs and data feeds available to the public.
Source Code (Public Github Repositories)
ASIS (Advanced Social Image Search)—The source code that runs our image search. ASIS indexes Flickr and Instagram images and provides a search API across both indexes.
i14y—The source code that runs our search engine for agencies' published content. i14y indexes web pages and provides a search API across both indexes.
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.
CMS Modules and Plugins
These modules and plugins were developed by DigitalGov Search customers, not us, but we're linking to them here so you have easy access to them. Use their respective platforms to connect with their developers and submit issues.
Drupal Module—Allows you to override the default Drupal search and connect your Drupal website and DigitalGov Search search configuration.