We are using Google Custom Search and we have found that often the total results iterates between two values, even for the same query. The different values can be slightly different or more than double.

The parameters I am using look like this:


This is problem because of calculating the number of result pages. How can I get the same results for the same query?


1 Answer 1


Google varies its results all the time and there is nothing you can do about it.

There are several main reasons why this happens:

  • Google does A/B testing. They test how users react to sites ranking very differently. For example they may move a site up from page 3 temporarily to measure its click through rate when it is in the 3rd position.
  • Google has multiple data centers that get updated data and code at different times. In a case like this, one data center will likely serve completely different results for some queries than other data centers. As the code and data get rolled out (usually over the course of a week or two), all the Google data centers will show the same results. While this is happening, results may swing wildly between the two because queries may be directed to a different data center each time.
  • Google uses your search history and preferences when building search results. The results that you see may be very different than what your friend sees.

In this case it sounds like the "multiple data center" issue is at play. The results you are interested in will likely stabilize over the next couple weeks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.