I’m trying to create a Flex app to get photos from flickr(using YQL) of “something” near a given ZIPCODE and ordered by interestigness.
I can’t figure out how. I’m on http://developer.yahoo.com/yql/console/ and i see that there are different tables: flickr.photos.search, flickr.photos.interestigness etc.I guess i have to make an sql join in order to filter the photos but i dpn’t know what columns they contain.
Can you please help me?
Thanks
The key table to search on is
flickr.photos.search, which allows you to search photos with numerous filters and to sort the results by interestingness as you want.A simple query which searches photos within a 20km radius of Beverly Hills, CA, USA for the word "hill" and orders the results by interestingness might look like the following.
» Try this in the console
When using the console, each table should have an associated URL pointing to the documentation for the service that that table provides. That link, and other information about the table (e.g. required parameters), can be found by executing a query of the form
desc <table name>. For example, the querydesc flickr.photos.searchin the YQL console shows:That
documentationURL(here) takes you to Flickr’s documentation page for theflickr.photos.searchAPI method, which shows all of the available parameters that can be used. You’ll see descriptions for thewhereclause parameters from the YQL query we used to search for photos near Beverly Hills.