NEW ScrapingAnt MCP for Claude Code, Cursor & Windsurf — try it free →
★★★★★ 5.0 on Capterra

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
your-rank-tracker best web scraping api US · en #1 scrapingant.com ScrapingAnt — Web Scraping API, Proxies, AI… ★ tracked · last scan: 2m ago #2 scraperapi.com ScraperAPI — Web Scraping API for Developers → scrape #3 serpapi.com SerpApi — Google SERP scraping → scrape #4 brightdata.com Bright Data — Web data platform → scrape SERP + every destination · one /v2/general key

From API key to saved HTML.

  1. Copy your key from the dashboard after signing up. Replace YOUR_API_KEY in every request, then paste the command into a terminal with cURL 7.76 or later.
  2. Change the search phrase in the target URL. --get sends url, browser and proxy_country as query parameters; the key goes in the x-api-key header. Google's hl and gl belong inside the target URL.
  3. Inspect google-serp.html and google-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 replace https://example.com before 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.

SerpApi · Serper SERP only + another vendor for destinations ScrapingAnt SERP destination HTML ✓ one key ✓ one credit pool ✓ one rate limit ✓ unified billing
One API, both sides of the click

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/general returns page content; parse the HTML for your workflow
  • /v2/extract returns AI-extracted JSON; validate fields before storing
  • /v2/markdown for AI-search-engine pipelines feeding an LLM
Google Bing Yandex DuckDuckGo same /v2/general · same key
Beyond Google

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/uule params
  • Choose browser=true for 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.

Compare plans side by side. Every tier includes 10,000 free credits to start.
👈Swipe to compare all 5 plans👉
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 Email 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 — included included included included
Custom proxy pools — — included included included
Custom anti-bot avoidances — — included included included
Dedicated account manager — — included included included
Start Free Start Free → Start Free Start Free Talk to Sales
⚡
Hit your limit mid-month?
Restart your plan instantly — no waiting for the next billing cycle. Credits refresh the moment you pay, so scraping never has to stop.
✓10,000 free credits every month
✓No credit card required
✓Pay only for successful scrapes — failed requests cost 0
Customers

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.”

Illia K.
Android Software Developer
★★★★★

“Great communication with co-founders helped me to get the job done. Great proxy diversity and good price.”

Andrii M.
Senior Software Engineer
★★★★★

“This product helps me to scale and extend my business. The setup is easy and support is really good.”

Dmytro T.
Senior Software Engineer
FAQ

Google search API FAQ.

Anything else? Talk to us — we read every email.

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.

Talk to us

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.”

Oleg Kulyk
Founder, ScrapingAnt

A real human replies within a few hours · we don't share your email

Thanks — we'll be in touch shortly.
Something went wrong submitting the form. Please try again or email us directly.

Ready to scrape the web?

10,000 free credits every month. No credit card. Pay only for successful requests.

Sign up in under 30 seconds — no card, no commitment.