The Scoop

  • Home
  • Projects
  • About The Scoop
  • Fixing Journalism
  • Medill Links
  • Departments
    • API
    • Apple
    • Asides
    • Broadcast
    • Campaign Finance
    • Car Tools
    • Data
    • DIY
    • django
    • Fed Data
    • FOIA
    • General
    • IRE
    • Journalism
    • Local Data
    • Mapping
    • Miscellany
    • NonGov Data
    • Online
    • Paper Trail
    • Presentations
    • Public Records
    • Python
    • Rails
    • SLA
    • Social Network Analysis
    • Sports
    • State Data
    • Teaching
    • Work
    • XML
  • Subscribe via RSS

How APIs Help the Newsroom

July 12th, 2010  |  Published in API  |  3 Comments

As nice as it is to get praised for the civic-mindedness of your work, the not-so-secret secret about APIs at The Times is that we’re the biggest consumer of them. The flexibility and convenience that the APIs provide make it easier to cut down on repetitive manual work and bring new ideas to fruition. Other news organizations can do the same.

This week, for example, we launched a page to track Republican senators’ positions on the nomination of Elena Kagan to the Supreme Court. The fabulous graphics department has done things like this in the past, such as with the House vote on health care. Both of those graphics were assembled from lots of different pieces of information – electoral results and previous votes among them – and the Kagan data includes stuff like whether the senator in question is running for re-election this year.

You could, of course, ask people to gather up all that information, but if you’re going to do something like this more than once, it makes sense to have a way to automate as much as possible. That’s where the APIs come in. For the Kagan graphic, we used the NYT Congress API to pull in information on senators and their votes, which leaves the gathering of information about their statements on Kagan as the lone manual task. In other words, only the stuff that is specific to this app requires manual effort.

Similarly, the new Districts API we released plays well with our other APIs, so that I was able to build a simple demo app that takes advantage of the fact that our Congress API, among others, can return the current member for a particular district.

For newsrooms, the utility of APIs goes beyond creating Web apps. Making data available via APIs is a little like giving the newsroom the ability to ask and answer questions without having to tie down a CAR person for long periods of time. APIs can provide data in whatever format you choose, which means that a wider range of people can take advantage, from graphic artists used to working with XML to reporters comfortable with CSV files. When your data is more accessible and flexible, the possibilities for doing things with it expands.

So if you have a big local election coming up, having an API for candidate summary data makes it easier to do a quick-and-dirty internal site for reporters and editors to browse, but also gives graphics folks a way to pull in the latest data without having to ask for a spreadsheet. Chances are that if serious data analysis is what you need, that’ll be done in some desktop application or database server anyway. The API is just a messenger, albeit one that is always on and able to spawn lots of ideas and experiments.

If you’re looking to build an API, remember that it’s just a Web application delivering data in a structured format (XML and JSON being two popular formats these days). There are lots of options in terms of what you use to build and serve an API, so it’s important to pay attention to the design: which information you’ll deliver, and how. Being a significant user of your own API is really important, too; it’ll give you the best sense of how well you’ve designed your responses, and what you might be missing.

Responses

Feed Trackback Address
  1. Reporting with Data: How the New York Times Uses APIs says:

    July 14th, 2010 at 12:02 am (#)

    [...] database editor Derek Willis provides an overview of how APIs help the newsroom on his personal blog. Willis provides glimpses behind the development of the Kagan vote tracker and [...]

  2. Bookmarks van juli 7th tot juli 14th | .: zerocontent - Blog :. says:

    July 14th, 2010 at 5:05 am (#)

    [...] How APIs Help the Newsroom :: The Scoop – [...]

  3. Jessica Baumgart says:

    July 16th, 2010 at 4:44 pm (#)

    Hey Derek, thanks for pointing out more advantages of bringing nifty technology into newsrooms. We folks behind Needle came up with some comparisons of our database software to APIs. Needle does a lot of things they do, but it doesn’t require computer programming. Thoughts?

Leave a Response

Recent Comments

  • Dave Stanton on A GitHub for Data?
  • Jessica Baumgart on How APIs Help the Newsroom
  • Bookmarks van juli 7th tot juli 14th | .: zerocontent - Blog :. on How APIs Help the Newsroom
  • Reporting with Data: How the New York Times Uses APIs on How APIs Help the Newsroom
  • Brad B on Six Reasons To Look Past Caspio

Recent Posts

  • A GitHub for Data?
  • How APIs Help the Newsroom
  • Big Numbers, Low Impact
  • Using the NYT Congress API with … Excel?
  • An Even Better CAR Conference?

Linking Out

  • Prop 19 Campaign Contributions - Los Angeles Times
  • Introducing the Open State Project API - Sunlight Labs: Blog
  • Teaching Geo-Spatial Thinking in High School Social Studies
  • NYC's Worst Landlords Watchlist | NYC Public Advocate
  • Chicago Tribune 2009 Illinois School Report Cards
  • 5,800 dead in Ohio still on voter rolls | The Columbus Dispatch
  • Nebraska Cornhuskers football rosters database - Omaha.com
  • offensive politics llc - House Data project
  • Cannibalize Business Development by Popularizing your API - Shaival Shah's Blog
  • Using the DocumentCloud API
  • Centralized logging for fun and profit! | Revolution Systems
  • AP IMPACT: Katrina a tale of SBA failure - Yahoo! News
  • RaceTracker is Up-To-Date for Today's Primaries - Blog - OpenCongress
  • Campaign cash: what interest groups are spending on 2010 midterm elections (washingtonpost.com)
  • Using Freebase Gridworks to Create Linked Data | Jeni's Musings


©2010 The Scoop
Powered by WordPress using the Gridline Lite theme by Graph Paper Press.