canonical: https://jentic.com/apis/serpapi/serpapi

# SerpApi - Search Engine Results Page API

SerpApi provides a real-time API to access search engine results. It parses Google (and other engine) results and returns structured JSON data including organic results, knowledge graphs, local packs, ads, and more. Commonly used for SEO research, SERP tracking, and competitive analysis. The API exposes 3 endpoints secured with apiKey authentication.

## For AI agents

Programmatically perform a search engine query, get account information. Covers 3 operations with apiKey authentication.

## Scope

Does not handle payments, communications, or crm - use for analytics only.

## Capabilities

- Perform a search engine query
- Get account information
- Search for supported locations
- Query and filter SerpApi - Search Engine Results Page API records by parameters
- Monitor SerpApi - Search Engine Results Page API operational status and events

## Use cases

### Analytics Operations

Use the SerpApi - Search Engine Results Page API to perform analytics operations programmatically. The API provides 3 endpoints covering core functionality including perform a search engine query, get account information, search for supported locations.

Example prompt: Call GET /search to perform a search engine query

### Automated account.json Management

Automate account.json operations by combining multiple SerpApi - Search Engine Results Page API endpoints. Agents can get account information and then search for supported locations in a single workflow.

Example prompt: Call GET /account.json to get account information, then verify the result

### AI Agent Integration via Jentic

AI agents discover and call SerpApi - Search Engine Results Page API endpoints through Jentic without managing credentials directly. An agent searches for the required operation by intent, receives the matching endpoint schema, and executes the call with Jentic-managed authentication. This eliminates the need to read API documentation or handle apiKey tokens manually.

Example prompt: Search Jentic for 'perform a search engine query', load the operation schema, and execute with Jentic-managed credentials

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/search` | Perform a search engine query |
| GET | `/account.json` | Get account information |
| GET | `/locations.json` | Search for supported locations |

## Key resources

- **account.json** — Operations related to account.json
- **locations.json** — Operations related to locations.json
- **search** — Operations related to search

## 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:** 46 / 100
- **Maturity:** Foundational
- **Dimensions:**
  - Foundational Compliance: 93 / 100
  - Developer Experience & Jentic Compatibility: 60 / 100
  - AI-Readiness & Agent Experience: 43 / 100
  - Agent Usability: 94 / 100
  - Security: 15 / 100
  - AI Discoverability: 83 / 100
- **View full report:** https://jentic.com/apis/serpapi/serpapi/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 SerpApi by hand means appending your api_key query parameter to every search request and handling the result parsing yourself. Through Jentic you install once, import SerpApi from the API Directory, store the key once, and your agent calls it.
- **Permission scoping:** SerpApi passes the api_key as a query parameter and exposes search, account, and locations endpoints, so limit the agent to the operations it needs, such as running a search query. You choose the operations it may call, so account access is not included unless you add it.
- **Credential handling:** Your SerpApi 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 'run a search engine query' or 'check account usage', and Jentic returns the matching SerpApi operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Mixpanel** — Alternative analytics API
- **Amplitude** — Alternative analytics API
- **Segment** — Complementary analytics API
- **Pendo** — Complementary analytics API

## FAQ

### What authentication does the SerpApi - Search Engine Results Page API use?

The SerpApi - Search Engine Results Page API uses an API key passed in the `api_key` query. Through Jentic, these credentials are stored encrypted in your Jentic One instance and injected at execution time, so raw secrets never enter the agent context.

### Can I perform a search engine query with the SerpApi - Search Engine Results Page API?

Yes. Use the GET /search endpoint. The API returns structured JSON responses that agents can parse and act on directly.

### What are the rate limits for the SerpApi - Search Engine Results Page API?

Rate limits are not specified in the OpenAPI spec. Check the vendor documentation for current limits. Through Jentic, rate limiting is handled automatically with retry logic built into the execution layer.

### How do I perform a search engine query through Jentic?

Install the Jentic SDK with pip install jentic, authenticate through Jentic One, the self-hosted execution layer, then search for 'perform a search engine query'. Jentic returns the matching SerpApi - Search Engine Results Page API operation with its input schema. Load the schema and execute the call - credentials are injected automatically.

### How many endpoints does the SerpApi - Search Engine Results Page API have?

The SerpApi - Search Engine Results Page API exposes 3 endpoints covering account.json, locations.json, search operations.

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

Yes. SerpApi exposes just three operations - GET /search, GET /account.json, and GET /locations.json - and because you run Jentic One yourself, your own rules decide which of these your agent may call. If the agent only needs to run search queries, you allow GET /search and leave account and location lookups off, so it cannot read your account usage or billing details. The API key that authenticates each request is stored by your own instance and injected at execution time, never exposed to the agent.
