Skip to main content

Google SERP API

Scrapeit Cloud - Web Scraping API with Proxy Rotation. Get valuable data at scale in HTML format from any website without need for a proxy.

Interface to call Google SERP API easily from Python.

Install

npm i @scrapeit-cloud/google-serp-api

Usage

Signup to Scrapeit Cloud to get your API key and some free credits to get started.

>>> from google_serp_api import ScrapeitCloudClient
>>>
>>> client = ScrapeitCloudClient(api_key='INSERT_YOUR_API_KEY_HERE')
>>>
>>> response = client.scrape(
    params={
        "keyword": "pizza",
        "country": "US",
        "num_results": 100,
        "domain": "com"
    }
)
>>>
>>> response.text
'{"status":"ok","scrapingResult":{"content":"<!DOCTYPE html><html><head>\\n    <title>Example Domain</title>\\n\\n    <meta charset=\\"utf-8\\">\\n    <meta http-equiv=\\"Content-type\\" content=\\"text/html; charset=utf-8\\">\\n    <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1\\">\\n    <style type=\\"text/css\\">\\n    body {\\n        background-color: #f0f0f2;\\n        margin: 0;\\n        padding: 0;\\n        font-family: -apple-system, system-ui, BlinkMacSystemFont, \\"Segoe UI\\", \\"Open Sans\\", \\"Helvetica Neue\\", Helvetica, Arial, sans-serif;\\n        \\n    }\\n    div {\\n        width: 600px;\\n        margin: 5em auto;\\n        padding: 2em;\\n        background-color: #fdfdff;\\n        border-radius: 0.5em;\\n        box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02);\\n    }\\n    a:link, a:visited {\\n        color: #38488f;\\n        text-decoration: none;\\n    }\\n    @media (max-width: 700px) {\\n        div {\\n            margin: 0 auto;\\n            width: auto;\\n        }\\n    }\\n    </style>    \\n</head>\\n\\n<body>\\n<div>\\n    <h1>Example Domain</h1>\\n    <p>This domain is for use in illustrative examples in documents. You may use this\\n    domain in literature without prior coordination or asking for permission.</p>\\n    <p><a href=\\"https://www.iana.org/domains/example\\">More information...</a></p>\\n</div>\\n\\n\\n</body></html>","headers":{"accept-ranges":"bytes","age":"477265","cache-control":"max-age=604800","content-encoding":"gzip","content-length":"648","content-type":"text/html; charset=UTF-8","date":"Thu, 11 Aug 2022 11:56:20 GMT","etag":"\\"3147526947\\"","expires":"Thu, 18 Aug 2022 11:56:20 GMT","last-modified":"Thu, 17 Oct 2019 07:18:26 GMT","server":"ECS (nyb/1D17)","vary":"Accept-Encoding","x-cache":"HIT"},"cookies":[]}}'
>>>

You can find all the supported parameters on Scrapeit Cloud documentation.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

google-serp-api-1.0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

google_serp_api-1.0.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file google-serp-api-1.0.1.tar.gz.

File metadata

  • Download URL: google-serp-api-1.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.9

File hashes

Hashes for google-serp-api-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9b29ea36a772a218cd5a2a57cb6d7ad70d3e9c1cbf2f987ecd960515e162727d
MD5 23e7a10e21f5f00d5c34b72247ce876d
BLAKE2b-256 c064362091b5bc96a09fcacae26fd7c5c7518a2ccc626ccbc0b2194a0374d027

See more details on using hashes here.

File details

Details for the file google_serp_api-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for google_serp_api-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 99ca2f021cafe498ddb78277046206260c903910a32000f092b3a7efccd3e1dd
MD5 81f1ce17d8a37d2fd51ba37b8826f3b3
BLAKE2b-256 c39765494d831c3880f56f171e48fe1ef28e2de53708fbb2efcfa4a7a8c5c6bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page