Congress in photos, a civic hacking success story


For the last 5 years or more, we’ve maintained a dataset of photos of members of Congress, mostly manually, and published them as zip files. It worked, but wasn’t a great process for us or for people using the photos. We also weren’t 100% certain about the copyright status of the photos, or whether a contractor’s copyright might be involved.

But thanks to an enthusiastic contributor, and an ensuing burst of [discussion]( and [work](, all of that’s been fixed up!

We now help manage a new [public domain dataset of photos of members of Congress]( Contribution is much easier, and collection is automated, by web-crawling the [Government Printing Office’s Member Guide]( and downloading their photos.

The photos are hosted on Github, so you can easily download the entire dataset through git. Or, since we’re using Github Pages to host the files on the web, you can hotlink to photos via predictable URLs. URLs are constructed using the available sizes (`original`, `450×550`, or `225×275`) and a member of Congress’ Bioguide ID, like so:

> [](
> [×550/L000551.jpg](×550/L000551.jpg)
> [×275/L000551.jpg](×275/L000551.jpg)

Bioguide IDs are a standard unique identifer for members of Congress, taken from the [Congressional Bioguide]( They can be found in other official and community datasets about Congress, like the unitedstates project’s [bulk data on legislators](, or [Sunlight’s Congress API](

This project, simple as it is, is a textbook example of civic volunteerism in the open source world. [Hugo van Kemenade]( was intrigued by [Matthew Skomarovsky]( and [Rebecca Lieberman](’s horrifying [composite of members of Congress](, and noticed that the photos Skomarovsky used were collected manually. After [having his own fun]( compositing photos, he wrote a crawler for photos of members of Congress from Wikipedia and [submitted it for inclusion]( in our Congress API.

After a bunch of discussion about using official sources and copyright, Public Knowledge’s [Michael Weinberg]( finally picked up an actual phone and [called the GPO]( to get an assurance that GPO’s Member Guide’s images were public domain. Hugo rewrote the crawler to use the Guide instead and [re-submitted it](, which we accepted and then moved to [its own repository]( After an [absurdly detailed discussion]( over appropriate photo sizing strategy, we finalized the dataset.

The more people that use the photos, the easier it will be to keep them complete and timely. Both Sunlight and [GovTrack]( already make use of the images in our projects, and it’s [seeing use]( in others’ too. Collecting and using photos of members of Congress is a really basic thing – it should be a Solved Problem. Thanks to Hugo van Kemenade, Michael Weinberg, and the other participants for making it one.