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 recieve 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:

https://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 Overview in the Account section (if you are logged in, it will appear below).

Please note that in order for the authentication to be successful, the URL must match the API token for that account.

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

0EF8F436-FGM0-4638-AA10-6ADF4885497

GOP.gov Anywhere API
Member Methods
Committee Methods
Legislative Methods
Documents Methods