List Info

Thread: Inconsistent amount for TOTALRESULTSAVAILABLE




Inconsistent amount for TOTALRESULTSAVAILABLE
user name
2006-03-17 19:42:06
I am running a php test script that does the following
------------------------------------
$url = "http://api.search.yahoo.com/WebSearchService/V1/webSear
ch";
$query = "linkdomain:firminternet.com";
$offset = 0;
$count = 10;

$q = '?query=' . rawurlencode($query);
$q.= "&start=$offset";
$q.= "&results=$count";
$q .= "&appid=$api_key";

$xml = file_get_contents($url . $q);
$p = xml_parser_create();
xml_parse_into_struct($p, $xml, $results);
xml_parser_free($p);
    
echo $results[0]['attributes']
['TOTALRESULTSAVAILABLE'];'TOTALRESULTSAVAILABLE'];
--------------------------------------

When I refresh this page I see inconsistent results, usually
172 but 
sometimes 234.  I also notice that making the same search
through 
the web at search.yahoo.com it says "Results 1 - 10 of
about 177 
from firminternet.com"

I thought I had read in other posts that the API and web
searches 
reported number of results would match, though maybe this is
not the 
case.  Also I was curious about the inconsistent results.

Thanks,
Jared










 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://
groups.yahoo.com/group/yws-search-web/

<*> To unsubscribe from this group, send an email to:
    yws-search-web-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )