What Is a SERP API? How It Works and What You Get Back
A SERP API returns search engine results as structured JSON. See how it works, what the response contains, common use cases and how to choose one.
· 9 min read
A SERP API is a service that runs a search on an engine such as Google or Bing for you and returns the results page as structured JSON instead of HTML. You send a keyword, a country and a device, and you get back organic results, ads and SERP features as named fields your code can read.
- A SERP API turns a search results page into JSON: one request in, one parsed page out.
- The provider handles the hard parts: proxies, rendering, blocks and a parser that has to keep up with layout changes.
- Typical uses are rank tracking, SEO tools, grounding AI answers in live results and monitoring prices or competitors.
- Since Google stopped honouring the num=100 parameter in September 2025, collecting a top 100 takes several requests, so check how a provider bills for depth.
- Compare providers on engines covered, features parsed, location and device options, speed, pricing and what happens when a request fails.

What is a SERP API?
A SERP API is a web API that fetches a search engine results page (SERP) on your behalf and hands it back as data. SERP is the page you see after you search. The API part means you ask for it with an HTTP request and get a machine-readable answer.
The reason it exists is simple. Search engines are built for people using browsers, not for programs. If your code requests a results page directly, it gets a large HTML document that changes often, and after a small number of automated requests it starts getting CAPTCHAs or blocks. A SERP API sits in between, deals with that, and gives you the same information in a stable shape.
How does a SERP API work?
A SERP API works in four steps: it takes your request, loads the results page through a proxy in the right location, parses the page into fields, and returns JSON. Most providers also cache, retry failed loads and normalise the output so different engines look alike.
What a request and response look like
The block below is an example shape only. The host, parameter names and values are illustrative and are not the documentation of any specific provider.
GET https://api.example.com/v1/search?engine=google&q=running+shoes&gl=us&device=mobile
Authorization: Bearer YOUR_API_KEY
{
"search": { "engine": "google", "q": "running shoes", "gl": "us", "device": "mobile" },
"features": ["ai_overview", "people_also_ask", "shopping"],
"organic": [
{
"position": 1,
"title": "Example result title",
"url": "https://www.example.com/running-shoes",
"snippet": "Example description text shown under the title."
}
],
"people_also_ask": [
{ "question": "Example related question?", "source": "https://www.example.org/guide" }
]
}
What does the JSON response contain?
The response contains the search settings you asked for, the organic results in order, and a separate block for each SERP feature the parser found. Field names differ by provider, but the content is broadly the same.
| Block | What it usually holds |
|---|---|
| Search metadata | Engine, query, country, language, device, time taken |
| Organic results | Position, title, URL, displayed snippet, sometimes sitelinks |
| Ads | Paid results with position, advertiser URL and text |
| AI Overview | The generated summary and the pages it cites, when one is shown |
| People Also Ask | Related questions, with answer text and source where available |
| Local pack | Business names, ratings, addresses for local queries |
| Video, image and news blocks | Titles, sources and links for each item |
| Related searches | The suggested follow-up queries at the foot of the page |
If these blocks are new to you, SERP features explained covers what each one is and what triggers it.
You can look at real output without writing code. The Google SERP Checker shows the live top 10 for a keyword by country and device, lists the features found, and has a JSON view of the structured data. The Bing SERP Checker does the same for Bing, which is useful for seeing how one JSON shape can cover two engines.
What is a SERP API used for?
A SERP API is used wherever software needs to know what a search engine shows for a query. Four use cases account for most of the demand.
Rank tracking
You send the same keywords on a schedule, find your domain in the organic results and store the position. Because the response also lists the features on the page, you can record context with each ranking: whether an AI Overview appeared, whether you were cited in it, whether a local pack pushed the links down.
SEO and content tools
Keyword research tools, content briefs and competitor reports all start from results data. Pulling the top results shows who ranks and how they title their pages. Pulling the questions feeds an outline, as described in our guide to People Also Ask for keyword research.
Grounding AI answers
A language model only knows what was in its training data. Giving it fresh search results for a question lets it answer with current facts and point to sources. Developers use a SERP API as the search step in retrieval pipelines and agents because the JSON is compact and easy to pass to a model.
Price and market monitoring
Shopping results, ads and local listings show who is selling what, at what price and where. Retailers and agencies query them on a schedule to watch competitors, check that their own ads appear and see which brands show for commercial terms.
Should you build your own scraper or buy a SERP API?
Buy unless scraping search results is your core business. Writing the first version of a scraper is quick. Keeping it working is the expensive part, because you take on proxies, block handling and a parser that breaks whenever the page layout changes.
| Build it yourself | Use a SERP API | |
|---|---|---|
| Up-front work | Scraper, proxy pool, renderer, parser | An API key and one HTTP call |
| Ongoing work | Fix the parser on layout changes, rotate proxies, handle CAPTCHAs | None on the collection side |
| Cost model | Proxy and server bills plus engineering time | Per request or per successful result |
| Location and device coverage | Whatever proxies you source | Set by a parameter |
| Control | Full | Limited to the provider's options |
| Main risk | Silent breakage and blocked IPs | Dependence on one vendor |
The September 2025 num=100 change is a good example of the maintenance burden. For years, adding num=100 to a Google results URL returned 100 results on one page, and rank trackers relied on it. In mid-September 2025 the parameter stopped working. Google did not announce the change, and a spokesperson later said the parameter was not something it formally supports. A top 100 now takes about ten page loads instead of one, which raised collection costs across the industry. Teams with their own scrapers had to rebuild paging overnight. API customers mostly had to check their bill.
What should you compare when choosing a SERP API?
Compare the things that affect your data and your cost: coverage, parsing depth, targeting, speed, reliability and pricing rules. A low headline price means little if the features you need are not parsed.
- List the engines you need. Google only, or also Bing, YouTube, Maps, autocomplete, news and trends.
- Check which features are parsed. Ask for a sample response for your own keywords and confirm AI Overviews, People Also Ask and local packs appear as fields.
- Test location and device targeting. Country is standard. City-level targeting and separate mobile results are not always included.
- Measure response time. Run live requests for a realistic set of keywords and note the slow ones, not just the average.
- Read the pricing rules. Find out whether failed requests are billed, whether deeper pages cost extra after the num=100 change, and whether credits expire.
- Look at the developer side. Clear documentation, SDKs for your language, sensible error codes and rate limits you can live with.
- Start small. Use a free allowance to run your real workload for a week before you commit.
To compare how features differ between keywords before you test any provider, the SERP Feature Detector builds a matrix of features for up to five keywords at once. All the free SERP tools on this site include a JSON view, so you can see the kind of structure an API returns.
SerpAPIs itself is in early access. The pricing shown on the site is proposed, not final: pay as you go, with 100 free searches a month and a rate of $2.50 per 1,000 searches for the first 100,000.
Frequently asked questions
Is using a SERP API legal?
It depends on your jurisdiction, the data you collect and how you use it, so there is no single answer. SERP APIs collect publicly visible results pages, and they are widely used by SEO and research tools. Search engines' terms of service restrict automated access. If the data is central to your business, get legal advice for your own situation.
What is the difference between a SERP API and web scraping?
Web scraping is the general technique of loading pages and extracting data from the HTML. A SERP API is a managed service that does this for search results specifically and returns parsed JSON. You get the outcome of scraping without running proxies, browsers or parsers yourself, and you pay per request instead of maintaining the infrastructure.
Does Google have an official SERP API?
Google has no self-serve API that returns its full public results page with every feature. Its Custom Search JSON API is closed to new customers and is due to be discontinued on January 1, 2027, and Search Console only reports how your own site performs. That gap is why third-party SERP APIs exist.
How much does a SERP API cost?
Pricing is usually per 1,000 searches, either as a monthly plan with a fixed allowance or as pay as you go. Rates vary widely between providers and by speed, with queued requests cheaper than live ones. Check what counts as a billable search, because failed requests and deeper result pages are treated differently from one provider to another.
Can a SERP API return 100 results in one request?
Not from a single Google page any more. Google stopped honouring the num=100 URL parameter in September 2025, so a results page holds about ten organic results. Providers that offer a top 100 now page through several requests behind the scenes. Ask whether that depth is billed as one search or as several.