Dr. Mark Humphrys

School of Computing. Dublin City University.

Home      Blog      Teaching      Research      Contact

My big idea: Ancient Brain


CA216      CA249      CA318

CA400      CA651      CA668

Web APIs

This page has examples of easy-to-try-out APIs. i.e. Available to public, free.

There are many other APIs out there apart from public, free ones.


Flickr API


Public feeds


API methods

YouTube API

No public feeds. Need API key.

Twitter API

Hiding API keys

As you see, API developers often want you to use "API keys" to identify your usage of their API. Often, these should be kept secret.

Problem: Javascript code contains API key to do JSONP call. API key not secret.

Solution: Set up a simple proxy on your server. This proxy calls the service with the API key (not exposed) and outputs the result. Your Javascript calls the proxy. Only your Javascript can call the proxy (same origin). Should be just a few lines of PHP.


Feeds      w2mind.org      ancientbrain.com

On the Internet since 1987.