Political Influence in U.S. an API Call Away

Kin Lane, August 1st, 2011

Influence Explorer TextGovernment watchdogs Sunlight Labs has released a new Influence Explorer Text API. The new API provides rich data on the political influence of individuals and organizations in Washington DC. Last month Sunlight Labs released Inbox Influence, a new tool that allows you to see the political contributions of the people and organizations, while viewing emails in Gmail. The Influence Explorer Text API provides developers with the same data, to build their own political influence applications and plugins.

The Influence Explorer Text API consists of only one endpoint and it takes only one parameter, the text to process, with a variety of influence data being returned in a JSON format. To demonstrate the power of the API, here is an excerpt from a recent political article:

Last year, as [Rep. Darrell Issa] began recruiting for his committee, he selected Peter Warren, a lobbyist for the student loan industry. Warren had been president and executive vice president of government affairs of the Education Finance Council (EFC), a trade association for student loan companies and nonprofits, since 2004.

Submitting this text to the endpoint:
The Influence Explorer Text API returns:

Analyzing the data returned you can see that Darrell Issa is a member of the House (entity_data.seat_label) and that he’s raised $4.7M over his career (entity_data.campaign_finance.contribution_total). Peter Warren is listed a registered lobbyist (entity_data.lobbying.is_lobbyist) who worked for the Education Finance Council. The Education Finance Council lobbies on education issues (entity_data.lobbying.top_issues) and gives about two-thirds of its campaign contributions to Republicans (entity_data.campaign_finance.recipient_breakdown).

Each entity match returns both the standard name (entity_data.name) and the exact string matched in the text (matched_text), as well as the type of entity (individual, organization or politician) and various metadata. Each entity also includes the Transparency Data ID, which can be used to pull back lots more information from Sunlight Labs Transparency Data API.

The API is just a start, and far from perfect. But combined with other government data sources such as U.S. Department of Labor’s new service, developers can build extremely valuable applications and data visualizations, that provide greater transparency into how our political system operates.

Tags: Gov
Both comments and pings are currently closed.

5 Responses to “Political Influence in U.S. an API Call Away”

August 1st, 2011
at 12:48 pm
Comment by: andy

looks like you copied this blog post almost wholesale from the source with no attribution?

i’m a fan of those guys and they deserve the credit, don’t you agree

August 1st, 2011
at 12:53 pm
Comment by: Kin Lane

Hi Andy…I thank you for the concern. I copied the script and script explanation from their blog post, it was a great representation. The rest I wrote by myself, I felt my post and linking for the Influence Explorer Text API, Inbox Influence, and Transparency Data AP all shows my thanks for their amazing effort and work.

August 2nd, 2011
at 9:43 pm
Comment by: More Government Data with Federal Register API | API Evangelist

[...] reporting on multiple government APIs lately with, “Political Influence in U.S. an API Call Away” and “More Government Data with U.S. Department of Labor API“. With all the [...]

August 7th, 2011
at 8:01 am
Comment by: 34 New APIs: Political Influence, Cloudwords, Font Kit Publishing

[...] week we had 34 new APIs added to our API directory including one to measure political influence in the U.S. There was also an event online community service, web usable font library service, automatic check [...]

August 8th, 2011
at 4:14 am
Comment by: API måndag – Jonas Lejon vs PRV, Får API, politiskt inflytande « API – Mashup.se

[...] inflytande via API Ett nytt intressant API analyserar texter och ger information om de amerikanska politiker, organisationer och lobbyister [...]

Follow the PW team on Twitter

ProgrammableWeb
APIs, mashups and code. Because the world's your programmable oyster.

John Musser
Founder, ProgrammableWeb

Adam DuVander
Executive Editor, ProgrammableWeb. Author, Map Scripting 101. Lover, APIs.