As part of my series on passing on the baton of knowledge, I will be looking at API, which stands for Application Programming Interface.
It is a way a website or service can allow integration of its content into other websites.
News organizations can develop APIs so their content can be customized with additional information at other web sites. It’s one more way for a news organization to participate in and make its content available to a larger online network.
See for example:
- The New York Times released an API in October 2008 for databases of federal campaign finance reports it had developed, so other sites could access the data and reuse it in different forms. The Times also relased an API for data on members of Congress and their voting records.
- In February 2009 the New York Times followed up with a release of an API for 28 years of its own articles, tagged for efficient searching.
- The Guardian has an “Open Platform” initiative that makes its news stories, including video and photos, as well as data and statistics vetted by Guardian editors, available via an API.
As part of the City journalism MA we have been learning how to use APIs with data journalist Paul Bradshaw.
Today I am going to show you how to use APIs using Google refine:
USING GOOGLE REFINE (don’t close the black box, and open using Chrome or Firefox without any other applications running)
We created a simple excel doc with 3 postcodes, and downloaded it into Google refine
+value, a command without the quotation marks
Need another plus before remaining string, +.json
Go to OJ blog
What’s changed in Json? Focused on geo branch
Copy expressions, call it latitude, click ok
do longitude now
You are able to combine this with the Police API data and find out even more information, such as crimes in a specific location.