LibraryOfCongress / api.congress.gov

congress.gov API
605 stars 38 forks source link

(member details): inaccurate `"currentMember": ` values #202

Open ryparker opened 4 months ago

ryparker commented 4 months ago

The late representative McEachin, A. Donald (M001200) returns "currentMember": true, even though he passed away in 2022.

Request:

curl --location 'https://api.congress.gov/v3/member/M001200?format=json&api_key=<API_KEY>'

Response:

{
    "member": {
        "addressInformation": {
            "city": "Washington",
            "district": "DC",
            "zipCode": 20515
        },
        "bioguideId": "M001200",
        "birthYear": "1961",
        "cosponsoredLegislation": {
            "count": 976,
            "url": "https://api.congress.gov/v3/member/M001200/cosponsored-legislation"
        },
        "currentMember": true,
        "deathYear": "2022",
        "depiction": {
            "attribution": "Congressional Pictorial Directory",
            "imageUrl": "https://www.congress.gov/img/member/116_rp_va_4_mceachin_a_200.jpg"
        },
        "directOrderName": "A. Donald McEachin",
        "district": 4,
        "firstName": "A.",
        "honorificName": "Mr.",
        "invertedOrderName": "McEachin, A. Donald",
        "lastName": "McEachin",
        "middleName": "Donald",
        "officialWebsiteUrl": "https://mcclellan.house.gov/",
        "partyHistory": [
            {
                "partyAbbreviation": "D",
                "partyName": "Democratic",
                "startYear": 2017
            }
        ],
        "sponsoredLegislation": {
            "count": 70,
            "url": "https://api.congress.gov/v3/member/M001200/sponsored-legislation"
        },
        "state": "Virginia",
        "terms": [
            {
                "chamber": "House of Representatives",
                "congress": 115,
                "district": 4,
                "endYear": 2019,
                "memberType": "Representative",
                "startYear": 2017,
                "stateCode": "VA",
                "stateName": "Virginia"
            },
            {
                "chamber": "House of Representatives",
                "congress": 116,
                "district": 4,
                "endYear": 2021,
                "memberType": "Representative",
                "startYear": 2019,
                "stateCode": "VA",
                "stateName": "Virginia"
            },
            {
                "chamber": "House of Representatives",
                "congress": 117,
                "district": 4,
                "endYear": 2022,
                "memberType": "Representative",
                "startYear": 2021,
                "stateCode": "VA",
                "stateName": "Virginia"
            }
        ],
        "updateDate": "2024-02-26T19:36:17Z"
    },
    "request": {
        "bioguideId": "m001200",
        "contentType": "application/json",
        "format": "json"
    }
}
rbram commented 4 months ago

Hello. Thanks for your feedback. This has been fixed.

ryparker commented 4 months ago

This is occurring again for the same member M001200.

I also noticed George Santos (S001222) was recently marked "currrentMember": true as well.