Skip to content
OSINTtools.io

SearchApi API

SERP API for Google, Bing, Yandex, Baidu and more, plus reverse image, news, social profile and ad library endpoints, as JSON.

Base URL
https://www.searchapi.io/api/v1
Sign-in
API key
Free tier
Free trial
Pricing
Subscription
Format
REST
Endpoints
2

Compiled by OSINTtools.io editors from searchapi.io · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

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.

Quick start

  1. Get a key

    Create an account with SearchApi and copy your api key (free trial). Where to get it

  2. Make your first request

    Google web search results as JSON.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

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

    A 200 response looks like this, shortened.

    {
      "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."
    …

Authentication

Send your API key in the api_key query parameter of every request.

Can also be sent as an Authorization: Bearer header.

Get a key from SearchApi

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Per the pricing FAQ, up to 20% of the plan's credits can be used each hour; the account endpoint reports hourly_rate_limit.

Free trial. Pricing: subscription.

Google web search results as JSON.

GET/search?engine=google

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.

Query parameters

qstringrequiredtakes your name

Search query; supports operators such as site:, inurl:, intitle:, AND, OR

Example: "Jane Example" site:example.org
devicestring

Device to search as

Example: desktopDefault: desktopOne of: desktop, mobile, tablet
locationstring

Canonical search location; cannot be combined with uule, latitude or longitude

Example: Austin,Texas,United States
glstring

Country code

Example: usDefault: us
hlstring

Interface language

Example: enDefault: en
lrstring

Restrict results by document language, e.g. lang_jp; join several with |

Example: lang_jp
crstring

Restrict results by document country

safestring

SafeSearch mode

Example: offDefault: blurOne of: active, blur, off
filterinteger

1 enables duplicate and host crowding filters, 0 disables them

Example: 1Default: 1
nfprinteger

1 excludes results from spelling auto-correction

Example: 0Default: 0
time_period_minstring

Start date, MM/DD/YYYY

Example: 01/01/2025
time_period_maxstring

End date, MM/DD/YYYY

Example: 06/30/2025
verbatimboolean

true disables query modifications

Example: true
pageinteger

Results page

Example: 1Default: 1
Response fields · 13Show

idstring

Identifier of the search

statusstring

Status of the search

json_urlstring

URL of the stored JSON result

qstring

The query as sent

query_displayedstring

Query as displayed by Google

total_resultsinteger

Total results reported

positioninteger

Position in the results

titlestring

Result title

linkstring

Result URL

domainstring

Domain of the result

snippetstring

Text snippet

datestring

Date shown for the result, when present

currentinteger

Current page

curl 'https://www.searchapi.io/api/v1/search?engine=google&q=%22Jane%20Example%22%20site%3Aexample.org&api_key=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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

  • 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 · 8Show

current_month_usageinteger

Searches performed this month

monthly_allowanceinteger

Maximum searches per month

remaining_creditsinteger

Free searches outside the monthly allowance

remaining_searchesinteger

Unused allowance plus remaining credits

searches_this_hourinteger

Searches made in the current hour

hourly_rate_limitinteger

Maximum searches allowed per hour

period_startstring

Start of the current subscription period

period_endstring

End of the current subscription period

curl 'https://www.searchapi.io/api/v1/me?api_key=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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"
  }
}