I stumbled across this repository browsing around today. This is the type of thing that’s incredibly useful and I can see it in use for various projects involving journalism, media oversight, etc. Have a look: https://github.com/unitedstates/congress-legislators
From the Readme.md:
Members of the United States Congress (1789-Present), congressional committees (1973-Present), committee membership (current only), and presidents and vice presidents of the United States in YAML, JSON, and CSV format.