# SerpApi API reference

> SerpApi returns search engine result pages as structured JSON. The Google engine (engine=google, the default) returns organic results, knowledge graph, local results, related questions and pagination. An investigator uses it to run web searches for names or phrases programmatically and read the…

Source: https://osinttools.io/apis/serpapi/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/serpapi/

- Base URL: https://serpapi.com
- Authentication: API key in the `api_key` query parameter. Get a key: https://serpapi.com/users/sign_up
- Free tier: yes
- Pricing: Subscription
- Rate limits: Free plan: 250 searches per month, 50 searches per hour; paid plans raise both (for example Starter: 1,000 per month, 200 per hour)
- Vendor docs: https://serpapi.com/search-api

## Overview

SerpApi returns search engine result pages as structured JSON. The Google engine (`engine=google`, the default) returns organic results, knowledge graph, local results, related questions and pagination. An investigator uses it to run web searches for names or phrases programmatically and read the results as data. SerpApi has other engines, documented on its site.

Calls are GET requests to `https://serpapi.com/search` with the key in the `api_key` query parameter. Cached results (one hour, identical parameters) are free and do not count toward monthly searches.

## Google Search

### Run a Google search and get the results page as JSON.

`GET /search`

- Takes: Name
- Footprint: passive (the target is not contacted)

Returns organic results and, when present, knowledge graph, local results, related questions and pagination. location cannot be combined with uule, lat or lon; lat and lon go together; tbm and udm cannot be used together.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | query | string | yes | Search query; Google operators such as site: and intitle: work Example: Jane Example site:example.com |
| `engine` | query | string | no | Search engine to use Example: google |
| `location` | query | string | no | Location to search from Example: Austin, Texas |
| `google_domain` | query | string | no | Google domain to use Example: google.com |
| `gl` | query | string | no | Country code Example: us |
| `hl` | query | string | no | Language code Example: en |
| `tbm` | query | string | no | Search type, for example isch (images), nws (news), shop Example: nws |
| `start` | query | integer | no | Result offset; 10 is page 2 Example: 10 |
| `device` | query | string | no | Device type Example: desktop One of: desktop, tablet, mobile |
| `output` | query | string | no | Output format Example: json One of: json, html, md |
| `no_cache` | query | boolean | no | Skip the one-hour cache and fetch fresh results Example: true |

Response fields:

- `search_information.query_displayed` (string): Query as displayed
- `search_information.total_results` (integer): Total results reported
- `organic_results[].position` (integer): Position of the result
- `organic_results[].title` (string): Result title
- `organic_results[].link` (string): Result URL
- `organic_results[].displayed_link` (string): Displayed URL
- `organic_results[].snippet` (string): Result snippet
- `knowledge_graph.title` (string): Knowledge graph title
- `knowledge_graph.description` (string): Knowledge graph description
- `related_questions[].question` (string): Related question
- `pagination.current` (integer): Current page
- `serpapi_pagination.next` (string): SerpApi URL of the next page

```bash
curl 'https://serpapi.com/search?q=Jane%20Example%20site%3Aexample.com&api_key=YOUR_API_KEY'
```

Example response (200):

```json
{
  "search_information": {
    "query_displayed": "Example",
    "total_results": 1000000
  },
  "organic_results": [
    {
      "position": 1,
      "title": "Example",
      "link": "https://www.example.com/",
      "displayed_link": "https://www.example.com",
      "snippet": "An example page."
    }
  ],
  "pagination": {
    "current": 1
  },
  "serpapi_pagination": {
    "current": 1,
    "next": "https://serpapi.com/search.json?engine=google&q=Example&start=10"
  }
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
