Reputation: 3177
There is way to search flickr photos using tag. Just open this link, fill in the tag that you wants. You'll get the result ant its associated url link.
What if I want to write program to do the search? Actually I found a way. But it's kind of cheating. Through analyzing the return url link, for example:
It seems that I only need to replace the tags=girl
with my need, saying tags=dog
. It will work.
But still, I'd like to have a regular way to do this job. And What's the api_key
? It seems it has nothing to do with the search result. For example:
I use the above two different api_key
s to search dog. It gives me the same result.
Upvotes: 1
Views: 5435
Reputation: 2449
It depends on the programming language you are using. For example, in C# it is as simple as:
var flickr = new Flickr("API_KEY", "SECRET");
var options = new PhotoSearchOptions();
options.TagMode = TagMode.AnyTag;
options.Tag = 'paris'; //The list of tags "comma separated"
options.Extras |= PhotoSearchExtras.DateTaken | PhotoSearchExtras.MediumUrl | PhotoSearchExtras.Tags;
PhotoCollection photos = flickr.PhotosSearch(options);
//In photos you will have the first 100 images.
But first you need an API_KEY
to start using the API (it is a kind of authentication method to allow you to download data from Flickr).
Upvotes: 1