Pull federal agency contact, office, and personnel directory data from the USA.gov Federal Agency Directory API

domain: usa.gov · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. The USA.gov Federal Agency Directory exposes a public API through the api.data.gov gateway; obtain a free api.data.gov API key and append it as the X-Api-Key header or api_key query parameter.
  2. Call the agency list endpoint to retrieve all federal agencies cataloged in the directory; each record includes agencyName, agencyAcronym, website, mission, and a list of sub-agencies or offices.
  3. Filter by parentAgency or agencyType (Cabinet, Independent, Board/Commission) fields to scope results to the relevant agency tier for your application.
  4. Use the returned agencyId to retrieve detailed records including primary phone numbers, mailing addresses, and contact forms; use these to build automated agency contact routing for citizen-services applications.
  5. Check the updatedDate field on records to detect stale entries; refresh your local copy when records have been updated more recently than your cached version.
  6. Combine with the Federal Register API to cross-reference which agencies are actively publishing rulemaking documents, providing a signal of regulatory activity.

Known gotchas

Related routes

Pull demographic data from the US Census Bureau API
api.census.gov · 6 steps · unrated
Pull employee data from UKG Pro using the Personnel API
developer.ukg.com · 5 steps · unrated
Query the SAM.gov Federal Hierarchy Public API to retrieve federal department, agency, and sub-tier organization data for routing grant or contract records
api.sam.gov · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans