ftf

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i ftf

Weekly Downloads

2

Version

0.0.1

License

none

Last publish

Collaborators

  • caseycesari