Federal Register API

Beginner's Pick Government / No Auth Required Beginner HTTPS
Free to Use
72 B
Measured Score 0 50 100 Speed 16/30 Consistency 13/20 Security 20/20 Browser access 15/15 Transparency 8/15 TESTED 2026-08-10

Overview

The Federal Register API provides programmatic access to the official daily journal of the US government, including executive orders, proposed rules, and public notices. No API key is needed, so you can query it right away. It is a valuable resource for legal researchers, compliance tools, and civic applications tracking regulatory changes.

Beginner Tip

Use the conditions[term] parameter to search for specific topics like "climate" or "healthcare" and filter by conditions[type]=RULE for final rules or PRESDOCU for presidential documents. Results are paginated with 20 items per page by default.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://www.federalregister.gov/api/v1/documents.json?conditions%5Bterm%5D=climate&per_page=5&order=newest
Result
HTTP 200 · application/json · 13,788 bytes · compressed
Response time
236 ms (median of 3) · fastest 185 ms
Transport
TLSv1.3 · TLS_AES_128_GCM_SHA256 · certificate issued by Amazon
Browser CORS
Allowed — Access-Control-Allow-Origin: *
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
description string Documents matching 'climate'
count integer 10000
total_pages integer 50
next_page_url string (url) https://www.federalregister.gov/api/v1/docume…
results array [1 item]

Captured Response

Captured from a real request to https://www.federalregister.gov/api/v1/documents.json?conditions%5Bterm%5D=climate&per_page=5&order=newest on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "description": "Documents matching 'climate'",
  "count": 10000,
  "total_pages": 50,
  "next_page_url": "https://www.federalregister.gov/api/v1/documents?conditions%5Bterm%5D=climate&format=json&order=newest&page=2&per_page=5",
  "results": [
    {
      "title": "Oil and Gas and Sulfur Operations on the Outer Continental Shelf-Revisions to the Requirements for Exploratory Drilling on the Arctic Outer Continental Shelf",
      "type": "Proposed Rule",
      "abstract": "The Department of the Interior (DOI or Department), acting through BSEE and BOEM (collectively, \"the Bureaus\"), is proposing to revise its existing regulatio…",
      "document_number": "2026-15953",
      "html_url": "https://www.federalregister.gov/documents/2026/08/06/2026-15953/oil-and-gas-and-sulfur-operations-on-the-outer-continental-shelf-revisions-to-the-requirement…",
      "pdf_url": "https://www.govinfo.gov/content/pkg/FR-2026-08-06/pdf/2026-15953.pdf",
      "public_inspection_pdf_url": "https://public-inspection.federalregister.gov/2026-15953.pdf?1785933913",
      "publication_date": "2026-08-06",
      "agencies": [
        {
          "…": "(7 more fields)"
        }
      ],
      "excerpts": "safety and environmental protection. On June 29, 2021, the Bureaus withdrew the proposed rule (\n see \n 86 FR 34172) due to a change in administration and pol…"
    }
  ]
}

Field Reference

results Array of Federal Register document objects matching the search criteria
title Official title of the government document or rule
document_number Unique identifier for the document in the Federal Register
publication_date Date the document was published in YYYY-MM-DD format
type Document type such as RULE, PRORULE, NOTICE, or PRESDOCU
abstract Brief summary of the document content and its regulatory or legal purpose

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://www.federalregister.gov/api/v1/documents.json?conditions%5Bterm%5D=climate&per_page=5&order=newest";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 404 Requesting a path that does not exist text/html

Returned an HTML error page rather than JSON — worth knowing if your client assumes every response can be parsed as JSON.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

422 Unprocessable Entity A required parameter is missing or a filter value is not in the expected format
Check the API docs at federalregister.gov/reader-aids/developer-resources and ensure dates use YYYY-MM-DD format
Large response payload Requesting all fields for many documents at once
Use the fields[] parameter to request only the fields you need, such as fields[]=title&fields[]=document_number
Results not updating The Federal Register publishes new documents each business day; weekend queries may seem stale
Check the publication date in each document object; new issues are published weekdays only

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 16/30
Consistency 13/20
Security 20/20
Browser access 15/15
Transparency 8/15
Endpoint Response Time 236ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Government
Difficulty Beginner
Endpoint last called: 2026-08-10

Related Tags

Similar APIs

View All →