The project is in a healthy, maintained state
This is a ruby gem for looking up your member of congress. It uses whoismyrepresentative.com to lookup reps by zipcode.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

 Project Readme

FederalRepLookup

This is a tool for looking up Federal Congresspeople based on zipcode they represent.

Installation

This can be installed by adding the gem to you Gemfil

gem 'federal_rep_lookup'

Usage

To get a congressperson, do the following:

result = FederalRepLookup.lookup(zipcode: '70818')

rep = result.first
rep.name
#=> 'Garret Graves'
rep.party
#=> 'Republican'
rep.state
#=> 'LA'

License

The gem is available as open source under the terms of the MIT License.