I am having trouble getting the number of pages for a particular domain to come up properly using the Google API. For the query I use "site:www.yourdomain.com" and I look at the estimatedTotalResultsCount output. If I put in the query "link:www.yourdomain.com" and look at the estimatedTotalResultsCount output it gives the correct number of links, but it is not working for the number of pages. The result changes for each url, but it is not correct. Doe anyone have any ideas of what could be going on?
The API always returns the true value of how many pages you are able to actually view. For example, look at this query in Google: http://www.google.com/search?q=site:www.sendmoneytransfer.com&start=240 You can't view anything past 246, even though it says there are 1,170 results. The API will return 246 right off the bat.
Huh, that's interesting. I actually thought of that and tried it for this query: http://www.google.com/search?hl=en&lr=&c2coff=1&q=site:www.fantasyfootballjungle.com&btnG=Search You can't view anything past 446, (841 if you include the omitted results) but the API gives 1310 back. With these results I thought I disproved that idea. But your example shows what I was hoping to see when I did that test. Can you think of any reason it would show 1310 from the API for my example?