Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby wrappers for open government APIs around the web
Ruby

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
generators/govkit
lib
spec
.document
.gitignore
LICENSE
README.markdown
Rakefile
USAGE
VERSION
govkit.gemspec
init.rb

README.markdown

Govkit

Govkit is a Ruby gem that provides simple access to open government APIs around the web, including:

  • OpenCongress, which has an API for federal bills, votes, people, and news and blog coverage
  • The Open States project, which has a RESTful API for accessing data about state legislators, bills, votes, etc.
  • Project Vote Smart, which has an API with congressional addresses, etc.
  • Follow The Money, whose API reveals campaign contribution data for state officials.

Installation

From gemcutter:

gem install govkit

Setup

Add govkit to your environment.rb or Gemfile

Run ./script/generate govkit to copy a config file into config/initializers/govkit.rb. You will need to add your API keys to this config file.

Examples

>> Govkit::OpenStates::State.find_by_abbreviation('CA')
>> Govkit::VoteSmart::Address.find(votesmart_candidate_id)
>> GovKit::OpenCongress::Bill.find(:number => 5479, :type => 'h', :congress => '111')

Bugs? Questions?

Please join the Govkit Google Group, especially if you'd like to talk about a new feature and get announcements.

Report a bug on our Lighthouse page.

Govkit's main repo is on Github: http://github.com/opengovernment/govkit, where your contributions, forks, and feedback are greatly welcomed.

Copyright (c) 2010 Participatory Politics Foundation, released under the MIT license

Something went wrong with that request. Please try again.