api.congress.gov
api.congress.gov copied to clipboard
Inaccurate representative data for members endpoint when using currentMember=true
I'm iterating through members of Congress using the provided pagination in the members endpoint. This is the final pagination endpoint before it returns null and it's where I noticed the issue.
https://api.congress.gov/v3/member?api_key=[INSERT_KEY]¤tMember=true&format=json&limit=250&offset=500
I'm noticing that at least two Congressional representatives, George Santos and Dianne Feinstein, are still returned even with the currentMember=true qualifier. Mr. Santos was expelled from Congress and Mrs. Feinstein passed away, both last year.
However, both of their detailed API endpoints are showing currentMember: false.
https://api.congress.gov/v3/member/S001222?api_key=[INSERT_KEY] (Santos) https://api.congress.gov/v3/member/F000062?api_key=[INSERT_KEY] (Feinstein)