Political Influence in U.S. an API Call Away

Kin Lane
Aug. 01 2011, 11:00AM EDT

Government 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.

Kin Lane I am a programmer and entrepreneur, with a focus on the business of APIs. I study how APIs are changing the business landscape, and the rise of API driven developer ecosystems. I share my insights by blogging on API Evangelist and ProgrammableWeb, and put into action as API evangelist for CityGrid.

Comments

Comments(5)

User HTML

  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
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

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.