Proxy locations

Europe

North America

South America

Asia

Africa

Oceania

See all locations

Network statusCareers

Google Scraper API

Use Oxylabs’ Google SERP API to collect public data from Google: get web search results, news, image search, ads, and more.

*This tool is part of SERP Scraper API

google api

Dive into Google code samples

Effortlessly gather real-time Google data and skip past CAPTCHAs and other anti-scraping measures. See how it all comes together with Google Scraper API code samples.

Input parameters

source

Scraper

Set the scraper to 'google_search' to get web, image, or news search results. (Other sources: 'google', 'google_ads', 'google_images', 'google_lens', 'google_maps', 'google_travel_hotels', 'google_suggest', 'google_trends_explore')

query

Search query

Input UTF-encoded search query.

geo_location

Localization

Specify the UULE-based geographic location value. (State name, Country name, Coordinates and Radius, Criteria ID)

domain

Google domain

Specify Google domain you want to scrape.

locale

Interface language

Set the interface language.

results_language

Results language

Set the results language.

render

JavaScript rendering

Enable to load JavaScript-based content.

parse

Structured data

Enable to get structured data.

Input

Output

Output preview

Copy

import requests
from pprint import pprint

# Structure payload.
payload = {
   'source': 'google_search',
   'query': 'adidas',
   'parse': True,
   'domain': 'nl',
   'geo_location': 'Netherlands',
   'locale': 'nl-nl',
   'start_page': '1',
   'pages': '2',
   'context': [
        {'key': 'filter', "value": 1},
        {'key': 'results_language', "value": 'nl'}
    ]
}

# Take a free trial or buy the product on our dashboard to create an API user.
# Replace 'USERNAME' and 'PASSWORD' with your API credentials to run this request.

# Get response by using real-time endpoint.
response = requests.request(
    'POST',
    'https://realtime.oxylabs.io/v1/queries',
    auth=('USERNAME', 'PASSWORD'),
    json=payload,
)

# Print prettified response to stdout.
pprint(response.json())

See full code

...
  "content": {
    "url": "https://www.google.nl/search?q=adidas&lr=lang_nl&filter=1&safe=off&uule=w+CAIQICILbmV0aGVybGFuZHM&gl=nl&hl=nl",
    "page": 1,
    "results": {
      "pla": {
        "items": [
          {
            "pos": 1,
            "url": "https://www.footlocker.nl/nl/product/~/314310743704.html?channable=03b4996964003331343331303734333730343130305e",
            "price": "€ 119,99",
            "title": "Adidas - Campus Heren Schoenen - Grijs - Maat: 44 - Suède - Foot Locker",
            "seller": "Footlocker.nl",
            "source": "Van Shoparize",
            "url_image": "https://encrypted-tbn3.gstatic.com/shopping?q=tbn:ANd9GcR01C659O4XdaFVkjhIqJ5_MM22-7mgBox9yKQagKIZpjDJJabE5A7FV5h_7sbFraVOCFUs0qDJxMt4jkuO6RC6q_AnRiiNMhAAoH6rd-nxCCzKm17EK8JeglfyIqheCzY891TyuuN9FA&usqp=CAc",
            "image_data": "UklGRsoKAAB<...>SQAAAAAAAAA=="
          },
          { "...": "..." }
        ],
        "pos_overall": 1
      },
      "paid": [],
      "images": {
        "items": [
          {
            "alt": "Originals schoenen, kleding en accessoires | adidas NL",
            "pos": 1,
            "url": "https://www.adidas.nl/originals",
            "data": "/9j/4AAQSk<...>TKlQhB//9k=",
            "source": "https://www.adidas.nl/originals"
          },
          { "...": "..." }
        ],
        "pos_overall": 6
      },
      "organic": [
        {
          "pos": 1,
          "url": "https://www.adidas.nl/",
          "desc": "adidas is meer dan sport- en trainingskleding. We werken samen met de besten in de branche om samen te creëren. Op deze manier bieden we onze fans de ...",
          "title": "adidas Officiële Website Nederland | Sportwinkel",
          "sitelinks": {
            "expanded": [
              { "url": "https://www.adidas.nl/dames", "title": "Dames" },
              {"...": "..."}
            ]
          },
          "url_shown": "https://www.adidas.nl",
          "pos_overall": 2
        },
        { "...": "..." }
      ],
      "search_information": {
        "query": "adidas",
        "showing_results_for": "adidas",
        "total_results_count": 10200000
      }
    }
  }
...

Try Google Scraper API out for yourself

Discover Scraper APIs Playground on Oxylabs dashboard for a firsthand interaction with our APIs, and explore technical documentation for all the information you need.

Great service and support! We have been using Oxylabs services for several years, and we are very pleased with the quality of service, especially comparing to previous few similar we tried. Their crew also has been very forthcoming and helpful.

Milos

Oxylabs customer

What customers are saying

Oxylabs aims not only to be the leading provider of web data collection solutions but a reliable business partner. We highly appreciate customers trusting us with their data needs.

24/7 support and other features

Detailed guides

Get a smooth start with Oxylabs’ documentation and demo video.

Proxy pool management

Take advantage of our 102M+ proxy pool without worrying about its management.

Bulk gathering

Retrieve data from multiple pages with up to 5,000 URLs per batch.

Multiple delivery options

Get your data delivered via an API or to your cloud storage bucket (AWS S3 or GCS).

Highly scalable

Easy to integrate, customize & supports a high volume of requests.

24/7 support

Reach out to our friendly and professional support specialists at any time of the day.

Smart Google SERP API features

Custom Parser

Write your own parsing instructions and leverage our infrastructure to collect parsed data from any target hassle-free.

  • No need to maintain your own parser

  • Define your own parsing logic with XPath and CSS selectors

  • Collect ready-to-use structured public data from Google

Scheduler

Take advantage of our Scheduler feature to automate recurring data collection and parsing jobs, allowing you to schedule them at the desired frequency.

  • Create multiple schedules for different jobs

  • Receive data automatically to your preferred cloud storage

  • Get notifications once each job is done

Google Search API pricing

Gather data from Google effortlessly

Regular
Enterprise

Pay only for successful results

Gather coordinate-level SERP data

Receive data collection know-how

Don’t miss out

Free Trial

0

1 week trial

Limited to 1 user

Micro

49

$2.80 / 1K results

$49 + VAT billed monthly

Starter

99

$2.60 / 1K results

$99 + VAT billed monthly

Advanced

249

$2.40 / 1K results

$249 + VAT billed monthly

Results
5,000

17,500

38,000

104,000

Rate limit
5 requests / s

10 requests / s

15 requests / s

30 requests / s

Coordinate-level targeting
Parsed data
24/7 support
Dedicated Account Manager

10% off

Yearly plans discount

For all our plans by paying yearly. Contact sales to learn more.

We accept these payment methods:

Google scraping tutorials

Frequently asked questions

How does Google SERP API work?

Simply put, you first select your target website and send a request to our API containing the link (or links to several pages.) Then, our API returns the data in a structured format so you can easily analyze it. 

Of course, in reality, the process is a bit more complex than that – check out this video where one of our professionals explains how the tool works step-by-step. 

What is SERP data used for? 

One of the most common cases for SERP data is SEO monitoring – tracking the visibility and rankings of your (or your competitor’s) website. SEO specialists then analyze this data and implement strategic decisions, if necessary. Also, other businesses monitor reviews, product pricing, and hotel data that appears on Google. Feel free to test out our API with a free trial and get started easily by following our guide to retrieving Google search results.

Does Google offer an official API for collecting its data?

No, as of this moment, Google doesn’t provide a tool for retrieving its data, so businesses typically use third-party tools or build those themselves.