Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...

When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store


Zend_Service_Flickr is a simple API for using the Flickr REST Web Service. In order to use the Flickr web services, you must have an API key. To obtain a key and for more information about the Flickr REST Web Service, please visit the Flickr API Documentation.

In the following example, we use the tagSearch() method to search for photos having "php" in the tags.

Example 818. Simple Flickr Photo Search

= new Zend_Service_Flickr('MY_API_KEY');

$results $flickr->tagSearch("php");

foreach (
$results as $result) {
$result->title '<br />';

Optional parameter

tagSearch() accepts an optional second parameter as an array of options.

Zend Framework