All this week I have been publishing videos about APIs, from how data journalists use APIs and the jargon involved, to understanding the data formats they return. In this final video — first made for students on the MA in Data Journalism at Birmingham City University — I explain how to use an R notebook to fetch data from one particular API, postcodes.io.
In two previous videos this week I introduced APIs for data journalists, and explained some of the jargon involved. In a short third video — first made for students on the MA in Data Journalism at Birmingham City University and shared as part of a series of video posts — I explain how to understand the data formats you’re likely to come across: JSON and XML.
One useful tool to install in your browser to help with this process is JSONView.
Yesterday I shared a video introducing APIs for data journalists. In this video — first made for students on the MA in Data Journalism at Birmingham City University and shared as part of a series of video posts — I explain some of the jargon you’re likely to come across when using an API.
That includes ‘functions’ and ‘methods’ that allow you to request certain types of data; ‘arguments’ that allow you to specify what you want data about, or what format; and API ‘keys’ that act as passwords to access the data.
APIs can be very useful sources of data for data journalists. In this video — first made for students on the MA in Data Journalism at Birmingham City University and shared as part of a series of video posts — I explain what an API is and how they have been used in a variety of data-driven stories.
Links mentioned in the video:
In an interview with Kirstin Bunce for OJB, interactive journalist Olivia Vane explains the production process behind ‘Singing in tongues. What Spotify data show about the decline of English.’
Earlier this year The Economist team published an interactive analysis delving into 5 years of Spotify’s data in 70 countries. It was a large data project that started with a scraper — by data journalist Dolly Setton, who was interested in the role of language on the platform — but getting the data was just the beginning.
“I thought it was an interesting experience at the beginning, exploring and figuring out together what was the heart of the piece,” says Olivia. “We didn’t realise what the story was going to be until sort of midway through.”Continue reading
As I say in the introduction, I focused on “the areas that are most strongly contested and hold the most importance for the development of news reporting”, namely:
- competition over copyright between individuals, news organisations, and social media platforms;
- the move to hyperlocal and international-scope publishing;
- the tensions between privacy and freedom of speech; and
- attempts by governments and corporations to control what happens online.
These and other developments (such as the growth of APIs which “connect the information that we consume with the information we increasingly embody”) are then explored with specific reference to issues of editorial independence, public interest and public service, pluralism and diversity, accountability, and freedom of expression.
That’s quite a lot to cover in 4,000 words. So for those who want to explore some of the issues or cases in more detail – or follow recent updates (and a lot has happened even since finishing the report) – I’ve been collecting related links at this Delicious ‘stack’, and on an ongoing basis at this tag.
This is a draft from a book chapter on data journalism (part 1 looks at finding data; part 2 at interrogating data; part 3 at visualisation, and 4 at visualisation tools). I’d really appreciate any additions or comments you can make – particularly around tips and tools.
Wikipedia defines a mashup particularly succinctly, as “a web page or application that uses or combines data or functionality from two or many more external sources to create a new service.” Those sources may be online spreadsheets or tables; maps; RSS feeds (which could be anything from Twitter tweets, blog posts or news articles to images, video, audio or search results); or anything else which is structured enough to ‘match’ against another source.
This ‘match’ is typically what makes a mashup. It might be matching a city mentioned in a news article against the same city in a map; or it may be matching the name of an author with that same name in the tags of a photo; or matching the search results for ‘earthquake’ from a number of different sources. The results can be useful to you as a journalist, to the user, or both.
Why make a mashup?
Mashups can be particularly useful in providing live coverage of a particular event or ongoing issue – mashing images from a protest march, for example, against a map. Creating a mashup online is not too dissimilar from how, in broadcast journalism, you might set up cameras at key points around a physical location in anticipation of an event from which you will later ‘pull’ live feeds: in a mashup you are effectively doing exactly the same thing – only in a virtual space rather than a physical one. So, instead of setting up a feed at the corner of an important junction, you might decide to pull a feed from Flickr of any images that are tagged with the words ‘protest’ and ‘anti-fascist’. Continue reading