Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do I need a flickr api key?

Tags:

flickr

Reading through the Flickr API documentation it keeps stating I require an API key to use their REST protocols. I am only building a photo viewer, gathering information available from Flickr's public photo feed (For instance, I am not planning on writing an upload script, where a API key would be required). Is there any added functionality I can get from getting a Key?

Update I answered the question below

like image 557
Jeff Winkworth Avatar asked Sep 17 '08 18:09

Jeff Winkworth


People also ask

Why is API key needed?

API keys provide project authorization They are generated on the project making the call, and you can restrict their use to an environment such as an IP address range, or an Android or iOS app. By identifying the calling project, you can use API keys to associate usage information with that project.

Is API key mandatory?

You must include an API key with every Maps JavaScript API request. In the following example, replace YOUR_API_KEY with your API key. HTTPS is required for requests that use an API key.


5 Answers

To use the Flickr API you need to have an application key. We use this to track API usage.

Currently, commercial use of the API is allowed only with prior permission. Requests for API keys intended for commercial use are reviewed by staff. If your project is personal, artistic, free or otherwise non-commercial please don't request a commercial key. If your project is commercial, please provide sufficient detail to help us decide. Thanks!

http://www.flickr.com/services/api/misc.api_keys.html

like image 104
Gilean Avatar answered Sep 28 '22 10:09

Gilean


We set up an account and got an API key. The answer to the question is, yes there is advanced functionality with an API key when creating something like a simple photo viewer. The flickr.photos.search command has many more features for reciving an rss feed of images than the Public photo feed, such as only retrieving new photos since the last feed request (via the min_upload_date attribute) or searching for "safe photos" only.

like image 29
Jeff Winkworth Avatar answered Sep 28 '22 09:09

Jeff Winkworth


If you have a key, they can monitor your usage and make sure that everything is copacetic -- you are below request limit, etc. They can separate their stats on regular vs API usage. If they are having response time issues, they can make response a bit slower to API users in order to keep the main website responding quickly, etc.

Those are the benefits to them.

The benefits to you? If you just write a scraper, and it does something they don't like like hitting them too often, they'll block you unceremoniously for breaking their ToS.

If you only want to hit the thing a couple of times, you can get away without the Key. If you are writing a service that will hit their feed thousands of times, you want to give them the courtesy of following their rules.

Plus like Dave Webb said, the API is nicer. But that's in the eye of the beholder.

like image 43
SquareCog Avatar answered Sep 28 '22 10:09

SquareCog


The Flickr API is very nice and easy to use and will be much easier than scraping the feed yourself.

Getting a key takes about 2 minutes - you fill in a form on the website and then email it to you.

like image 26
Dave Webb Avatar answered Sep 28 '22 10:09

Dave Webb


Well, they say you need a key - you need a key, then :-) Exposing an API means you can pull data off the site way easier, it is understandable they want this under control. It is pretty much the same as with other API enabled sites.

like image 29
petr k. Avatar answered Sep 28 '22 11:09

petr k.