Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A Ruby wrapper for the FCC Content API
Latest commit 622afca @adelevie commit
Failed to load latest commit information.
fixtures/vcr_cassettes VCR is working!
lib commit
test VCR is working!
.travis.yml travis.yml
Gemfile added rake to gemfile added travis badge
Rakefile initial commit
fcc-content-api.gemspec initial commit

Build Status

The FCC Content API allows you to programmatically access much of the content accessible on

fcc-content-api is a lightweight Ruby wrapper for the Federal Communication Commission's Content API. The query interface resembles ActiveRecord. The response objects are simple Ruby Hashes and Arrays.

The FCC Content API is powered by the Drupal Content API Module.


First, familiarize yourself with the FCC Content API REST Documentation.

The FccContentApi::Content object is where you'll do most of the querying.

results = FccContentApi::Content.where(:search_string => "broadband").all
results.first # => {"count"=>"587", "pages"=>58, "itemsPerPage"=>10, "currentPage"=>0}
results[1] # => {"nid"=>"38802", "title"=>"PSHSB Seeks Comment on Broadband Waiver Transition Process", "created"=>"2012-04-06", "changed"=>"2012-04-09", "type"=>"edoc", "webUrl"=>"", "uri"=>""}

Options for FccContentApi#where map 1-to-1 to the query options listed in the official FCC docs.

For example, if you want proceedings, related edocs and comments:

FccContentApi::Content.where(:edocs => "true").where(:type => "proceeding").where(:comments => "true").all

# or pass a single Hash:
FccContentApi::Content.where({:edocs => "true", :type => "proceeding" :comments => "true"}).all

If you know the id of the object you want, use FccContentApi::Content#find:



gem install fcc-content-api or:

# Gemfile
gem "fcc-content-api"

More Info

For more information, please visit the FCC's Developers page and the FCC's Github page.

Something went wrong with that request. Please try again.