Skip to main content

Bill

Bills and resolutions. For congresses covered by Congress.gov ingestion (currently the configured target congress, 119), rows carry real bill data — display title, latest action, source timestamps — refreshed hourly; other congresses have stub rows created from vote cross-references (bill id, type, number only). bill_id format: [bill_type][number]-[congress], e.g. hr3590-111.

GraphQL type: Bill · Connection: BillsConnection

Queries​

QueryReturnsDescription
allBills(filter, orderBy, first, last, before, after)BillsConnectionPaginated list with filtering and ordering
billById(id: BigInt!)BillLook up by primary key
billByBillId(billId: String!)BillLook up by unique billId

Fields​

FieldGraphQL TypeNotes
idBigIntPK
billIdStringCanonical ID in the form [bill_type][number]-[congress], e.g. hr3590-111. unique required
billTypeStringrequired. One of: hr, hres, hjres, hconres, s, sres, sjres, sconres
billNumberIntrequired
congressIntrequired
introducedAtDate
officialTitleString
shortTitleString
popularTitleString
statusStringCurrent bill status code per the unitedstates/congress taxonomy (INTRODUCED, REFERRED, ENACTED:SIGNED, etc.).
statusAtDatetime
sponsorBioguideIdStringFK
enactedAsLawTypeString
enactedAsNumberString
sourceUpdatedAtDatetime
createdAtDatetime
updatedAtDatetime
titleStringDisplay title from Congress.gov (the latest title for the bill).
policyAreaStringPrimary policy area assigned by CRS (populated by per-bill detail ingestion, task 0011).
latestActionStringText of the most recent action on the bill, from Congress.gov.
latestActionAtDateDate of the most recent action on the bill.

Relationships​

Belongs to​

FieldReturnsVia
legislatorBySponsorBioguideIdLegislator (nullable)sponsorBioguideId

Has many​

FieldReturnsVia
votesByRelatedBillIdVotesConnectionrelatedBillId
billCosponsorsByBillIdBillCosponsorsConnectionbillId
billCommitteesByBillIdBillCommitteesConnectionbillId
billSubjectsByBillIdBillSubjectsConnectionbillId
billSummariesByBillIdBillSummariesConnectionbillId

Example​

{
allBills(
filter: { congress: { equalTo: 119 }, billType: { equalTo: "hr" } }
orderBy: INTRODUCED_AT_DESC
first: 10
) {
nodes {
billId
officialTitle
shortTitle
status
introducedAt
}
}
}