Google Search API. And the pages it links to.
SerpApi and Serper return search results. ScrapingAnt returns search results and scrapes every destination page — one key, one credit pool, one rate limit. Bing and Yandex on the same endpoint.
Google · Bing · Yandex · DuckDuckGo · failed requests cost 0
# Replace YOUR_API_KEY with your dashboard key.
curl --fail-with-body --get 'https://api.scrapingant.com/v2/general' \
--header 'x-api-key: YOUR_API_KEY' \
--data-urlencode 'url=https://www.google.com/search?q=best+web+scraping+api&hl=en&gl=us' \
--data-urlencode 'browser=true' \
--data-urlencode 'proxy_country=US' \
--dump-header google-headers.txt \
--output google-serp.html# Replace YOUR_API_KEY in each request.
curl --fail-with-body --get 'https://api.scrapingant.com/v2/general' \
--header 'x-api-key: YOUR_API_KEY' \
--data-urlencode 'url=https://www.bing.com/search?q=best+web+scraping+api' \
--data-urlencode 'browser=true' \
--data-urlencode 'proxy_country=US' \
--output bing-serp.html
curl --fail-with-body --get 'https://api.scrapingant.com/v2/general' \
--header 'x-api-key: YOUR_API_KEY' \
--data-urlencode 'url=https://yandex.com/search/?text=best+web+scraping+api' \
--data-urlencode 'browser=true' \
--data-urlencode 'proxy_country=US' \
--output yandex-serp.html# 1. Save the search HTML. Replace YOUR_API_KEY.
curl --fail-with-body --get 'https://api.scrapingant.com/v2/general' \
--header 'x-api-key: YOUR_API_KEY' \
--data-urlencode 'url=https://www.google.com/search?q=best+web+scraping+api&hl=en&gl=us' \
--data-urlencode 'browser=true' \
--data-urlencode 'proxy_country=US' \
--output serp.html
# 2. Read serp.html and choose an organic destination.
# Replace https://example.com with that full URL.
curl --fail-with-body --get 'https://api.scrapingant.com/v2/general' \
--header 'x-api-key: YOUR_API_KEY' \
--data-urlencode 'url=https://example.com' \
--data-urlencode 'browser=true' \
--data-urlencode 'proxy_country=US' \
--output destination.html From API key to saved HTML.
- Copy your key from the dashboard after signing up. Replace
YOUR_API_KEYin every request, then paste the command into a terminal with cURL 7.76 or later. - Change the search phrase in the target URL.
--getsendsurl,browserandproxy_countryas query parameters; the key goes in thex-api-keyheader. Google'shlandglbelong inside the target URL. - Inspect
google-serp.htmlandgoogle-headers.txt. A successful API response does not guarantee the results you need: check for a results page rather than a challenge or consent page. For the destination tab, select an organic link yourself and replacehttps://example.combefore running the second request. These commands do not automatically identify the top result.
Need JSON? Use /v2/extract with extract_properties describing the fields you want, then validate its AI-extracted output. The /v2/general examples above save HTML.
What Google search APIs miss.
SerpApi and Serper handle search. They don't handle the pages search links to. ScrapingAnt does.
One key, both sides
Stop stitching SerpApi + ScraperAPI. One ScrapingAnt key covers SERP and the destinations.
How it works →Google + Bing + Yandex
All major engines on one credit pool. No per-engine billing tier to upgrade into.
Multi-engine →Credit-based pricing
One allowance covers your requests. Credit cost varies with settings and target; check each response header.
See pricing →SERP-only APIs end where you start.
Rank-tracking, AI search engines and affiliate monitoring often need both the listing and the destination. Fetch search HTML through /v2/general, select the organic URLs you need, then fetch those destinations through the same endpoint and key. Each is a separate request against your allowance; browser, proxy and extraction settings can change its credit cost.
/v2/generalreturns page content; parse the HTML for your workflow/v2/extractreturns AI-extracted JSON; validate fields before storing/v2/markdownfor AI-search-engine pipelines feeding an LLM
Google + Bing + Yandex + DuckDuckGo. Same endpoint.
With ScrapingAnt, choose the engine by changing the target URL. Google, Bing and Yandex use the same endpoint and key, with your chosen query and proxy options. They share one allowance, but credit cost and returned HTML can differ. Check the response and adapt your parser to each engine's layout.
- Country-targeted Google SERPs via
proxy_country+hl/gl/uuleparams - Choose
browser=truefor rendered HTML; inspect output before changing browser settings - Search features vary by query and location; extract only what the returned page contains
Six SERP workloads teams build.
Same Google search API, same credit pool — different ways of slicing the data underneath.
Rank tracking tools
Daily keyword position scans across countries and devices. The same key fetches Google, Bing, Yandex — no per-engine billing.
Featured-snippet research
Capture answer boxes, knowledge panels, People Also Ask blocks across thousands of queries. JS rendering exposes the full SERP layout.
Local SEO & geo-SERP
Country-level proxies (100+) plus location-aware Google params return locale-specific SERPs without VPN tooling.
AI search engines
Power Perplexity-style answer engines: fetch SERP + each cited URL through one credit pool, return Markdown via /v2/markdown for the LLM.
Affiliate-link monitoring
Scan competitor pages for affiliate link drift, monitor your own placements across the SERP, alert on rank loss.
Brand SERP defense
Daily branded-keyword sweep — catch impostor sites, ad squatters, and review-site rankings before customers find them.
Pricing
Industry leading pricing that scales with your business.
|
Plans
|
Enthusiast
100K credits / mo
$19/mo
|
★ Most Popular
Startup
500K credits / mo
$49/mo
|
Business
3M credits / mo
$249/mo
|
Business Pro
8M credits / mo
$599/mo
|
Custom
10M+ credits / mo
$699+/mo
|
|---|---|---|---|---|---|
| Monthly API credits | 100,000 | 500,000 | 3,000,000 | 8,000,000 | 10M+ |
| Support channel | Priority email | Priority email | Priority email | Priority + dedicated | |
| Integration help | Docs only | Custom code snippets | Debug sessions | Priority debug sessions | Full enterprise onboarding |
| Expert assistance | — | ||||
| Custom proxy pools | — | — | |||
| Custom anti-bot avoidances | — | — | |||
| Dedicated account manager | — | — | |||
| Start Free | Start Free → | Start Free | Start Free | Talk to Sales |
What teams are saying.
From solo developers shipping side projects to enterprise pipelines at Fortune 500s.
★★★★★ 5.0 on Capterra →★★★★★“Onboarding and API integration was smooth and clear. Everything works great. The support was excellent.”
★★★★★“Great communication with co-founders helped me to get the job done. Great proxy diversity and good price.”
★★★★★“This product helps me to scale and extend my business. The setup is easy and support is really good.”
What is a Google search API?
A Google search API fetches search-result pages without you running headless browsers or rotating proxies yourself. ScrapingAnt's /v2/general returns the fetched page content; for a search page, that is HTML you parse yourself. The separate /v2/extract endpoint returns AI-extracted JSON. The same key can also fetch the destination pages linked from the results.
How is this different from SerpApi or Serper?
SerpApi and Serper specialize in SERPs and stop there. To fetch the pages your SERP links to, you stitch on a second provider (ScraperAPI, Bright Data Web Unlocker, your own). ScrapingAnt's value is unified billing: one key, one credit pool, one rate limit covering SERP + every destination page. For teams running rank-tracking, AI search engines, or affiliate-link monitoring — where you need both — it's a cheaper and simpler stack.
Does it return structured JSON or raw HTML?
/v2/general returns the fetched page content, not a normalized SERP JSON object. For HTML search pages, inspect the HTML and use a parser suited to the returned layout. /v2/extract is a separate endpoint: it requires the extract_properties query parameter describing what to extract and returns AI-extracted JSON. Validate the returned fields before using them; it is not a fixed search-engine schema. /v2/markdown returns a JSON object containing the URL and Markdown content.
Can I scrape Google legally?
Scraping Google search results violates Google's ToS but the legal precedent (notably hiQ Labs v. LinkedIn) protects scraping of publicly available data. Every SERP API on the market (SerpApi, Bright Data, ScraperAPI, Serper, Apify) ships this openly because the industry has normalized it. We don't provide legal advice; you're responsible for your use under your jurisdiction's rules.
How much does it cost per 1,000 SERP queries?
Credit cost depends on the request's browser and proxy settings, the target, and any AI extraction. Search and destination requests use the same allowance, but their costs can differ. Check the Ant-credits-cost response header for each successful request; the Google example saves it in google-headers.txt. Multiply the observed credits per request by 1,000 and compare with your plan allowance. AI extraction adds a content-based charge. See the plan table above and the API comparison.
Do credits expire at the end of the month?
Your monthly allowance resets on the billing-date, but unused credits during the month don't reset mid-period — they're available the full month. SerpApi's pricing structure works differently; we get questions from teams migrating off it about this specifically.
Can I get location-specific Google results?
Yes — two layers. (1) Set proxy_country=DE for German egress IP. (2) Add Google's own location params (hl=de&gl=DE or the uule parameter for city-level targeting). Most rank-tracking tools combine both. Our residential pool covers 100+ countries; datacenter pool covers the high-volume regions.
What about Bing, Yandex, DuckDuckGo?
Use the same /v2/general endpoint with the engine's full search URL, your x-api-key header, and query options. The Bing and Yandex tab shows complete requests. Engines share your credit allowance; costs depend on request settings and target behavior. Results and layouts can vary by engine, location and time, so inspect the returned HTML before parsing it.
Running high-volume rank tracking?
Custom volume pricing, dedicated proxy pools, geo-targeted SERP regions we don't surface in pricing, or migration help from SerpApi — drop us a line and a real human gets back within a few hours.
“Our clients are pleasantly surprised by the response speed of our team.”