How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Library of Congress treaty API

Returns treaty data from the API

Library of Congress treaty API is one of 25 APIs that Library of Congress publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include treaty. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and a GitHub repository.

This API exposes 7 operations across 7 paths, and defines 8 schemas. It is described by OpenAPI 3.0.3, at version 3.

Requests are made against a single base URL, /v3.

7 operations 7 paths 8 schemas 7 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
3
Base URL
https://www.loc.gov
Authentication
API Key
Resource Areas
1

Authentication & Security 1

Library of Congress treaty API declares 1 security scheme for authenticating requests. An API key is passed in the query as api_key (ApiKeyAuth). By default, every request must be authenticated.

Paths & Operations 7

Across 7 paths, the API surfaces 7 operations — 7 GET. Each is listed below with its method, path, parameters, and response codes.

treaty 7

Returns treaty data from the API

GET
/treaty
Returns a list of treaties sorted by date of last update.
5 params → 200400
GET
/treaty/{congress}
Returns a list of treaties for the specified congress, sorted by date of last update.
6 params → 200400
GET
/treaty/{congress}/{treatyNumber}
Returns detailed information for a specified treaty.
3 params → 200400
GET
/treaty/{congress}/{treatyNumber}/{treatySuffix}
Returns detailed information for a specified partitioned treaty.
4 params → 200400
GET
/treaty/{congress}/{treatyNumber}/actions
Returns the list of actions on a specified treaty.
5 params → 200400
GET
/treaty/{congress}/{treatyNumber}/{treatySuffix}/actions
Returns the list of actions on a specified partitioned treaty.
6 params → 200400
GET
/treaty/{congress}/{treatyNumber}/committees
Returns the list of committees associated with a specified treaty.
5 params → 200400

Schemas 8

The contract defines 8 schemas that model the data the API accepts and returns. The most detailed are treaty (9 properties), treatyCommittee (7 properties), treatyAction (5 properties), senatecommittee (3 properties). Each schema is shown below with its type and property counts.

Treaty
object
1 property
treatyCommittee
object
7 properties
TreatyCommittees
object
1 property
treaty
object
9 properties
TreatyDetail
object
1 property
TreatyActions
object
1 property
senatecommittee
object
3 properties
treatyAction
object
5 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

loc-treaty-api-openapi.yml Raw ↑

Other APIs Library of Congress publishes across the network.

Chronicling America API
Library of Congress amendments API
Library of Congress bill API
Library of Congress bound-congressional-record API
Library of Congress collections API
Library of Congress committee API
Library of Congress committee-meeting API
Library of Congress committee-print API
Library of Congress committee-report API
Library of Congress congress API
Library of Congress congressional-record API
Library of Congress crsreport API
Where this information came from

This is an independent, third-party profile of Library of Congress treaty 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.