A number to keep track of what app is making calls to the API.
Should be kept secret. Not a big disaster if revealed.
Browser apps
With the Flickr and YouTube APIs above, you can build a browser app.
Does not have to be a standalone app.
Can be a web page with HTML and JS that makes the API call (e.g. using JSONP).
e.g. Can have a web page that in response to some event or user input can search YouTube for videos and return a list of videos
to put inside the page
without going to a new URL.
Browser apps and API secrecy
Problem: The web page
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 policy).
Should be just a few lines of PHP.