Government and legal data APIs for AI agents: what each needs (2026)
Short answer: US federal sources are some of the easiest data for an agent to use. Many are free, and some need no key at all. The table below shows which ones an agent can call today, what each needs, and the limits the publishers state. Each name links to its catalog page with sources and verification notes.
What agents use these for
- Following a bill, a rule or a comment period and summarizing what changed.
- Answering “is this company real, and who runs it?” from official registers.
- Screening a name against sanctions and politically exposed persons lists.
- Finding government contract opportunities that match a business.
- Giving plain-language health information from an official source.
The sources and what they need
| Source | Covers | Key and limits (publisher’s words) |
|---|---|---|
| Federal Register API | US rules, proposed rules and notices | “Do not require API keys”; no rate limit stated (docs) |
| Congress.gov API | Bills, members and congressional records (Library of Congress) | API key required; 5,000 requests per hour (Library of Congress) |
| Regulations.gov API | Rulemaking dockets, documents and public comments | api.data.gov key; see the publisher’s docs for limits |
| GovInfo | Official US government publications and bulk data | api.data.gov key; see the publisher’s docs for limits |
| MedlinePlus web service | Consumer health topics in English and Spanish (returns XML) | Free, no registration; 85 requests per minute per IP (NLM) |
| Companies House API | UK company profiles and filing history | See the developer hub |
| OpenCorporates | Company records from many jurisdictions | See the vendor’s terms |
| OpenSanctions | Sanctions and politically exposed persons | See the vendor’s terms |
| CourtListener | Court opinions and dockets (Free Law Project) | “Available as a membership benefit and through commercial agreements” (Free Law Project) |
| SAM.gov opportunities export | RFPs, solicitations and award notices as JSON or CSV | A hosted scraper on Apify, not a government API; see the listing |
About api.data.gov keys
Several US agencies share one key system at api.data.gov. A key’s default limit is 1,000 requests per hour across all api.data.gov APIs. The shared DEMO_KEY, which is handy for a quick test, allows 30 requests per IP address per hour and 50 per day (api.data.gov). An agent that runs regularly should have its own key, and should cache results so it stays under the limit.
Tips for agents
- Start with the Federal Register if you only need rules and notices: no key, plain JSON.
- Store the document number or bill ID with every summary, so a person can check the source.
- Official registers change; repeat the lookup before acting on a company status or a sanctions match.
- Health information should point the person to the MedlinePlus page, not replace advice from a clinician.
Find more
Everything for this task, including government websites from the AgentReady Sites directory, is on the legal and government information task page. Agents connected to the AgentReady MCP server at https://agentready-tools.com/mcp can call search_tools with a query such as “federal regulations” or “company registry”.
Last checked: 21 November 2026. Publishers change keys and limits; check their pages before you rely on a number.