api.congress.gov icon indicating copy to clipboard operation
api.congress.gov copied to clipboard

Inaccurate representative data for members endpoint when using currentMember=true

Open codybanister opened this issue 1 year ago • 1 comments
trafficstars

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]&currentMember=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)

codybanister avatar Aug 15 '24 06:08 codybanister