https://polifluence.netlify.com
polifluence is a React / Redux / Node.js project that links legislation with campaign contributions. Search for a member of Congress to view their largest contributors by company or industry, or search for legislation to view its (co)sponsors and their contributors. polifluence combines data from ProPublica’s congress and member APIs with OpenSecrets’ contribution data.
| Landing | Document review | | ————- | ————- | | | |
polifluence’s API is built with Node.js and is tested with mocha/chai
Returns all members of congress as json in the following form:
firstName: # member's first name,
lastName: # member's last name,
shortTitle: # e.g. 'Sen.' or 'Rep.',
chamber: # Senate or House,
nextElection: # year member is next up for election,
title: # e.g., 'Senator 1st class',
party: # single letter representation of member's party (e.g., 'D', 'R', 'I'),
state: # state (or state-like entity) member represents,
crpId: # unique ID issued by Center for Responsive Politics,
memberId: # unique ID used by ProPublica and others,
website: # member's website,
billsSponsored: # array of bill numbers of bills sponsored by member,
billsCosponsored: # array of bill numbers of bills cosponsored by member,
portrait: # link to member of congress's portrait, courtesy of https://theunitedstates.io/,
topContributors: # list of top contributors by company,
topIndustries: # list of top contributors by industry,
lastUpdated: # the last time this object was refreshed. refreshed every 5 days, on request
Returns member object for member with memberId.
Returns contribution data for member with crpId.
Returns bills for member with memberId.
Returns array of bills in the following format:
id: # unique bill id, formatted as bill number - dash - congress number, e.g. 'HR1-115',
number: # bill number, e.g. 'HR1',
title: # title of bill,
shortTitle: # if available, a punchier title for the bill,
sponsor: # memberId of sponsor,
cosponsors: # array of memberIds of co sponsored,
introducedDate: # date bill was introduced,
enacted: # date bill was enacted,
housePassage: # date bill passed house,
senatePassage: # date bill passed senate,
summary: # if available, a summary of bill,
summaryShort: # if available, a punchier summary of the bill,
subject: # if available, the primary subject of the bill
Query in form ?term=[query]. Returns bills with titles/topics matching query.
Returns bill with billId
React / Redux front-end for searching data from the API.