Keys / SerpApi

SERPAPI_API_KEY

The SerpApi key your app gets Google, Bing and other search engine results with.

Expires
the docs don't say
API
none; dashboard only

Get it

Create one on serpapi.com/manage-api-key. The steps aren't recorded yet.

Set it

SERPAPI_API_KEY=...

The SerpApi MCP server reads it from this variable when it runs locally over stdio. The client libraries take the key as api_key; their examples read it from SERPAPI_KEY. Or keep it out of .env with keypin: keypin run -- npm run dev

Replace it

  1. Regenerate the key on the Manage API Key page. The docs don't say whether the old key stops working at once, so deploy the new one right away.
  2. Deploy it everywhere that reads SERPAPI_API_KEY.
  3. Check that searches succeed with the new key.

Set rotate_every on the key in keypin.toml and a rotated date on its vault item, and keypin status shows when it's due.

Sources, checked 2026-11-16