apyhub
Back
▣ RETRIEVAL KIT

Federal Register Documents API

What it does

The Federal Register Search API returns US federal register results for rules, proposed rules, notices, and presidential documents. Send a search body with query like artificial intelligence, type, order, since, agency, and maxItems to narrow the match list.

type accepts RULE, PRORULE, NOTICE, or PRESDOCU. order accepts newest, relevance, or oldest. maxItems is 1 to 100, with a default of 20. The response gives a billed count, the number of rows, and a list of matching items.

Each result includes the title, summary, document number, publication date, agency names, and links to the HTML and PDF pages. Teams use the Federal Register Search API to track rule changes, watch one agency, and surface source documents in search tools and dashboards.

Use it with text search tools when you want to find policy or compliance updates faster. Pair it with Best Match Text Search API to rank other text results, or with AI Text Keyword Extraction API to pull search terms from a document.

POST
Federal Register Search - US rules, proposed rules, notices
https://api.eu.apyhub.com/martin10291/federal-register-documents

QUICKSTART

GUIDE

Quickstart

Search the Federal Register with a simple keyword query.

curl -X POST "https://api.eu.apyhub.com/martin10291/federal-register-documents" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"query":"artificial intelligence","type":"RULE","order":"newest","maxItems":10}'

What you'll get back

Returns a JSON object with billed and count integer fields, plus an items array of result objects.

Each item may include type, title, pdf_url, abstract, agencies, html_url, document_number, and publication_date.

{
  "billed": 10,
  "count": 10,
  "items": [
    {
      "type": "RULE",
      "title": "Example Federal Register Notice",
      "pdf_url": "https://example.com/document.pdf",
      "abstract": "Example abstract text.",
      "agencies": ["environmental-protection-agency"],
      "html_url": "https://example.com/document.html",
      "document_number": "2024-00001",
      "publication_date": "2024-01-15"
    }
  ]
}
TRY ITLIVE · 100 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body
RULE, PRORULE, NOTICE or PRESDOCU
newest or relevance
Keywords, e.g. artificial intelligence

About this endpoint

What it does

Searches Federal Register content and returns matching result rows as a JSON object, including billing information, a row count, and an items array of matching documents. The request body lets you filter by document type, sort order, keywords, publication date, agency, and maximum results.

Request Body

ParameterTypeMandatoryDescription
typeENUMNoAllowed values: RULE, PRORULE, NOTICE, PRESDOCU.
orderENUMNoAllowed values: newest, relevance, oldest.
queryStringNoKeywords to search for, for example artificial intelligence.
sinceStringNoPublished on or after, in YYYY-MM-DD format.
agencyStringNoAgency slug, for example environmental-protection-agency.
maxItemsIntegerNoMaximum number of results to return. Default: 20. Minimum: 1. Maximum: 100.

Response

Returns a JSON object with billed and count integer fields, plus an items array of result objects. Each item includes type, title, pdf_url, abstract, agencies, html_url, document_number, and publication_date.

ParameterTypeMandatoryDescription
billedIntegerYesUnits charged for this call. Result rows are billed; not-found, unavailable, and invalid rows are free.
countIntegerYesNumber of rows in items.
itemsObject ArrayYesMatching result rows. Each item object may include type, title, pdf_url, abstract, agencies, html_url, document_number, and publication_date.
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.