For Developers

Software developers and researchers can use these APIs and data feeds to help people find useful government information.

USA.gov API Outage

Due to the launch of the new USA.gov website, two of our APIs are temporarily unavailable.  We are working to restore them as quickly as possible, and apologize for any inconvenience that this may cause.  The two affected APIs are:

  • Corporate Consumer Contact API
  • Federal Agency Directory API

Back to Top

Questions and Feedback

USA.gov uses GitHub repositories to maintain the documentation for most of our APIs and data feeds.  Using GitHub, you can easily provide feedback to us and ask questions using each repository's issue tracker.  You can also e-mail us any questions you might have regarding our APIs.

Back to Top

APIs and Data Feeds from USA.gov

USA.gov offers a variety of APIs and data feeds to help developers access and expose quality government information and services from their own websites and applications.  Currently, these APIs include:

1.USA.gov Data
1.USA.gov URLs are created whenever anyone shortens a .gov or .mil URL using bitly.com.
Style: Raw pub/sub feed
Return Format: JSON

Corporate Consumer Contact API
This API returns a manually curated list of contact information for consumer-related corporations.
Style: RESTful API
Return Format: JSON, JSONP, XML

DigitalGov Search API (formerly USASearch)
Provides DigitalGov Search customers with results. This API is only available for use on official government websites. Sign in is required.  Once you login, you can find the API documentation under the "activate" menu.
Style: RESTful API (requires DigitalGov Search account)
Return Format: JSONJSONP, XML

Federal Agency Directory API
This API contains directory information about federal agencies, such as contact methods, in English and Spanish.
Style: RESTful API
Return Format: JSONJSONP, XML

Federal Mobile Product API
This API contains native and hybrid apps, responsive sites, and mobile websites from across the government, in English and Spanish.
Style: RESTful API
Return Format: JSONJSONP

Go.USA.gov API
Go.USA.gov is a URL shortener for government employees. The API can shorten, preview, and show clicks on short URLs.
Style: RESTful API
Return Format: JSON, JSONP, XML, plain text

Government Jobs API
This API returns job openings across the federal government, and includes all current openings posted on USAJobs.gov that are open to the public and located in the United States. It also includes some state and local government jobs.
Style: RESTful API
Return Format: JSON

List of Non-.gov URLs in Our Search
We search 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.
Style: JSON, TXT file

Social Media Registry API
The Social Media Registry is an official source of information about federal government social media accounts.
Style: RESTful API
Return Format: HTML5, JSON, XML

Back to Top

Other Developer Resources

Here are some resources for developing with government-provided information and services:

Back to Top

What you think matters!