Regulations.gov API Python Client

N/A · active · verified Tue Mar 17

Python client library for the Regulations.gov API v4, providing access to federal regulatory documents, comments, and dockets from the U.S. government's public rulemaking portal. Wraps the REST API with typed Python methods for searching and retrieving regulatory data.

Warnings

Install

Imports

Quickstart

Search for federal regulatory documents using the Regulations.gov API.

import os
import requests

api_key = os.environ.get("REGULATIONS_GOV_API_KEY", "DEMO_KEY")
resp = requests.get(
    "https://api.regulations.gov/v4/documents",
    params={"api_key": api_key, "filter[searchTerm]": "climate", "page[size]": 5},
    headers={"Accept": "application/json"}
)
resp.raise_for_status()
data = resp.json()
for doc in data.get("data", []):
    print(doc["attributes"]["title"])

view raw JSON →