GOP.gov Anywhere API

The GOP.gov API is part of House Republicans' commitment to deliver a more open Congress to the people of the United States by facilitating the transmission of information that can be distributed in real time, across any network, to any user.

The GOP.gov API (Application Programming Interface) makes it possible for you to receive data from GOP.gov using HTTP POST calls. There are many situations where this could be useful, including posting information on blogs, websites, software applications and other government webpages.

Using the GOP API is possible with just a few lines of code. The API is not restricted to any specific programming language and can be used in any language that has support for sending data via HTTP POST calls. You can find a couple of examples of HTTP POST Calls in the Documentation Library.

 

How the GOP API Works

A method is always called through a HTTP POST request. If a call is successful, it returns a result, usually a short success message or data in XML format. If the call fails, it will return an error message.

An API method is called like this:

http://www.gop.gov/api/method

 

Authentication

Access to the API requires authentication. For security reasons, a unique API Token is used instead of your GOP Portfolio account password. This API Token must be sent as a parameter of the call. Your API Token can be located under the Account Preferences in the Information section (if you are logged in, it will appear below).

The API Token is a unique string like the one below:

0EF8F436-FGM0-4638-AA10-6ADF4885497

 

Terms of Service

The GOP.gov Anywhere API can and should be used wherever it can play a role in delivering meaningful knowledge. By using your GOP.gov Anywhere API token, you agree to the following terms of service:
  1. You will not share your Anywhere API token on a publicly accessible web page or online community. We reserve the right to change your Anywhere API token if it has been found in a publicly available format or is being used for queries to multiple applications.
  2. You will tell us of any problems you encounter, ideas or questions you have. We want to know how the API is working, and when to fix it if it isn't.
  3. Your queries will not be rate limited, unless they are found to be abusive or harmful.
GOP.gov Anywhere API
Member Methods
Committee Methods
Legislative Methods
Documents Methods