Return Values

February 6th, 2007 by jay

This page explains what is in the return package of the search services: When the results are returned that are in the form of an indexed array of associative arrays. Each array can be accessed by the zero based index number in a for loop or through a foreach loop:

for loop

PHP:

  1. for($i=0;$i<count($results);$i++){
  2.   $result = $results[$i];
  3.   echo $result['title'];
  4. }

foreach loop

PHP:

  1. foreach($results as $result
  2.   echo $result['title'];
  3. }

Parameters

Parameter Web Search Video Search Image Search
title x x x
summary x x x
url x x x
clickUrl x x x
displayUrl x x x
modificationDate x
mimeType x
fileSize x x
fileFormat x x
height x x
width x x
duration x
streaming x
thumbnail x x
theight x x
twidth x x

Posted in Documentation |

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.