Back when the internet was first created, it was created for researchers to share their information. With the open web and open technologies you can easily and simply share information. This information could be useful in many many ways.
From a researchers point of view this is brilliant, being able to find out information quickly and simply. However I am not a researcher, I am a developer. From my point of view this is even more awesome.
I can quickly and easily take someone elses information and make something new from it. APIs are just this. Think of them as your very own database of information to use.
Using APIs you can create some fantastic mashups. Take for example Slipstream‘s inglas.to. They are using Twitter’s database to show tweets about the Glastonbury music festival. Or there is the world famous instac.at.
I can quickly and easily take someone else’s information and make something new from it. APIs are just this. Think of them as your very own database of information to use.
Not all services offer an API. For those that don’t you can use tools such as YQL. Take for example The Orange Grove by the guys over at Marmalade on Toast. This site uses local weather data from YQL to position the sun / moon accordingly and the wind speed. Or Rob Hawkes’ Twitter sentiment tool.
Using YQL you can even really simply scrape simple websites.
Popular APIs include:
For a list of nearly 4000 APIs, check out the programmable web.
Of course you are using other people’s content, so you must respect their terms & conditions, if not they certainly have the right to ask you to stop and more.
Real world examples
Now I know what you are thinking, what real world examples are there? Apart from numerous advertising campaigns pulling in data from countless sources, you also have everyday apps using APIs. Take a look at Instagram, not only does it provide it’s own API but it also uses Foursquare’s API in the process. Many apps use various APIs but what about our clients? How can we add cool uses of APIs into our client sites? Well look at the list below for inspiration:
- SkiFix use an external source for their weather.
- Harrods Estates use an external data source for their local school listings.
- Carlsberg use APIs to pull in all their activity across the various social networks.
- Clarks use various APIs to pull in activity about their brand from various social networks.
- Then there is the Google Maps API. Probably one of the most used APIs. A great example of that is Jarred Christmas‘s site.
- Not to mention lanyrd, which is built on top of the Twitter API.
Have I missed any cool APIs? List them in the comments.
All cats (images) are belong to original owners (not us). Sorry we don’t know your names!