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 bill API

Returns bill data from the API

Library of Congress bill 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 Bill. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and a GitHub repository.

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

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

16 operations 16 paths 25 schemas 16 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 bill 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 16

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

bill 16

Returns bill data from the API

GET
/bill
Returns a list of bills sorted by date of latest action
5 params → 200400
GET
/bill/{congress}
Returns a list of bills filtered by the specified congress, sorted by date of latest action
6 params → 200400
GET
/bill/{congress}/{billType}
Returns a list of bills filtered by the specified congress and bill type, sorted by date of latest action.
7 params → 200400
GET
/bill/{congress}/{billType}/{billNumber}
Returns detailed information for a specified bill.
8 params → 200400
GET
/bill/{congress}/{billType}/{billNumber}/actions
Returns the list of actions on a specified bill.
8 params → 200400
GET
/bill/{congress}/{billType}/{billNumber}/amendments
Returns the list of amendments to a specified bill.
8 params → 200400
GET
/bill/{congress}/{billType}/{billNumber}/committees
Returns the list of committees associated with a specified bill.
6 params → 200400
GET
/bill/{congress}/{billType}/{billNumber}/cosponsors
Returns the list of cosponsors on a specified bill.
9 params → 200400
GET
/bill/{congress}/{billType}/{billNumber}/relatedbills
Returns the list of related bills to a specified bill.
6 params → 200400
GET
/bill/{congress}/{billType}/{billNumber}/subjects
Returns the list of legislative subjects on a specified bill.
8 params → 200400
GET
/bill/{congress}/{billType}/{billNumber}/summaries
Returns the list of summaries for a specified bill.
6 params → 200400
GET
/bill/{congress}/{billType}/{billNumber}/text
Returns the list of text versions for a specified bill.
6 params → 200400
GET
/bill/{congress}/{billType}/{billNumber}/titles
Returns the list of titles for a specified bill.
8 params → 200400
GET
/law/{congress}
Returns a list of laws filtered by the specified congress.
4 params → 200400
GET
/law/{congress}/{lawType}
Returns a list of laws filtered by specified congress and law type (public or private).
5 params → 200400
GET
/law/{congress}/{lawType}/{lawNumber}
Returns a law filtered by specified congress, law type (public or private), and law number.
6 params → 200400

Schemas 25

The contract defines 25 schemas that model the data the API accepts and returns. The most detailed are LawNumber (23 properties), BillDetail (12 properties), Law (11 properties), CoSponsor (10 properties). Each schema is shown below with its type and property counts.

BillSummaries
array
cboCost
object
4 properties
Amendments
object
7 properties
CoSponsor
object
10 properties
Bill
object
10 properties
LawNumber
object
23 properties
Committee
object
6 properties
Law
object
11 properties
policyArea
object
1 property
formats
object
2 properties
Sponsor
object
9 properties
Text
array
textVersions
object
3 properties
RelatedBills
object
4 properties
legislativeSubjects
object
2 properties
billSummariesArray
object
5 properties
Titles
array
relationshipDetails
object
2 properties
Actions
object
5 properties
BillDetail
object
12 properties
committeeReport
object
2 properties
Subjects
object
2 properties
laws
object
2 properties
Activity
object
2 properties
titlesArray
object
6 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

loc-bill-api-openapi.yml Raw ↑

Other APIs Library of Congress publishes across the network.

Chronicling America API
Library of Congress amendments 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
Library of Congress daily-congressional-record API
Where this information came from

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