20% off on all annual plans. Use 20blackfriday code at checkout.

Google Search Scraper API

Scrape Google search results to monitor keyword rankings, analyze competitors’ ads, and get near real-time SERP data, including features like “people also ask” boxes, related searches, and videos.

 

ScraperAPI turns Google Search data into JSON format to make it easier to analyze and reduce data to insights time.

Achieve near 100% success rate from day one!

*No credit card required. The free trial includes 5k API credits.

ScraperAPI Google search scraper for structured data
Scrape Google Search Results with ScraperAPI

Join the 10,000+ data-focused companies using ScraperAPI

Turn Google Search Results Into Structured JSON Data

Scrape fresh SERP data with a simple API call

Get the Google search result page for any keyword or list of keywords you need.

API endpoint
https://api.scraperapi.com/structured/google/search

Let ScraperAPI handle your requests and parse Google search responses for you.

After sending your get() request to our endpoint, ScraperAPI will return the search result page and its features in JSON or CSV format, including ads, people also ask questions, organic results, related searches, videos, and more.

json response
//MORE DATA
    "organic_results": [
        {
            "position": 0,
            "title": "What Is Machine Learning (ML)?",
            "snippet": "Machine learning (ML) is a branch of AI and computer science that focuses on the using data and algorithms to enable AI to imitate the way that humans\u00a0...",
            "highlighs": [
                "a branch of AI and computer science that focuses on the using data and algorithms to enable"
            ],
            "link": "https://www.ibm.com/topics/machine-learning",
            "displayed_link": "https://www.ibm.com \u203a topics \u203a machine-learning"
        },
        {
            "position": 5,
            "title": "Machine learning, explained",
            "snippet": "Apr 21, 2021 \u2014 Machine learning is a subfield of artificial intelligence that gives computers the ability to learn without explicitly being programmed.",
            "highlighs": [
                "subfield of artificial intelligence that gives computers the ability to learn"
            ],
            "link": "https://mitsloan.mit.edu/ideas-made-to-matter/machine-learning-explained",
            "displayed_link": "https://mitsloan.mit.edu \u203a ideas-made-to-matter \u203a machi..."
        }, //MORE DATA

Try our Google Search Endpoint

Create a free ScraperAPI account to get 5,000 API credits, add your API key to the api_key parameter, and copy and run the script below in a new Python project.

python snippet
import requests
import json

payload = {
   'api_key': 'YOUR_API_KEY',  #add your API key here
   'country': 'us',
   'query': 'what is machine learning'
}

#send your request to scraperapi
response = requests.get(
   'https://api.scraperapi.com/structured/google/search', params=payload)
serp = response.json()

#export the JSON response to a file
with open('serp.json', 'w') as f:
    json.dump(serp, f)

Collect Google Search Results Data at Scale

Extract Google Search Results in JSON

Send your get() requests through our Google Search structured endpoint and transform raw HTML into easy-to-analyze JSON data.

 

No need for complicated parsers or workaround. Our team of experts is constantly working to keep data flowing so you can focus on what matters: your business!

 

Start scraping Google Search in minutes.

Auto Parsing​
ScraperAPI geotargeting

Collect Localized Google Search Results

Google Search shows you different data based on where you are; quickly set specific countries you want your request to come from or change the Google TLD to get accurate, localized data.


Geotargeting is included in all plans.

Speed Up Turnaround on Large Google Search Scraping Projects

Achieve higher scraping speed using our Google Search endpoint with Async Scraper:

Let us manage timeouts, retries, anti-scraping mechanisms and any other complexity, and focus on getting the insights you need.
Async Scraper Service
Data Pipeline

Scrape Google Search with Low-Code

DataPipeline lets you build and schedule complete Google Search scraping projects without writing a single line of code.

 

To get started:

Once the project is running, we’ll send you the data to your Webhook, or you can download it through your project’s dashboard.

 

Monitor up to 10,000 keywords per project.

IP locatations

40M IPs Around
the World

Uptime guarantee

99.9%
Uptime Guarantee

Unlimited bandwith

Unlimited
Bandwidth

Professional support

Professional
Support

Use the Right Tool To Scrape Google Search — Power Up Your Infrastructure or Go Low-Code

No matter the level of complexity, our Google Search Scraper API is designed to fit any use case.

API

Integrate ScraperAPI to your existing infrastructure to improve the performance of your scrapers, achieve higher success rates, and increase scraping speed.

Automate your entire data pipeline at scale without writing a single line of code. Save on maintaining costly coding infrastructures and managing complex scrapers.

Handle millions of requests at a near 100% success rate with a simple Post() request. Scale your data collection for even the toughest domains.

Monitor Millions of Search Queries at Near Real-Time

Need more than 3M API credits a month?
Get in touch with our team of experts to build a plan that fits your goals, including 100+ concurrent threads, an account manager, and premium support

Useful Google Scraping Resources

Learn how to scrape Google Search with our step-by-step guides

Build a Google Search scraper from scratch using Python and BeautifulSoup.

See how companies can use ScraperAPI to get fresh SERP data.

Get structured JSON and CSV data from in-demand domains.

Find the Right Scraper for You

Get accurate, actionable business insights from the world’s biggest websites.

Use our structured data endpoints (SDEs) to turn raw HTML into ready-to-analyze JSON or CSV data.

What Our Customers
Are Saying

One of the most frustrating parts of automated web scraping is constantly dealing with IP blocks and CAPTCHAs. ScraperAPI gets this task off of your shoulders.

based on 50+ reviews

BigCommerce

Simplify Google Search Scraping with ScraperAPI

Test It Free For 7 Days

Hobby

Hobby

$49

/ month

Annual Hobby

$49

$44

/ month, billed annually

Startup

Startup

$149

/ month

Annual Startup

$149

$134

/ month, billed annually

Business

Business

$299

/ month

Annual Business

$299

$269

/ month, billed annually

Most popular

ENTERPRISE

Custom

Custom

/ month

Need more than 3,000,000 API Credits with all premium features, premium support and an account manager?

Are you not sure what plan fits best for you? Or do you want to discuss the option of a custom plan? Contact our sales.

All plans come with

Working on large projects and want to test longer?

Get a free consultation from our web scraping experts.