Government and law

Congress.gov API

by api.congress.gov

Government and law Added on November 7th, 2026 Checked and working on November 7th, 2026
Visit api.congress.gov →

What it does

The Congress.gov API from the Library of Congress gives data about the US Congress: bills and their actions, amendments, members, committees, nominations and the Congressional Record, for example to follow a bill through Congress. Responses are JSON or XML. Free with a free api.data.gov key.
  • API
  • HTTP-GET
  • JSON
  • REST
  • XML

At a glance

API key
Needed, free · More APIs with a free key
Pricing
Free with a free api.data.gov key.
From the browser
Yes (CORS)
Formats
JSON, XML
Interface
REST, HTTP-GET
Provider
api.congress.gov
Last checked
Working on November 7th, 2026

More information: https://api.congress.gov/

Is this your service? Show that it is listed

Put this badge on your website or in your README; it links to this page. About the badge

Listed on Free Web Services

api.congress.gov
Congress.gov API

Example request

curl

curl 'https://api.congress.gov/v3/bill?api_key=YOUR_API_KEY&limit=5'

JavaScript

const response = await fetch("https://api.congress.gov/v3/bill?api_key=YOUR_API_KEY&limit=5");
const data = await response.json();
console.log(data);

Python

import requests

response = requests.get(
    "https://api.congress.gov/v3/bill?api_key=YOUR_API_KEY&limit=5",
    timeout=30,
)
print(response.json())

Replace YOUR_API_KEY with your own key. The JavaScript works in a web page as well as in Node.js 18 or newer.

Did it work for you?

Tell us what you found when you tried Congress.gov API.