A thin wrapper for the ProPublica Free the Files API
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
LICENSE
README.md
ftf.js
package.json

README.md

node-ftf

A thin wrapper for ProPublica's Free The Files API

The Free The Files API is subject to ProPublica's Data Terms of Use.

Not affiliated with ProPublica.

Installation

npm install ftf

Getting Started

var ftf = require('ftf');

See the documentation for details on all the API routes.

Get all the markets

ftf.markets(function(resp){
  console.log(resp);
});

Get a single market by slug

ftf.market('boston-manchester', function(resp){
  console.log(resp);
});

Get a station by callsign

ftf.station('WLNY-TV', function(resp){
  console.log(resp);
});

Get all the committees

ftf.committees(function(resp){
  console.log(resp);
});

Get a committee by slug

ftf.committee('priorities-usa-action', function(resp){
  console.log(resp);
});

Get a filing by id

ftf.station('15399', function(resp){
  console.log(resp);
});

Tests

npm test