Giter Club home page Giter Club logo

Comments (1)

jonquandt avatar jonquandt commented on July 30, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.