canonical: https://jentic.com/apis/serper.dev/serper

# Serper Web Search API

Jentic publishes the only available OpenAPI specification for Serper Web Search API, keeping it validated and agent-ready. The Serper Web Search API returns Google search results as structured JSON across nine verticals: web, images, news, places, videos, shopping, Scholar, patents, and autocomplete. Every search takes a q query plus optional gl country, hl language, num, page, tbs time filter, and location, and web results come back as organic entries with title, link, snippet, and position alongside knowledgeGraph, peopleAlsoAsk, and relatedSearches blocks.

## For AI agents

Run Google web, news, image, video, places, shopping, Scholar, and patent searches and get structured JSON results, or fetch autocomplete suggestions for a query.

## Scope

Does not crawl or extract full page content, manage ad campaigns, or provide Search Console data. Use for Google search result retrieval only.

## Capabilities

- Run a Google web search and read organic results with title, link, snippet, and position
- Read the knowledgeGraph, peopleAlsoAsk, and relatedSearches blocks returned with web results
- Search Google News with a tbs time filter such as qdr:d for the past day
- Look up local businesses through Google Places search for a query and location
- Search Google Scholar and Google Patents for academic papers and patent documents
- Pull Google Shopping, Images, and Videos results for a query
- Fetch Google autocomplete suggestions for a partial query in a given gl and hl

## Use cases

### AI Agent Web Search Through Jentic

An agent that needs fresh facts can call Serper through Jentic instead of having the X-API-KEY header wired into its code. It searches by intent, such as 'search Google for a query', receives webSearch with its input schema, and sends q with gl and hl for the right market. The structured organic, knowledgeGraph, and peopleAlsoAsk blocks give it sources to cite rather than raw HTML.

Example prompt: Search Jentic for 'search Google for a query', load webSearch, and call it with q 'Jentic One self-hosted', gl 'us', hl 'en', and num 10

### News Monitoring With Time Filters

Monitoring a topic means asking for only what is new. The news search takes the same q, gl, and hl inputs plus a tbs filter such as qdr:d for the past day, and page for more results. An agent can run a daily sweep on a brand or competitor and summarise what changed.

Example prompt: Call POST /news with q 'acme corp recall', gl 'us', tbs 'qdr:d', and num 20, then summarise the results

### Rank and SERP Checks

SEO work starts with where a page appears for a query. Web search returns organic results with a position field per result for the requested gl country, hl language, and location, so an agent can check rankings across markets and page through deeper results with page and num.

Example prompt: Call POST /search with q 'project management software', gl 'uk', hl 'en', num 100, and find the position of the result whose link contains 'example.com'

### Research Across Scholar and Patents

Technical research needs sources beyond the open web. Serper's Scholar search returns academic results and its patent search returns patent documents for the same q-based request shape, so an agent can gather prior art and papers on a topic in one pass.

Example prompt: Call POST /scholar with q 'retrieval augmented generation evaluation' and POST /patents with q 'solid state battery electrolyte', then list the top five of each

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/search` | Google web search |
| POST | `/news` | Google News search |
| POST | `/places` | Google Places search |
| POST | `/scholar` | Google Scholar search |
| POST | `/patents` | Google Patents search |
| POST | `/shopping` | Google Shopping search |
| POST | `/autocomplete` | Google autocomplete suggestions |

## Key resources

- **Web search** — Organic results, knowledge graph, people also ask, and related searches
- **Vertical search** — Images, news, places, videos, shopping, Scholar, and patents
- **Autocomplete** — Google query suggestions for a partial query

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 57 / 100
- **Maturity:** Foundational
- **Dimensions:**
  - Foundational Compliance: 100 / 100
  - Developer Experience & Jentic Compatibility: 56 / 100
  - AI-Readiness & Agent Experience: 39 / 100
  - Agent Usability: 94 / 100
  - Security: 50 / 100
  - AI Discoverability: 53 / 100
- **View full report:** https://jentic.com/apis/serper.dev/serper/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring Serper by hand means adding the X-API-KEY header to every call, picking the right vertical path among nine, and building the q, gl, hl, and tbs request body yourself. Through Jentic you install once, import Serper from the API Directory, store the key once, and your agent calls it.
- **Permission scoping:** Serper gives each search vertical its own URL path, such as /news, /scholar, or /shopping, while the query itself travels in the request body. So rules bound which kinds of search your agent may run, not which queries it sends.
- **Credential handling:** Your Serper key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'search Google for a query' or 'find recent news', and Jentic returns the matching Serper operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **SerpApi** — Search results from Google and many other engines as JSON
- **Tavily API** — Search API built for LLM retrieval with extracted content
- **Brave Search API** — Independent web index search
- **SEOmatic API** — Search Console insights and AI answerability audits

## FAQ

### Why is there no official OpenAPI spec for Serper Web Search API?

Serper does not publish an OpenAPI specification. Jentic generates and maintains this spec so that AI agents and developers can call Serper Web Search API via structured tooling. It is validated against the live API and kept up to date. To run it on your own infrastructure, install Jentic One from its GitHub repo.

### Is there a Serper MCP server?

You don't need an MCP server to give your agent the Serper API. Jentic connects it directly from the API Directory: import it, store your key once, and your agent calls web, news, or Scholar search when a question needs fresh results, without nine search tools sitting in its context.

### Can I limit what my agent is allowed to do with the Serper API?

Yes. Each vertical has its own path, so for a news-briefing agent you write a rule that allows only POST /news and POST /search. The agent can search the web and news, while images, shopping, places, Scholar, and patents stay unavailable to it, and every search it runs is logged by your self-hosted instance.

### What authentication does the Serper API use?

Per its OpenAPI spec, the Serper API uses an API key sent in the X-API-KEY header on every request. Through Jentic the key is stored encrypted by your own Jentic One instance and added at call time, so the agent never handles it.

### Can I filter Serper results to recent pages?

Yes. The search request accepts tbs, a Google time-based filter such as qdr:d for the past day, on web, news, image, video, and the other vertical searches. Combine it with gl and hl to target a country and language.

### What are the rate limits for the Serper API?

The OpenAPI spec does not state rate limits. Serper meters usage by search credits; check https://serper.dev for current plan limits.
