National FOIA Portal API
The National FOIA Portal publishes a JSON:API web service on api.foia.gov covering agency components, the agency taxonomy, annual and quarterly FOIA report data, and Chief FOIA Officers Council meetings, committees, councils and pages. Its 24 read operations are described by a first-party Swagger 2.0 contract maintained in the usdoj GitHub organization and rendered at foia.gov/swagger.html. The same host also serves each agency's annual FOIA report as XML conforming to the FOIA Annual Report XML schema, a NIEM IEPD. Requests carry a free api.data.gov key in an X-API-Key header.
National FOIA Portal API is one of 6 APIs that Department of Justice publishes on the APIs.io network, described by a machine-readable OpenAPI specification.
Tagged areas include Annual Report, FOIA, and XML. The published artifact set on APIs.io includes API documentation, an API reference, and an OpenAPI specification.
This API exposes 24 operations across 24 paths, organized into 8 resource areas, and defines 13 schemas. It is described by OpenAPI 2.0, at version Versioning not supported.
Requests are made against the base URL https://api.foia.gov/api.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 1
National FOIA Portal API declares
1 security scheme
for authenticating requests.
An API key is passed in the header as X-API-Key (APIKeyHeader).
By default, every request must be authenticated.
Paths & Operations 24
Across 24 paths, the API surfaces 24 operations — 24 GET. They span 8 resource areas: Agency Component, Agency Taxonomy, Annual FOIA Report Data, Quarterly FOIA Report Data, CFO Meeting, CFO Committee, CFO Council, CFO Page. Each is listed below with its method, path, parameters, and response codes.
Schemas 13
The contract defines 13 schemas that model the data the API accepts and returns. The most detailed are taxonomy_term--agency (4 properties), node--agency_component (4 properties), paragraph--attachments (4 properties), paragraph--link_or_file (4 properties). Each schema is shown below with its type and property counts.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from Department of Justice 5
Other APIs Department of Justice publishes across the network.
This is an independent, third-party profile of National FOIA Portal API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.
The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.
Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.
info@apievangelist.com
·
Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and
you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.