# SearchApi API reference

> SearchApi returns search engine result pages as JSON. The Google endpoint takes a query (with operators such as site:, inurl: and intitle:) and returns organic results, the knowledge graph, related searches and other result blocks. Other engines (Bing, Brave, Baidu, Yandex, DuckDuckGo and more)…

Source: https://osinttools.io/apis/searchapi/ (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/searchapi/

- Base URL: https://www.searchapi.io/api/v1
- Authentication: API key in the `api_key` query parameter. Get a key: https://www.searchapi.io/ Can also be sent as an Authorization: Bearer header.
- Free tier: a free trial only
- Pricing: Subscription
- Rate limits: Per the pricing FAQ, up to 20% of the plan's credits can be used each hour; the account endpoint reports hourly_rate_limit.
- Vendor docs: https://www.searchapi.io/docs/google

## Overview

SearchApi returns search engine result pages as JSON. The Google endpoint takes a query (with operators such as `site:`, `inurl:` and `intitle:`) and returns organic results, the knowledge graph, related searches and other result blocks. Other engines (Bing, Brave, Baidu, Yandex, DuckDuckGo and more) have their own docs pages and are not covered here.

All calls go to `https://www.searchapi.io/api/v1/search` with an `engine` parameter. The API key is sent as the `api_key` query parameter or as an `Authorization: Bearer` header. An account endpoint reports monthly usage and the hourly rate limit.

The pricing page lists monthly plans of bundled searches and 100 free requests on sign-up; only successful (HTTP 200) searches are charged.

## Search

### Google web search results as JSON.

`GET /search?engine=google`

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

Returns result blocks for a Google query. Location can be set with `location`, `uule` or `latitude` and `longitude` (not combined). Google redirect links may carry a link_token to resolve with the Google Resolve API. `num` is fixed at 10 since September 2025 and `google_domain` is deprecated in favour of `gl` and `hl`.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | query | string | yes | Search query; supports operators such as site:, inurl:, intitle:, AND, OR Example: "Jane Example" site:example.org |
| `device` | query | string | no | Device to search as Example: desktop One of: desktop, mobile, tablet |
| `location` | query | string | no | Canonical search location; cannot be combined with uule, latitude or longitude Example: Austin,Texas,United States |
| `gl` | query | string | no | Country code Example: us |
| `hl` | query | string | no | Interface language Example: en |
| `lr` | query | string | no | Restrict results by document language, e.g. lang_jp; join several with | Example: lang_jp |
| `cr` | query | string | no | Restrict results by document country |
| `safe` | query | string | no | SafeSearch mode Example: off One of: active, blur, off |
| `filter` | query | integer | no | 1 enables duplicate and host crowding filters, 0 disables them Example: 1 |
| `nfpr` | query | integer | no | 1 excludes results from spelling auto-correction Example: 0 |
| `time_period_min` | query | string | no | Start date, MM/DD/YYYY Example: 01/01/2025 |
| `time_period_max` | query | string | no | End date, MM/DD/YYYY Example: 06/30/2025 |
| `verbatim` | query | boolean | no | true disables query modifications Example: true |
| `page` | query | integer | no | Results page Example: 1 |

Response fields:

- `search_metadata.id` (string): Identifier of the search
- `search_metadata.status` (string): Status of the search
- `search_metadata.json_url` (string): URL of the stored JSON result
- `search_parameters.q` (string): The query as sent
- `search_information.query_displayed` (string): Query as displayed by Google
- `search_information.total_results` (integer): Total results reported
- `organic_results[].position` (integer): Position in the results
- `organic_results[].title` (string): Result title
- `organic_results[].link` (string): Result URL
- `organic_results[].domain` (string): Domain of the result
- `organic_results[].snippet` (string): Text snippet
- `organic_results[].date` (string): Date shown for the result, when present
- `pagination.current` (integer): Current page

```bash
curl 'https://www.searchapi.io/api/v1/search?engine=google&q=%22Jane%20Example%22%20site%3Aexample.org&api_key=YOUR_API_KEY'
```

Example response (200):

```json
{
  "search_metadata": {
    "id": "search_example123",
    "status": "Success",
    "json_url": "https://www.searchapi.io/api/v1/searches/search_example123.json"
  },
  "search_parameters": {
    "engine": "google",
    "q": "\"Jane Example\" site:example.org",
    "device": "desktop",
    "hl": "en",
    "gl": "us"
  },
  "search_information": {
    "query_displayed": "\"Jane Example\" site:example.org",
    "total_results": 12
  },
  "organic_results": [
    {
      "position": 1,
      "title": "Jane Example - Example Org",
      "link": "https://example.org/people/jane-example",
      "domain": "example.org",
      "snippet": "Jane Example is a made-up person."
    }
  ],
  "pagination": {
    "current": 1
  }
}
```

## Account

### Monthly usage, remaining searches and the hourly rate limit.

`GET /me`

- Footprint: passive (the target is not contacted)

Reports how many searches were used this month and this hour. Searches are rejected when searches_this_hour reaches hourly_rate_limit, and when the remaining searches are 0.

Response fields:

- `account.current_month_usage` (integer): Searches performed this month
- `account.monthly_allowance` (integer): Maximum searches per month
- `account.remaining_credits` (integer): Free searches outside the monthly allowance
- `account.remaining_searches` (integer): Unused allowance plus remaining credits
- `api_usage.searches_this_hour` (integer): Searches made in the current hour
- `api_usage.hourly_rate_limit` (integer): Maximum searches allowed per hour
- `subscription.period_start` (string): Start of the current subscription period
- `subscription.period_end` (string): End of the current subscription period

```bash
curl 'https://www.searchapi.io/api/v1/me?api_key=YOUR_API_KEY'
```

Example response (200):

```json
{
  "account": {
    "current_month_usage": 480,
    "monthly_allowance": 10000,
    "remaining_credits": 0,
    "remaining_searches": 9520
  },
  "api_usage": {
    "searches_this_hour": 25,
    "hourly_rate_limit": 2000
  },
  "subscription": {
    "period_start": "2025-01-04T00:34:59Z",
    "period_end": "2025-02-04T00:34:59Z"
  }
}
```

---

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/
