LibraryOfCongress / api.congress.gov

congress.gov API
605 stars 38 forks source link

(bill actions): committee action is missing the related committee (id) #194

Open ryparker opened 5 months ago

ryparker commented 5 months ago

HR 1376 (118th) has a committee action that does not include which committee it is related to.

Fetch bill actions:

curl https://api.congress.gov/v3/bill/118/hr/1376/actions?format=json&limit=100&api_key=<API_KEY> 

Full response:

{
    "actions": [
        {
            "actionCode": "H12410",
            "actionDate": "2023-03-30",
            "calendarNumber": {
                "calendar": "U00020"
            },
            "sourceSystem": {
                "code": 2,
                "name": "House floor actions"
            },
            "text": "Placed on the Union Calendar, Calendar No. 20.",
            "type": "Calendars"
        },
        {
            "actionCode": "H12300",
            "actionDate": "2023-03-30",
            "committees": [
                {
                    "name": "Energy and Commerce Committee",
                    "systemCode": "hsif00",
                    "url": "https://api.congress.gov/v3/committee/house/hsif00?format=json"
                }
            ],
            "sourceSystem": {
                "code": 2,
                "name": "House floor actions"
            },
            "text": "Committee on Energy and Commerce discharged.",
            "type": "Discharge"
        },
        {
            "actionCode": "5500",
            "actionDate": "2023-03-30",
            "committees": [
                {
                    "name": "Energy and Commerce Committee",
                    "systemCode": "hsif00",
                    "url": "https://api.congress.gov/v3/committee/house/hsif00?format=json"
                }
            ],
            "sourceSystem": {
                "code": 9,
                "name": "Library of Congress"
            },
            "text": "Committee on Energy and Commerce discharged.",
            "type": "Committee"
        },
        {
            "actionCode": "H12200",
            "actionDate": "2023-03-30",
            "committees": [
                {
                    "name": "Intelligence (Permanent Select) Committee",
                    "systemCode": "hlig00",
                    "url": "https://api.congress.gov/v3/committee/house/hlig00?format=json"
                }
            ],
            "sourceSystem": {
                "code": 2,
                "name": "House floor actions"
            },
            "text": "Reported by the Committee on Intelligence. H. Rept. 118-32, Part I.",
            "type": "Committee"
        },
        {
            "actionCode": "5000",
            "actionDate": "2023-03-30",
            "committees": [
                {
                    "name": "Intelligence (Permanent Select) Committee",
                    "systemCode": "hlig00",
                    "url": "https://api.congress.gov/v3/committee/house/hlig00?format=json"
                }
            ],
            "sourceSystem": {
                "code": 9,
                "name": "Library of Congress"
            },
            "text": "Reported by the Committee on Intelligence. H. Rept. 118-32, Part I.",
            "type": "Committee"
        },
        {
            "actionCode": "H11000",
            "actionDate": "2023-03-10",
            "committees": [
                {
                    "name": "Health Subcommittee",
                    "systemCode": "hsif14",
                    "url": "https://api.congress.gov/v3/committee/house/hsif14?format=json"
                }
            ],
            "sourceSystem": {
                "code": 1,
                "name": "House committee actions"
            },
            "text": "Referred to the Subcommittee on Health.",
            "type": "Committee"
        },
        {
            "actionCode": "H19000",
            "actionDate": "2023-03-07",
            "sourceSystem": {
                "code": 1,
                "name": "House committee actions"
            },
            "text": "Ordered to be Reported by Voice Vote.",
            "type": "Committee"
        },
        {
            "actionCode": "H15000-B",
            "actionDate": "2023-03-07",
            "committees": [
                {
                    "name": "Intelligence (Permanent Select) Committee",
                    "systemCode": "hlig00",
                    "url": "https://api.congress.gov/v3/committee/house/hlig00?format=json"
                }
            ],
            "sourceSystem": {
                "code": 1,
                "name": "House committee actions"
            },
            "text": "Committee Consideration and Mark-up Session Held.",
            "type": "Committee"
        },
        {
            "actionCode": "H11100",
            "actionDate": "2023-03-03",
            "committees": [
                {
                    "name": "Energy and Commerce Committee",
                    "systemCode": "hsif00",
                    "url": "https://api.congress.gov/v3/committee/house/hsif00?format=json"
                }
            ],
            "sourceSystem": {
                "code": 2,
                "name": "House floor actions"
            },
            "text": "Referred to the Committee on Intelligence (Permanent Select), and in addition to the Committee on Energy and Commerce, for a period to be subsequently determined by the Speaker, in each case for consideration of such provisions as fall within the jurisdiction of the committee concerned.",
            "type": "IntroReferral"
        },
        {
            "actionCode": "H11100",
            "actionDate": "2023-03-03",
            "committees": [
                {
                    "name": "Intelligence (Permanent Select) Committee",
                    "systemCode": "hlig00",
                    "url": "https://api.congress.gov/v3/committee/house/hlig00?format=json"
                }
            ],
            "sourceSystem": {
                "code": 2,
                "name": "House floor actions"
            },
            "text": "Referred to the Committee on Intelligence (Permanent Select), and in addition to the Committee on Energy and Commerce, for a period to be subsequently determined by the Speaker, in each case for consideration of such provisions as fall within the jurisdiction of the committee concerned.",
            "type": "IntroReferral"
        },
        {
            "actionCode": "Intro-H",
            "actionDate": "2023-03-03",
            "sourceSystem": {
                "code": 9,
                "name": "Library of Congress"
            },
            "text": "Introduced in House",
            "type": "IntroReferral"
        },
        {
            "actionCode": "1000",
            "actionDate": "2023-03-03",
            "sourceSystem": {
                "code": 9,
                "name": "Library of Congress"
            },
            "text": "Introduced in House",
            "type": "IntroReferral"
        }
    ],
    "pagination": {
        "count": 12
    },
    "request": {
        "billNumber": "1376",
        "billType": "hr",
        "billUrl": "https://api.congress.gov/v3/bill/118/hr/1376?format=json",
        "congress": "118",
        "contentType": "application/json",
        "format": "json"
    }
}

Notice how the following action does not have a committees prop/value.

     {
            "actionCode": "H19000",
            "actionDate": "2023-03-07",
            "sourceSystem": {
                "code": 1,
                "name": "House committee actions"
            },
            "text": "Ordered to be Reported by Voice Vote.",
            "type": "Committee"
        },

Because this action seems to be related to a specific committee I had expected the committees prop to be included.


Other instances of this issue:

104PL104 commented 5 months ago

Thank you for pointing this out, @ryparker. We will do some development to address the issue.

In case you are interested, here is some explanation and a visual aide of what has to be done: You can see that the "Ordered to be reported" action does not have an "Action By" row that informs you that the House Intelligence committee (hlig00) is the "actor."

image