[Google Gemini API] Intermittent HTTP 503 "We couldn't get valid results for this search" on most searches
@mathbraga is already working on this.
Since Oct 28, 2026.
Assessment
This issue has not been assessed yet.
Description
The Google Gemini API returned HTTP 503 with "We couldn't get valid results for this search. Please try again later." for 19 of 30 different prompts (63.3%), and HTTP 200 with "Gemini hasn't returned any results for this query." for 1 more, so only 10 of 30 searches (33.3%) returned an answer.
Test setup: 30 different prompts sent one at a time with engine=google_gemini and no_cache=true, 1 second apart, with a 120s client timeout, on 2026-10-28 between 14:44 and 15:10 UTC. No other parameters.
Results:
| HTTP status | Message | Count | Share |
|---|---|---|---|
| 503 | We couldn't get valid results for this search. Please try again later. | 19 | 63.3% |
| 200 | (success, text_blocks returned) |
10 | 33.3% |
| 200 | Gemini hasn't returned any results for this query. | 1 | 3.3% |
Observations:
- Product, local, and comparison prompts failed every time in this run (10 of 10), e.g. "best CRM for small businesses", "best pizza restaurants near Times Square", "Trello vs Asana for a marketing team". General-knowledge prompts succeeded 10 of 20 times. Earlier the same day (without
no_cache), "best project management tools for small teams" and "free kanban board apps" succeeded with 8referenceseach, so these prompts aren't failing every time. - 14 of the 19 503s came back after almost exactly 35.4–35.9s, which looks like an internal timeout. The other 5 took 54s, 110s, 110s, 129s, and 186s.
- Successful searches took 11–106s (median 28s).
- The "Gemini hasn't returned any results" error came back after 4s with HTTP 200, while the other failures use 503. It's not clear whether these two errors are meant to use different status codes.
- None of the 10 successful searches in this run returned
references. - The docs page currently shows 95.691% uptime for this API.
| # | Prompt | HTTP | Time | Result |
|---|---|---|---|---|
| 1 | where does coffee grow? | 200 | 106.1s | Success |
| 2 | which country produces the most coffee? | 503 | 35.4s | Error |
| 3 | best project management tools for small teams | 503 | 110.7s | Error |
| 4 | free kanban board apps | 503 | 35.8s | Error |
| 5 | how to organize tasks for a remote team | 200 | 35.0s | Success |
| 6 | best noise cancelling headphones under $300 | 503 | 35.7s | Error |
| 7 | best running shoes for flat feet | 503 | 35.5s | Error |
| 8 | compare iPhone 17 and Pixel 10 cameras | 503 | 110.4s | Error |
| 9 | best CRM for small businesses | 503 | 35.5s | Error |
| 10 | best pizza restaurants near Times Square | 503 | 35.4s | Error |
| 11 | coffee shops near the Golden Gate Bridge | 503 | 35.4s | Error |
| 12 | how do vaccines train the immune system? | 503 | 35.4s | Error |
| 13 | explain how a mortgage refinance works | 503 | 186.4s | Error |
| 14 | what is the difference between a Roth IRA and a traditional IRA? | 200 | 94.1s | Success |
| 15 | how to remove a red wine stain from carpet | 200 | 23.4s | Success |
| 16 | write a Python function to reverse a linked list | 503 | 35.9s | Error |
| 17 | what does HTTP status code 503 mean? | 503 | 35.4s | Error |
| 18 | how to center a div in CSS | 200 | 32.5s | Success |
| 19 | a 3-day itinerary for Kyoto | 200 | 4.0s | Gemini hasn't returned any results |
| 20 | best time of year to visit Iceland | 503 | 35.4s | Error |
| 21 | healthy vegetarian dinner ideas for a family | 200 | 13.7s | Success |
| 22 | how much protein do I need per day? | 503 | 35.7s | Error |
| 23 | how does solar panel net metering work? | 200 | 32.4s | Success |
| 24 | what are the main causes of inflation? | 200 | 24.0s | Success |
| 25 | how to train a puppy to stop biting | 503 | 35.5s | Error |
| 26 | best email marketing platforms for ecommerce | 503 | 35.5s | Error |
| 27 | what is retrieval augmented generation? | 200 | 11.1s | Success |
| 28 | how do I improve my website's SEO? | 503 | 54.3s | Error |
| 29 | Trello vs Asana for a marketing team | 503 | 129.3s | Error |
| 30 | summarize the plot of Pride and Prejudice | 200 | 16.9s | Success |
Expected: Most searches return text_blocks. When Gemini doesn't answer, the error and HTTP status should be the same each time, so users can tell when to retry.
Public links: Playground 1 (failed) | Playground 2 (200 with "no results") | Documentation
Internal links: Search Inspect 1 (503) | Search Inspect 2
- Dominant language
- No language data
- Stars
- 159
- Forks
- 58
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from serpapi/public-roadmap
-
status: freezer type: feature
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
serpapi/public-roadmap#4356 · 1 comment ·
-
status: freezer type: improvement
Difficulty 1/5 Under an hour Newbie friendliness 68/100
serpapi/public-roadmap#2989 ·
-
status: freezer
Difficulty 1/5 Under an hour Newbie friendliness 72/100
serpapi/public-roadmap#1615 ·
-
type: bug
Difficulty 4/5 Over a week Newbie friendliness 15/100
serpapi/public-roadmap#4661 · 2 comments ·
-
status: queued type: bug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
serpapi/public-roadmap#4660 · 1 comment ·