Comments (1)
@manimittal15 -- the easiest way to track this is to use the Congressional Bill Status package associated with the individual bills -- there is a link to the billstatus in each BILLS package summary.
For example,
https://api.govinfo.gov/packages/BILLS-115s2248enr/summary?api_key=DEMO_KEY
{
"title": "An Act To amend title 38, United States Code, to authorize the Secretary of Veterans Affairs to provide certain burial benefits for spouses and children of veterans who are buried in tribal cemeteries, and for other purposes.",
"shortTitle": [{
"type": "measure",
"title": "Veterans Benefits and Transition Act of 2018"
}],
"collectionCode": "BILLS",
"collectionName": "Congressional Bills",
"category": "Bills and Statutes",
"dateIssued": "2018-12-21",
"detailsLink": "https://www.govinfo.gov/app/details/BILLS-115s2248enr",
"packageId": "BILLS-115s2248enr",
"download": {
"txtLink": "https://api.govinfo.gov/packages/BILLS-115s2248enr/htm",
"xmlLink": "https://api.govinfo.gov/packages/BILLS-115s2248enr/xml",
"pdfLink": "https://api.govinfo.gov/packages/BILLS-115s2248enr/pdf",
"modsLink": "https://api.govinfo.gov/packages/BILLS-115s2248enr/mods",
"premisLink": "https://api.govinfo.gov/packages/BILLS-115s2248enr/premis",
"zipLink": "https://api.govinfo.gov/packages/BILLS-115s2248enr/zip"
},
"related": {
"billStatusLink": "https://www.govinfo.gov/bulkdata/BILLSTATUS/115/s/BILLSTATUS-115s2248.xml"
},
That billStatusLink contains xml with information on actions related to the bill, showing changes in version, etc.
For this example, the latestAction is:
<latestAction>
<links />
<actionDate>2018-12-31</actionDate>
<text>Became Public Law No: 115-407.</text>
</latestAction>
This would let you know that you need to get the following package: PLAW-115publ407
Alternatively, you can access BILLSTATUS information via the API -- using BILLSTATUS as the collection. If you know the bill citation, you can create the packages link directly.
In this case, PLAW-115publ407 is not available in the system yet, so is not available via the API. Here's a full set of examples for a 116th Congress Bill, Bill Status, and Public Law
https://api.govinfo.gov/packages/BILLS-116s24enr/summary
https://api.govinfo.gov/packages/BILLSTATUS-116s24/summary
https://api.govinfo.gov/packages/PLAW-116publ1/summary
Packages are self-describing and have metadata based on the content within the package. On the UI, we have made some additional integrations available via our related documents feature to help show the relationships between different documents within the system, and this is on the roadmap to expose via the API as well. See #2
from api.
Related Issues (20)
- X-Rate-Limit-Remaining HOT 2
- Api Key Usage; Headers vs. query HOT 2
- Congressional Record for 03/23/2023 cut off at page H1409 HOT 2
- Bad bill links being improperly parsed out from Supreme Court Cases and other text (U.S. 1850; 405 U.S. 1030) HOT 2
- WayOut HOT 1
- Packages - set default granulesLink pagination to use offsetMark
- Related - CPRT to CPRT relationships
- Missing Bill Text XML for BILLS-118hr3571ih and BILLS-118hres383eh HOT 8
- Anti Virus software update
- Hello would My dreams officiall Pakistan off world now technologie ❓️
- Brian j Reinwald HOT 1
- Reinwald Brian
- Brian j Reinwald
- Search - new tab generated from /docs page returns error
- Search - add relatedLink to Search Service results
- need to add upcoming feature HOT 1
- Govinfo API key HOT 6
- 401 Errors HOT 8
- Smartscriptmatrix
- Retrieve CREC documents which have the property "Congress Member Speaking" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api.