Skip to content

caseycesari/node-ftf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

About

A thin wrapper for the ProPublica Free the Files API

Resources

License

Stars

Watchers

Forks

Packages

No packages published