SearchApi: a real-time SERP API guide
Table of Contents
This guide is for developers and SEO people who want Google results as data. It covers what SearchApi is, how one request works, what the JSON can hold, and what the published plans cost. It is not an official SearchApi publication.

Every product fact here comes from SearchApi’s public pages and docs, read on 23 Nov 2026. The code is curl and Python, with versions. You bring your own key.
What SearchApi is
SearchApi, LLC is a company in New York. Its homepage calls the product a “Google Search API for real-time SERP scraping”. You send a search. SearchApi returns the results page as structured JSON.
A SERP is a search engine results page. The homepage lists what you can pull from it: “organic results, ads, related searches, inline questions and more.” Your code reads named fields. It does not parse Google’s HTML.
Sign-up starts with 100 free requests. The site says: “No credit card required. No commitment. Cancel anytime.” The three live examples on this page use one request each, so the free allowance covers them.
Get 100 free SearchApi requests.
Which search engines the docs list
The docs have no single index page. Each engine has its own page. The “View Documentation” link on the homepage opens the Google Search API page, and its sidebar is the engine menu.
On 23 Nov 2026, that sidebar listed 261 engine-like documentation pages. It also listed 6 utility pages and 5 Google parameter pages. That is a count of pages in the menu on that date. SearchApi does not publish it as an engine count.
The menu goes past Google Search. It includes Bing, YouTube, Amazon, Google Maps, and Google News.
For SEO and AI visibility work, six engines matter on this page:
| Engine | engine value | Main fields in the docs examples |
|---|---|---|
| Google Search | google | search_metadata, search_information, organic_results, knowledge_graph, related_searches, pagination |
| Google Rank Tracking | google_rank_tracking | search_metadata, search_parameters, organic_results |
| Google AI Overview | google_ai_overview | text_blocks, markdown, reference_links |
| Google AI Mode | google_ai_mode | text_blocks, markdown, reference_links, pagination |
| ChatGPT | chatgpt | text_blocks, markdown, cards, response_metadata |
| Gemini | gemini | text_blocks, markdown, reference_links, response_metadata |
These are field names from official examples. The docs do not publish one complete schema for every engine, so treat each list as a starting point.
Five utility APIs support those engines:
- Account API (
/api/v1/me). It returns your monthly usage, remaining searches, and hourly limit. - Locations API (
/api/v1/locations). It finds the canonical location name for the Googlelocationparameter. The docs say it “is completely free.” - Google Resolve API (
engine=google_resolve). It turns Google redirect tokens into destination URLs. Its requests use no credits. - Search History API (
/api/v1/search_history). It returns your own searches from the past 90 days. It needs a subscription and is free to use. - Search Analytics API (
/api/v1/search_analytics). It needs the Scale plan or higher. It is free to use and covers the last year.
How a SearchApi request works
One request is one HTTP GET to /api/v1/search on the www.searchapi.io host. The engine parameter picks the engine. The same endpoint serves Google Search and Google Rank Tracking.

For Google, three parameters are required: engine set to google, q with your search terms, and api_key. The docs accept the key in two places: as the api_key query parameter, or as an Authorization: Bearer header.
I use the header in every example here. A key in a URL can leak. SearchApi’s own MCP page gives the reason for its URLs: “URLs can be retained in browser history and intermediary logs.” Keep the key in an environment variable, and keep it out of your repo.
Prerequisites for the first two samples:
- A SearchApi account and its API key.
- The key in your shell as
SEARCHAPI_API_KEY. - curl 7.x or newer, for the curl sample.
- Python 3.10 or newer and requests 2.32 or newer, for the Python sample.
Here is the request in curl. It saves the response to a file, so you can read it again without a second search.
# curl 7.x or newer. Set the key first: export SEARCHAPI_API_KEY=...
curl -sS -G "https://www.searchapi.io/api/v1/search" \
-H "Authorization: Bearer ${SEARCHAPI_API_KEY}" \
--data-urlencode "engine=google" \
--data-urlencode "q=serp api" \
--data-urlencode "gl=us" \
--data-urlencode "hl=en" \
--data-urlencode "device=desktop" \
-o google-serp-api.json
The Python examples in the SearchApi docs use the third-party requests library. No other package is needed, and this sample does the same.
# Python 3.10+ and requests 2.32+ (pip install "requests>=2.32")
import os
import requests
URL = "https://www.searchapi.io/api/v1/search"
API_KEY = os.environ["SEARCHAPI_API_KEY"] # never hard-code the key
params = {"engine": "google", "q": "serp api", "gl": "us", "hl": "en"}
headers = {"Authorization": f"Bearer {API_KEY}"}
response = requests.get(URL, params=params, headers=headers, timeout=60)
response.raise_for_status()
data = response.json()
print(data["search_metadata"]["status"], data["search_metadata"]["created_at"])
The Google docs list many optional parameters. These are the ones I would set first for SEO work, as the docs describe them:
| Parameter | Required | What the docs say |
|---|---|---|
engine | Yes | Must be google. |
q | Yes | The search terms. Operators such as site:, inurl:, and intitle: are allowed. |
api_key | Yes | Query parameter, or Authorization: Bearer header. |
gl | No | Country. Default us. |
hl | No | Interface language. Default en. |
device | No | Default desktop. Also mobile or tablet. |
location | No | Canonical location name. Get it from the Locations API. |
num | Phased out | “It is now constant 10.” |
google_domain | Deprecated | Use gl and hl instead. |
The num row matters for rank work. The docs say Google phased it out in September 2025. For more than 10 organic results in one call, the docs point to the Google Rank Tracking API. It returns “up to 100 organic results with guaranteed no duplicates.” You call it on the same endpoint with engine=google_rank_tracking.
What a Google response can include
The official examples share one shape. Three objects describe the request: search_metadata, search_parameters, and search_information. Result collections follow. Which collections appear depends on the query.
In the homepage example, search_metadata holds id, status, created_at, three timing fields, request_url, html_url, and json_url. The json_url points to a saved copy of that search under /api/v1/searches/. For research, created_at is the field I would keep with every file. It is the date of your snapshot.
These are sections the docs list. They are not sections you will get on every query:
| Section | Key in the docs examples |
|---|---|
| Organic results | organic_results |
| AI Overview | ai_overview |
| Answer box | answer_box |
| Knowledge Graph | knowledge_graph |
| Related questions | related_questions |
| Local results | local_results |
| Ads | ads |
| Top stories | top_stories |
In the homepage example, each organic result has position, title, link, source, domain, displayed_link, and snippet.
Google wraps many result links in redirects. The docs say: “The top three organic result links are resolved to their destination URL for you. Every other redirect link comes with a link_token.” You resolve those tokens with the Google Resolve API, free of charge. Its limits are 500 requests a minute and 100 at a time, or 10 at a time without a subscription. Ads do not get tokens.
You can learn the shape without spending a request. The script below reads a short copy of the official homepage example.
# Python 3.10+, standard library only. Example data, trimmed from the
# official SearchApi homepage example. It is not a live result.
import json
example = json.loads("""
{
"search_metadata": {"status": "Success", "created_at": "2024-10-07T18:34:14Z"},
"search_parameters": {"engine": "google", "q": "chatgpt", "gl": "us", "hl": "en"},
"organic_results": [
{"position": 1, "title": "ChatGPT", "link": "https://openai.com/chatgpt/",
"domain": "openai.com", "snippet": "Type, talk, and use it your way."}
]
}
""")
print("Snapshot time:", example["search_metadata"]["created_at"])
for result in example.get("organic_results", []):
print(result["position"], result["title"], result["link"])
for section in ("ai_overview", "related_questions", "answer_box"):
print(section, "present" if section in example else "absent")
The last loop is the habit to keep. Check for a key before you read it.
Pricing, credits, and limits
Prices below were checked 23 Nov 2026 on the SearchApi pricing page. Prices can change, so read the live page before you budget.
The headline on that page is “Pay per success”. The FAQ says: “Only successful searches with a 200 status code incur charges.” A failed request costs nothing.
Standard speed plans, checked 23 Nov 2026:
| Plan | Per 1,000 searches | Monthly price | Searches included |
|---|---|---|---|
| Developer | $4 | $40 | 10,000 |
| Production | $3 | $100 | 35,000 |
| BigData | $2.5 | $250 | 100,000 |
| Scale | $2 | $500 | 250,000 |
| Octo 500K | $1.8 | $900 | 500,000 |
| Octo 1M | $1.5 | $1,500 | 1,000,000 |
| Octo 2M | $1.4 | $2,800 | 2,000,000 |
| Octo 5M | $1 | $5,000 | 5,000,000 |
The page also has an Enhanced speed toggle. On every plan, the Enhanced price is double the Standard price. The page does not define the speed difference in numbers, so I will not guess one here.
Check current SearchApi plans.
Limits to plan around:
- Hourly cap. The FAQ says “you can utilize only up to 20% of your plan’s credits each hour.” On the Developer plan, that rule works out to 2,000 searches an hour.
- The cap is separate from your balance. The Account API docs say “a search can still be rejected when
searches_this_hourreacheshourly_rate_limit.” Check both fields before a large batch. - Resolve API limits. These are listed in the response section above.
Terms worth reading before you pay:
- Refunds. The Terms offer a complete refund within 10 days of subscribing, if you have used no more than 25% of your searches.
- Legal Protection Guarantee. It starts at the Production plan. The Terms say it does not apply to free trials or Developer plans. The pricing page says it “does not cover your use of the data or unlawful activities.”
Using SearchApi for SEO and AI visibility research
SearchApi’s own pages list several uses. These are the ones that touch SEO:
- Rank tracking. The homepage FAQ says “You can track keywords for specific locations, devices, and languages.”
- Paid search. The Google Search API “includes data on paid ads, allowing you to analyze competitors’ ad copy, display URLs, and ad positioning.”
- Local. The Google Maps API returns “local business information, ratings, reviews, GPS coordinates, and more.”
- AI Overviews. The Google AI Overview API “provides access to Google’s AI-generated search summaries that appear at the top of search results.”
- AI answers. The ChatGPT API “lets you query ChatGPT programmatically and get its answers as structured JSON.” The Gemini API returns markdown, cited
reference_links, andrelated_questions.
One snapshot shows one moment, for one location, one language, and one device. A rank history is many snapshots with the same inputs. If the inputs change between runs, the two snapshots do not compare.
This is how I would check one keyword with SearchApi:
- Fix the inputs:
q,gl,hl,device, andlocation. Write them down. Use the same values on every run. - Save the full JSON of each run. Put the date in the file name, and keep
created_at. - Record which sections appear:
ai_overview,related_questions,answer_box. - For positions past 10, call
google_rank_trackingwith the same inputs. - If you need the full AI Overview, call the AI Overview API right after the Google request. Its
page_tokencomes from the Google response, and the docs say “Page tokens expire in less than 1 minute.” - Compare two runs only when every input matches.
For AI answers, the work is similar. The ChatGPT and Gemini responses include markdown, and Gemini and Google AI Mode include reference_links. The docs describe these fields. They do not define a “mention” or a “citation” score. Counting brand names in markdown, or your domain in reference_links, is logic your own code owns. For the Google side of this topic, I wrote about what Google says about AI Mode and about SEO for AI and GEO.
If you want weekly ChatGPT and Gemini checks without building the pipeline, that is a job for Track AI in RankMySEO. RankMySEO is my product. Its page states the limit plainly: “Track AI checks ChatGPT and Gemini. It does not report Google AI Overviews or Perplexity.” For Google rank history, RankMySEO has a keyword rank tracker.
Try a Google request on SearchApi.
Worked example
This script does the full loop from the checklist above. It sends one Google request and saves the JSON with the date in the file name. Then it prints the first organic results and the sections that appear.
Prerequisites:
- A SearchApi account. The 100 free requests are enough for this script.
- Your key in the shell as
SEARCHAPI_API_KEY. Never paste it into the file. - Python 3.10 or newer.
- requests 2.32 or newer:
pip install "requests>=2.32".
# snapshot.py
# Python 3.10+ and requests 2.32+. Usage: python snapshot.py "serp api"
import json
import os
import re
import sys
from datetime import datetime, timezone
from pathlib import Path
import requests
URL = "https://www.searchapi.io/api/v1/search"
SECTIONS = ("ai_overview", "related_questions", "answer_box", "knowledge_graph")
def snapshot(query: str, gl: str = "us", hl: str = "en", device: str = "desktop") -> Path:
api_key = os.environ.get("SEARCHAPI_API_KEY")
if not api_key:
sys.exit("Set SEARCHAPI_API_KEY in your shell first.")
params = {"engine": "google", "q": query, "gl": gl, "hl": hl, "device": device}
headers = {"Authorization": f"Bearer {api_key}"}
response = requests.get(URL, params=params, headers=headers, timeout=60)
response.raise_for_status()
data = response.json()
stamp = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H%M%SZ")
slug = re.sub(r"[^a-z0-9]+", "-", query.lower()).strip("-")
out = Path("snapshots") / f"{stamp}_{slug}_{gl}_{hl}_{device}.json"
out.parent.mkdir(exist_ok=True)
out.write_text(json.dumps(data, ensure_ascii=False, indent=2), encoding="utf-8")
meta = data.get("search_metadata", {})
print("Status:", meta.get("status"), "| created_at:", meta.get("created_at"))
for result in data.get("organic_results", [])[:5]:
print(result.get("position"), result.get("title"), result.get("link"))
for section in SECTIONS:
print(f"{section}: {'present' if section in data else 'absent'}")
return out
if __name__ == "__main__":
if len(sys.argv) < 2:
sys.exit('Usage: python snapshot.py "your keyword"')
print("Saved:", snapshot(sys.argv[1]))
Run it with python snapshot.py "serp api". Each run adds one file to snapshots/, named by time, query, and inputs. Two files with the same inputs and different times give you a fair comparison.
The script stops if the key is missing or the request fails.
FAQ
What is SearchApi?
A real-time SERP API from SearchApi, LLC. You send a search request, and you get the results page back as structured JSON.
Is this an official SearchApi publication?
No. This guide is published on madebyaris.com, my own site. The product facts come from SearchApi’s public pages, read on 23 Nov 2026.
How do I authenticate a request without putting a key in a shared repo?
Read the key from an environment variable and send it in the Authorization: Bearer header. The docs accept that header or an api_key query parameter. Keep the variable in your shell or a secrets store.
What is the main endpoint, and what is required for a Google search?
A GET request to /api/v1/search on www.searchapi.io. For Google, send engine=google, q, and your key.
Why does a Google search return 10 organic results, and how do I request up to 100?
Because Google phased out num. The docs say it “is now constant 10.” For up to 100 organic results in one request, use engine=google_rank_tracking.
What is the difference between the Google Search API and the Google Rank Tracking API?
The scope of the response. The Google Search API returns the page sections the docs list, such as AI Overview and Related Questions. The Rank Tracking API focuses on organic results, up to 100 per request, with no duplicates.
How are searches billed, and are failed requests charged?
Per successful search. The pricing FAQ says failed requests are not billed. Only searches with a 200 status code are charged.
What is the published hourly rate limit?
Up to 20% of your plan’s credits each hour. The Account API returns searches_this_hour and hourly_rate_limit, so you can check both before a batch.
Does SearchApi document a free trial or free requests?
Yes, 100 free requests. The site says no credit card is required. The pricing page does not give a trial length in days.
Can I use SearchApi to measure ChatGPT or Gemini mentions?
Yes, with your own code. The ChatGPT and Gemini APIs return answers as structured JSON, and Gemini includes cited reference_links. The counting logic is yours.
Does SearchApi report Google AI Overviews?
Yes. A Google Search response can include an ai_overview section. A separate Google AI Overview API returns text_blocks, markdown, and reference_links, from a page_token that expires in less than 1 minute.
How should I date a crawl during a Google core update?
Save created_at from search_metadata with every response, and put the date in the file name. If Google announces an update during your collection window, mark those dates. Do not read a change in that window as the result of your own work.
Next steps
- Start with the free allowance: create a SearchApi account.
- Run
snapshot.pyon one keyword you care about, then run it again next week with the same inputs. - For weekly ChatGPT and Gemini checks, read how to track AI visibility.
- To fix what the data shows on your own site, start with my technical SEO audit checklist.
Need this built instead of read about?
Send me your project. I reply within 24 hours and tell you plainly whether I’m the right fit.





