public-roadmap icon indicating copy to clipboard operation
public-roadmap copied to clipboard

[Google Search API] Missing `total_results` count for some searches

Open alexbarron opened this issue 9 months ago • 3 comments

A long-time customer reported they've seen an increasing number of searches where we don't return total_results. This appears to be caused by Google hiding the count under the "Tools" menu in search results. Clicking "Tools" in real Google search results reveals the count.

Before click:

Image

After click:

Image

Our results:

Image

Public links: Playground

Internal links: Intercom (but customer only mentioned issue on call with me) | Search Inspect | Search Inspect

alexbarron avatar Mar 24 '25 14:03 alexbarron

We now return total_results count for all "new" Google layout variations:

Playground

Image

btaunt avatar Mar 26 '25 18:03 btaunt

Thanks for your previous work on this @btaunt . Unfortunately it looks like Google is rolling this out again in a different way for some searches. A user reported another search where total results is buried under "Tools". In this case, we return total_results=0, even though there are organic and other results.

Image

Inspect Intercom

alexbarron avatar Apr 16 '25 13:04 alexbarron

Thanks for the heads up @alexbarron

I'm still doing some testing, but I think this might be an "issue" on Google's side while transitioning between newer layouts?

In the rendered HTML provided by the inspect you included, Google themselves render the total results as 0: https://serpapi.com/searches/8e3a73116f1b6e91/67ffaae029f264e18d830fd9.html

Setting parameter no_cache to true seems to consistently give me the "newer" tools layout, which includes proper total results inline:

Image

Playground (no cache) | Inspect

btaunt avatar Apr 16 '25 14:04 btaunt

The original customer who reported this in March has flagged this issue again. It seems to affect the linked query below about 50% of the time.

Inspect Playground

Intercom

alexbarron avatar Jul 24 '25 09:07 alexbarron

A user is interested in this.

Intercom

hilmanski avatar Aug 01 '25 06:08 hilmanski

Additional fix has been released.

Missing search_information stats are now back.

Image

ocvit avatar Aug 04 '25 14:08 ocvit