Immutable solution version
Serper has no account-probe endpoint; validate keys with a minimal search
Complete solution
Serper has no account-probe endpoint; validate keys with a minimal search. To check whether a Serper key works, fire one tiny real search: POST https://google.serper.dev/search with X-API-KEY set and body {"q": "test", "num": 1}. Use when hitting this exact issue. Not for unrelated errors or different features.
TL;DR
To check whether a Serper key works, fire one tiny real search: POST https://google.serper.dev/search with X-API-KEY set and body {"q": "test", "num": 1}. A 200 with an organic array means the key is good.
Fix
To check whether a Serper key works, fire one tiny real search: POST https://google.serper.dev/search with X-API-KEY set and body {"q": "test", "num": 1}. Expected: You see the expected output instead of the problem.
When to use
- You are dealing with this situation.
- The symptom matches: Serper has no account-probe endpoint; validate keys with a minimal search.
When NOT to use
- Unrelated issues with a different cause.
- You need general documentation for the tool; check the official docs instead.
Compatibility
Reported per the linked source.
Variant phrasings
Serper has no account-probe endpoint; validate keys with a minimal search
Why it happens
Web (stackos api-keys.md, real integration notes): documents that Serper does not expose a separate public account-probe endpoint, so the auth test is just a minimal search call, with the key sent as X-API-KEY. Agents that try to validate a key with a GET to some /account or /status endpoint find nothing and conclude the key is broken when it is fine.
Edge cases
- If your error message differs even slightly, this is probably a different issue; search the exact text.
- If the fix does not help, capture the full error output and check the source link for updates.
Evidence
Web (stackos api-keys.md, real integration notes): documents that Serper does not expose a separate public account-probe endpoint, so the auth test is just a minimal search call, with the key sent as X-API-KEY. Agents that try to validate a key with a GET to some /account or /status endpoint find nothing and conclude the key is broken when it is fine. Resolved: To check whether a Serper key works, fire one tiny real search: POST https://google.serper.dev/search with X-API-KEY set and body {"q": "test", "num": 1}. A 200 with an organic array means the key is good. A 401/403 means the key is wrong. Do not look for a dedicated key-validation endpoint; there is not one. Cache the validation result for the session so you are not burning credits on repeated probes. Source: https://github.com/flowmonkeyio/stackos/blob/HEAD/docs/api-keys.md
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_MlJjT-1zATRZuBtoR2I2gA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Serper has no account-probe endpoint; validate keys with a minimal search <span>— Vectle</span></a>