0.2.11 • Published 4 years ago

propublica-congress-sdk v0.2.11

Weekly downloads
13
License
MIT
Repository
github
Last release
4 years ago

SDK for the ProPublica Congress API

An SDK for the ProPublica Congress API, written in Typescript.

Currently a work-in-progress, but has a majority of the endpoints available.

Usage

const client = new CongressAPI('my_api_key');

const result = client.api.getVotesForDateRange(}
  chamber: 'senate',
  startDate: new Date('2019-06-20'),
  endDate: new Date('2019-07-13'),
);

result.then(res => console.log(res));

API

  • Votes

    • getRecentVotes
    • getRollCallVote
    • getVotesForDate
    • getVotesForDateRange
  • Members

    • getAllMembers
    • getMember
    • getNewMembers
    • getMembersForState
    • getLeavingMembers
    • getMemberVotePositions
    • getMemberVoteComparison
  • Floor Actions

    • getRecentFloorActions
    • getFloorActionsForDate
  • Committees

    • getAllCommittees
    • getCommittee
    • getRecentHearings
    • getCommitteeHearings
    • getSubcommittee

Missing Endpoints

  • Votes

    • personal explanations
  • Members

    • expenses
  • Bills

    • getRecentBills
    • getRecentBillsForMember
    • getRecentBillsForSubject
    • getUpcomingBills
    • getBill
    • getAmendmentsForBill
    • getSubjectsForBill
    • getRelatedBillsForBill
    • getCosponsorsForBill
    • searchSubjects
    • searchBills
  • Statements

    • getRecentStatements
    • getStatementsForDate
    • getStatementsForSearch
    • getStatementSubjects
    • getStatementsForSubject
    • getStatementsForMember
    • getStatementsForBill
    • getRecentCommitteeStatements
    • getCommitteeStatementsForDate
    • getCommitteeStatementsForSearch
  • Nominations

    • getRecentNominations
    • getNomination
    • getNomineesForState
  • Lobbying

    • getRecentFilings
    • getFilingsForSearch
    • getFiling
  • Other

    • getStatePartyCounts

API subject to change.

0.2.11

4 years ago

0.2.10

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago