Compliance Change Monitoring API: Track Regulatory Changes From the Source

TLDR: A compliance change monitoring API detects new or amended rules, scopes them to the obligations you care about, shows exactly what text changed, and records the evidence. In the US most of that detection is free: the Federal Register, public inspection, eCFR and regulations.gov APIs cover federal rulemaking. Paid regulatory data APIs and web search fill the gaps those feeds leave, such as guidance pages, state regulators and non-US supervisors.
What a compliance change monitoring API has to do
Most products sold as regulatory change monitoring bundle five separate jobs. Pulling them apart makes it obvious which ones a free feed already does and which ones you have to build or buy.
- Detect. Notice that a regulator published something: a final rule, a proposal, a guidance document, a corrigendum, a withdrawal.
- Scope. Decide whether it touches you. Agency and document type are a weak filter. The CFR part, docket or legal act it amends is a strong one.
- Diff. Show what the text said before and what it says now, paragraph by paragraph, so a lawyer reviews a change instead of a 300-page PDF.
- Assess. Summarize the obligation change, the effective date and the team that owns it.
- Prove. Keep the source URL, timestamps and the text you acted on, so you can show an examiner when you knew and what you did.
The first three are mechanical, and for US federal rules the government already exposes them as APIs. The last two need judgment, which is where a language model with citations earns its cost. The legal research API guide covers the neighboring job of researching what the law says today. This page is about noticing when it changes.
The free primary sources, tested on 9 and 10 November 2026
We called each of these without a paid account on 9 November 2026 and re-ran every count below on 10 November. Each comes straight from the government body that publishes the content, so there is no aggregator between you and the source.
| Source | What it tells you | Access | Limit we hit |
|---|---|---|---|
| Federal Register API | Every rule, proposed rule, notice and presidential document, with agency, affected CFR parts, effective date and comment deadline | No key | Any one query reports at most 10,000 results |
| Public inspection (same API) | Documents filed for the next issue, and sometimes later issues | No key | Filings can be withdrawn before they publish |
| eCFR versioner API | Point-in-time text of any CFR section and the dates it changed | No key | Returns 406 unless the request accepts compression |
| Regulations.gov v4 | Dockets, supporting documents, comment periods, last-modified dates | Free api.data.gov key | Page 41 at 250 per page returns a 400; the cap is 10,000 results |
| EU Publications Office SPARQL | Official Journal acts by CELEX number and date | No key | About a third of recent records are corrigenda |
| legislation.gov.uk feeds | New UK statutory instruments and acts as Atom or CSV | No key | Legislation only, not regulator rulebooks |
The Federal Register API counts 3,018 final rules in 2023, 3,248 in 2024 and 2,441 in 2025, plus 1,498 proposed rules and 19,280 notices in 2025. The notice count comes from the /documents/facets/type endpoint, because a document listing stops counting at 10,000 and reports exactly that figure for 2025 notices. Most of it is irrelevant to any one company: the first two of the 15 final rules published on 9 November 2026 were a Coast Guard security zone in Puget Sound and an FAA airspace amendment for Chandler and Phoenix, Arizona. A monitor's real work is filtering, and the filter that holds up is the CFR part a document amends.
The api.data.gov default for a registered key is 1,000 requests per hour. The shared DEMO_KEY is for trying things out, at 30 requests per hour and 50 per day per IP address.
Six gotchas that break naive monitors
Each of these showed up in live calls on 9 November 2026. Two are documented; four are not obvious until you hit them.
1. Pagination past the cap silently starts over
A Federal Register query for all final rules reports a count of exactly 10,000, which is a ceiling, not a total. At 20 results per page it offers 50 pages. Ask for page 51, or page 600, and you get page 1 again with no error. A loop that increments page= until results run out never terminates and keeps re-ingesting the newest documents. Query in date windows small enough to stay under the cap, follow next_page_url, and stop when it is absent.
2. "Proposed Rule" includes public petitions
Of the 14 FTC documents typed Proposed Rule in the 12 months to 9 November 2026, 10 were petitions for rulemaking filed by members of the public, such as "Petition for Rulemaking of New Hope Now." They are worth logging and rarely worth paging a lawyer for. Down-rank titles that start with "Petition for Rulemaking."
3. Public inspection is early, and not final
The Office of the Federal Register files documents for public inspection at least one business day before publication, with the regular set posted at about 8:45 a.m. Eastern. Across the 976 documents listed on public inspection on the ten federal business days from 26 October to 6 November 2026 (queried one day at a time with conditions[available_on]), 55 were special filings. Measured from the filing date, those went up a median of four calendar days before their publication date, against one day (three over a weekend) for regular filings. The same page warns that agencies can withdraw a filing, and the current list on 9 November held one: a notice with its publication date set to null and an editorial note recording the withdrawal letter. Treat public inspection as an early warning, and confirm against the published document.
4. The eCFR changes on the effective date, not the publication date
The FTC's amended COPPA rule was published on 22 April 2025 with an effective date of 23 June 2025. Diffing 16 CFR 312.5 between 22 and 23 June 2025 shows 17 paragraph lines added and 10 removed, including the new requirement for separate verifiable parental consent before disclosing a child's data to third parties, unless the disclosure is integral to the service. So the Federal Register gave 62 days of notice that the eCFR alone would have missed. The eCFR is also, in the National Archives' words, an editorial compilation and not an official legal edition, generally current within two business days. On 10 November 2026 its titles endpoint reported all 49 titles current to 6 November. Use the Federal Register for warning and the eCFR for what is in force.
5. Field types drift across decades of records
The Federal Register returns cfr_references[].part as the string "312" on the 2025 COPPA rule and as the integer 312 on the 2013 one, and some records carry a null part. Normalize before you compare, or your scope filter will quietly drop old matches.
6. EU corrigenda look like new acts
EUR-Lex gives a corrigendum the CELEX number of the act it corrects with R(xx) appended. Of 295 regulations, directives and decisions (CELEX sector 3, types R, L and D) dated October 2026 in the Publications Office's SPARQL endpoint, 99 were corrigenda. Route them to the owner of the original act instead of opening a new item.
Build the detector: Federal Register plus eCFR in stdlib Python
This module handles detection, scoping and diffing with no dependencies. It ran live against both APIs on 9 and 10 November 2026, and mocked-response tests cover the pagination guard, the triage rules and the type normalization. A watch entry names agencies, document types, a CFR part or a search term. Store the document numbers you have seen, and run it every federal business day, with a public inspection check after 8:45 a.m. Eastern.
import gzip, html, json, re, urllib.parse, urllib.request
from datetime import date, timedelta
from difflib import unified_diff
FR = "https://www.federalregister.gov/api/v1"
ECFR = "https://www.ecfr.gov/api/versioner/v1"
FIELDS = ["document_number", "type", "title", "agencies", "publication_date",
"effective_on", "comments_close_on", "cfr_references", "html_url"]
def get(url, raw=False):
req = urllib.request.Request(url, headers={"Accept-Encoding": "gzip",
"User-Agent": "regwatch/1.0"})
with urllib.request.urlopen(req, timeout=60) as r:
body = r.read()
if r.headers.get("Content-Encoding") == "gzip":
body = gzip.decompress(body)
return body.decode() if raw else json.loads(body)
def fr_documents(watch, since, until):
"""Yield every Federal Register document for one watch entry.
Follows next_page_url. Never builds page=N by hand: pages past
the cap silently return page 1 again."""
q = [("per_page", "1000"), ("order", "oldest"),
("conditions[publication_date][gte]", since),
("conditions[publication_date][lte]", until)]
q += [("conditions[agencies][]", a) for a in watch.get("agencies", [])]
q += [("conditions[type][]", t) for t in watch.get("types", [])]
if "cfr" in watch:
q += [("conditions[cfr][title]", str(watch["cfr"][0])),
("conditions[cfr][part]", str(watch["cfr"][1]))]
if "term" in watch:
q.append(("conditions[term]", watch["term"]))
q += [("fields[]", f) for f in FIELDS]
url = FR + "/documents.json?" + urllib.parse.urlencode(q)
seen = set()
while url:
page = get(url)
if page.get("count", 0) >= 10000:
raise RuntimeError("window hit the 10,000 cap; shorten the date range")
for doc in page.get("results", []):
if doc["document_number"] in seen:
raise RuntimeError("pagination looped back to page 1")
seen.add(doc["document_number"])
yield doc
url = page.get("next_page_url")
def triage(doc, today):
"""Rough urgency from fields the API already returns."""
eff, close = doc.get("effective_on"), doc.get("comments_close_on")
if doc["title"].lower().startswith("petition for rulemaking"):
return "low" # public petitions are filed as type "Proposed Rule"
if doc["type"] == "Rule" and eff:
days = (date.fromisoformat(eff) - today).days
return "high" if days <= 30 else "medium"
if doc["type"] == "Proposed Rule" and close:
return "medium"
return "low"
def cfr_parts(doc):
# 'part' arrives as a string on new documents and an int on old ones
return {(int(c["title"]), str(c["part"]))
for c in doc.get("cfr_references") or [] if c.get("part") is not None}
def public_inspection(agency_slugs):
"""Documents filed for tomorrow's issue (or later). Withdrawn filings
stay listed with publication_date set to null and an editorial_note."""
out = []
for d in get(FR + "/public-inspection-documents/current.json")["results"]:
slugs = {a.get("slug") for a in d.get("agencies", [])}
if slugs & set(agency_slugs):
d["withdrawn"] = d.get("publication_date") is None
out.append(d)
return out
def ecfr_text(title, part, section, on):
url = f"{ECFR}/full/{on}/title-{title}.xml?part={part}§ion={section}"
xml = get(url, raw=True) # 406 unless the request accepts compression
text = re.sub(r"</(P|HEAD|FP)>", "\n", xml) # paragraph ends
text = html.unescape(re.sub(r"<[^>]+>", "", text)) # drop inline tags
return [ln.strip() for ln in text.splitlines() if ln.strip()]
def ecfr_diff(title, part, section, before, after):
a = ecfr_text(title, part, section, before)
b = ecfr_text(title, part, section, after)
return [ln for ln in unified_diff(a, b, lineterm="", n=0)
if ln[:1] in "+-" and ln[:3] not in ("+++", "---")]
if __name__ == "__main__":
today = date.today()
watch = {"agencies": ["federal-trade-commission"], "types": ["RULE", "PRORULE"]}
since = (today - timedelta(days=90)).isoformat()
for doc in fr_documents(watch, since, today.isoformat()):
print(triage(doc, today), doc["publication_date"], doc["type"],
sorted(cfr_parts(doc)), doc["title"][:70])
for d in public_inspection(["federal-trade-commission"]):
print("PI", d["publication_date"], d["withdrawn"], d["title"][:70])
changes = ecfr_diff(16, 312, "312.5", "2025-06-22", "2025-06-23")
print(len(changes), "changed lines in 16 CFR 312.5")
The final call reproduces the COPPA change: 27 changed paragraph lines in 16 CFR 312.5. Point ecfr_diff at the day before and the day of any effective date, and the reviewer sees the amended paragraphs instead of the whole rule.
What the government feeds miss
A lot of what matters sits outside the Federal Register.
- Guidance that never gets its own notice. FDA's own good guidance practices rule, 21 CFR 10.115, says Level 2 guidance is posted on the internet and implemented immediately unless FDA indicates otherwise. The Federal Register gets a comprehensive list only once a year.
- State regulators. State registers, insurance departments and attorneys general publish on their own sites, in their own formats.
- Non-US supervisors. legislation.gov.uk covers UK legislation, but FCA policy statements and consultation papers live on fca.org.uk.
- Enforcement signals. These arrive unevenly. The FTC publishes proposed consent agreements for public comment, such as the Publicis and LiveRamp proposed consent order, which appeared in the Federal Register and on regulations.gov (docket FTC-2026-1717) on 23 October 2026, so a Federal Register watch catches them. For agencies that announce actions on their own sites, add a watch per newsroom.
This is where web search is the right tool. The You.com Web Search API request controls take an include_domains allowlist of up to 500 domains and a freshness window, so each watch becomes a scoped, recent query against one regulator's site. When something new appears, the Research API turns it into a structured impact brief. Its source_control setting keeps the research on primary domains, and output_schema returns JSON your router can read, with the cited pages in output.sources. The Research API controls launch post shows both settings on an EU AI Act question.
import json, os, urllib.request
KEY = os.environ.get("YDC_API_KEY", "")
# Sources that publish outside the Federal Register: guidance pages,
# enforcement actions, state regulators, non-US supervisors.
WATCHES = [
{"name": "FDA device guidance",
"query": "FDA new draft or final guidance medical device software",
"include_domains": ["fda.gov"]},
{"name": "CFPB enforcement",
"query": "CFPB enforcement action consent order",
"include_domains": ["consumerfinance.gov"]},
{"name": "UK FCA policy",
"query": "FCA policy statement consultation paper",
"include_domains": ["fca.org.uk"]},
]
def post(url, body, timeout=60):
req = urllib.request.Request(
url, data=json.dumps(body).encode(), method="POST",
headers={"X-API-Key": KEY, "Content-Type": "application/json",
"User-Agent": "regwatch/1.0"})
with urllib.request.urlopen(req, timeout=timeout) as r:
return json.load(r)
def search_watch(watch, freshness="day"):
return post("https://ydc-index.io/v1/search", {
"query": watch["query"],
"include_domains": watch["include_domains"],
"freshness": freshness,
"count": 20,
})
def new_hits(response, seen_urls):
"""Return unseen web results; results and web are both optional."""
hits = []
for r in (response.get("results") or {}).get("web") or []:
url = r.get("url")
if url and url not in seen_urls:
seen_urls.add(url)
hits.append({"url": url, "title": r.get("title", ""),
"page_age": r.get("page_age")})
return hits
IMPACT_SCHEMA = {
"type": "object",
"properties": {
"summary": {"type": "string"},
"applies_to_us": {"type": "string", "enum": ["yes", "no", "unclear"]},
"obligations_changed": {"type": "array", "items": {"type": "string"}},
"effective_date": {"type": ["string", "null"]},
"action_by": {"type": ["string", "null"]},
"owner_team": {"type": "string",
"enum": ["legal", "product", "security", "finance", "none"]},
},
"required": ["summary", "applies_to_us", "obligations_changed",
"effective_date", "action_by", "owner_team"],
"additionalProperties": False,
}
def impact_brief(change_url, title, company_profile, primary_domains):
body = {
"input": (f"Regulatory change: {title} ({change_url}). "
f"Company profile: {company_profile}. "
"What changed, does it apply to this company, which obligations "
"change, and by when? Use the primary source text."),
"research_effort": "standard",
"source_control": {"include_domains": primary_domains},
"output_schema": IMPACT_SCHEMA,
}
out = post("https://api.you.com/v1/research", body, timeout=90)["output"]
return out["content"], [s["url"] for s in out.get("sources", []) if s.get("url")]
The request shapes, the result handling and the schema were checked offline against fixtures built from the documented responses; no paid calls were made. Keep the User-Agent header: in our tests on 20 November 2026, api.you.com answered Python's default urllib one with a 403 (Cloudflare error 1010). Three things to know before running it. output_schema is not accepted with research_effort: "lite" and returns a 422. Every property must be listed in required, so unknown values are nullable rather than optional. And the API does not add citation fields to your schema, so keep output.sources with the brief as your evidence trail.
Web search finds pages that exist and are indexed; it cannot promise it saw every page a regulator posted. It is a backstop for sources with no feed, not a replacement for the feeds. To keep a copy of exactly what the page said when you acted, fetch it with the Contents API and store the Markdown with a timestamp. The Contents API extracts clean page content from URLs you give it; it is not a crawler, so it will not discover new pages on its own.
Build, buy, or both: a decision framework
| Option | Good at | Weak at | Cost signal |
|---|---|---|---|
| Regulatory change management platforms | Obligation libraries, workflow, attestations, audit trail | Fitting into your own product and data model | Contract, priced per vendor |
| Regulatory data APIs (RegAlytics, FinTech Studios, Compliance.ai) | Curated, normalized events across jurisdictions, delivered by webhook | Coverage is whatever the vendor lists; you inherit their taxonomy | Paid plans; FinTech Studios puts developer API access on paid tiers |
| Web monitoring APIs (Parallel Monitor) | Natural-language monitors with built-in deduplication | Search-based detection, not a system of record | $3 to $10 per 1,000 executions as of November 2026 |
| Primary feeds plus You.com | Free source-of-record detection, exact diffs, cited briefs, full control | You maintain the code; coverage is what you wire up | Feeds free; search $5 per 1,000 calls |
RegAlytics documents a REST API with HMAC-signed webhooks, FinTech Studios sends events with jurisdiction, agency, change type and effective date fields, and Compliance.ai's developer page lists federal and state agencies, enforcement actions and rules among its sources. If you are a bank or insurer that needs an obligation library and attestation workflow across dozens of regulators, buy a platform and do not rebuild it. If you need normalized multi-jurisdiction events in your own product, a regulatory data API spares you from maintaining dozens of source connectors. If you own a defined set of agencies and CFR parts, or you are building compliance features into software, the primary feeds are the ground truth every aggregator is built from, and search covers the edges.
The cost math for that last option is small. Twenty web watches run every six hours is 2,400 searches a month, which is $12 at the $5 per 1,000 calls list price as of November 2026. Sixty impact briefs a month at the standard research effort, listed at $50 per 1,000, add $3. The same 2,400 checks on Parallel Monitor cost $7.20 on its lite processor or $24 on base, with deduplication done for you. Either way the money is in the review time you save, not the API bill.
How to test a monitor before you trust it
- Backtest against changes you already know. Replay the last 12 months for your watched CFR parts and confirm every known amendment fires. The COPPA rule is a good fixture: it should alert on 22 April 2025 and diff on 23 June 2025.
- Measure lead time. Record when each change hit public inspection, the Federal Register and your alert channel. Hours of lag between those mean your schedule is wrong.
- Measure noise. Count alerts a reviewer dismissed. Petitions, corrigenda and routine notices should land in a digest, not a page.
- Break it on purpose. Force a window over the 10,000 cap, feed it a withdrawn filing, drop the compression header. Each should fail loudly or flag the record, as the module above does.
- Log the chain. Detection time, source URL, the text or diff you saw, the brief, who reviewed it and what they decided. That record is the deliverable an examiner asks for.
Start with the feeds, because they are free, official and precise. Add search and research for the sources that have no feed. For more on wiring live data into agents, see the real-time web search API guide and the Research API overview.
Frequently Asked Questions
It is an API that tells you when a regulator publishes or amends something that affects you. A complete one detects the document, scopes it to the rules you follow, shows the before and after text, summarizes the impact and keeps the evidence. For US federal rules, the Federal Register and eCFR APIs already handle detection, scoping and diffing for free.
Yes, for primary sources. The Federal Register API and its public inspection endpoint need no key, the eCFR versioner API returns point-in-time CFR text, and regulations.gov needs a free api.data.gov key with a default of 1,000 requests per hour. The EU Publications Office SPARQL endpoint and legislation.gov.uk feeds are also free. Curated multi-jurisdiction feeds from regulatory data vendors are paid.
Documents go on public inspection at least one business day before they appear in the Federal Register, with the regular set posted at about 8:45 a.m. Eastern. In 976 documents listed between 26 October and 6 November 2026, special filings were filed a median of four calendar days before publication and regular filings one day (three over a weekend). Agencies can withdraw a filing, so confirm against the published document.
The Federal Register publishes rules when they are issued, often weeks before they take effect. The eCFR shows the regulation text in force and changes on the effective date. The 2025 COPPA amendments were published on 22 April and reached the eCFR on 23 June. The eCFR is an unofficial editorial compilation, so use it for diffs and the Federal Register for legal notice.
Buy a regulatory change management platform if you need an obligation library, attestations and workflow across many regulators. Use a regulatory data API if you need normalized events from many jurisdictions in your own product. Build on the free primary feeds, plus web search for guidance pages and non-US supervisors, when you own a defined set of agencies and CFR parts.
The government feeds are free. Adding twenty web search watches that run every six hours costs about $12 a month at You.com's $5 per 1,000 calls list price as of November 2026, and sixty Research API impact briefs at standard effort add about $3. Parallel Monitor runs $3 to $10 per 1,000 executions. Platforms are priced by contract.
LI Test
LI Test
Share Article:
Related resources.

Rights-Aware Content Index: How to Respect AI Usage Terms in Retrieval
November 16, 2026
Blog

Adverse Media Screening API: Options, Costs, and How to Build One
November 3, 2026
Blog

6 Proven Templates for a Secure AI Rollout
September 1, 2025
Guides

A CIO’s Guide to Detecting and Managing Shadow AI
August 1, 2025
Guides
