google-cloud-webrisk
Google Cloud Webrisk API client library
What it is and what it does
google-cloud-webrisk is the official Python client for Google Cloud's Web Risk API, a security service that maintains constantly updated lists of unsafe URLs. It wraps the underlying gRPC and REST interfaces to provide a Pythonic way to query whether a given URL is known to be malicious, phishing, or otherwise unsafe.
The library depends on google-api-core, google-auth, grpcio, proto-plus, and protobuf to handle authentication, transport, and protocol buffer serialization. It is designed for production use (Development Status 5) and actively maintained by Google. Setup requires a Google Cloud project with billing enabled and the Web Risk API activated; once configured, the client handles authentication and communicates with Google's service to evaluate URLs in real time.
Use it for:
- Check user-submitted URLs before allowing them in your application or redirecting to them.
- Scan links in user-generated content (comments, posts, messages) for malware or phishing threats.
- Build security dashboards that report on URL safety across your organization's web traffic.
- Integrate URL validation into email or messaging systems to warn users about unsafe links.
- Audit historical URL logs to identify which links were flagged as unsafe after the fact.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python client library for Google Cloud Web Risk, enabling applications to check URLs against Google's lists of unsafe web resources.
Yes. The library is production-stable, actively maintained, has no known vulnerabilities, and low install friction. Install it if you need to validate URLs against Google's threat lists in a Python application and have access to a Google Cloud project with Web Risk enabled.
Install
google-cloud-webrisk on PyPI
pip
pip install google-cloud-webriskuv
uv add google-cloud-webriskpoetry
poetry add google-cloud-webriskInstalling google-cloud-webrisk
Before you install
Low install friction with a pure-wheel distribution. Active maintenance with recent releases (53 days since last update). Supports current Python versions (3.10 through 3.14).
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions.
Quickstart
pip install google-cloud-webrisk
from google.cloud import webrisk_v1
client = webrisk_v1.WebRiskServiceClient()
# Check URL against Google's Web Risk lists
Requires Google Cloud project setup, billing enabled, Web Risk API enabled, and authentication credentials configured.
Verify before relying
- Specific latency or throughput characteristics for URL checking operations.
- Rate limiting or quota details for the Web Risk API calls.
- Whether the library caches results or always queries the service.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — google-api-core, google-auth, grpcio, proto-plus, protobuf |
| Maintenance | actively maintained — 53 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 76,221/month — #14,644 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: google_cloud_webrisk-1.22.0-py3-none-any.whl
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
google-cloud-monitoringPython client library for Google Cloud…
permissive · top 1,000 on PyPI
google-cloud-workflowsPython client library for Google Cloud…
permissive · top 1,000 on PyPI
google-cloud-dlpPython client library for Google Cloud's…
permissive · top 1,000 on PyPI
google-cloud-monitoring-dashboardsPython client library for Google Cloud…
permissive · top 15,000 on PyPI
google-cloud-bigquery-loggingPython client library for Google Cloud BigQuery…
permissive · top 15,000 on PyPI
google-cloud-appengine-loggingClient library for Google Cloud AppEngine…
permissive · top 1,000 on PyPI
google-cloud-recommenderPython client library for Google Cloud…
permissive · top 15,000 on PyPI
google-cloud-error-reportingClient library for Google Cloud Error Reporting…
permissive · top 5,000 on PyPI
google-cloud-resource-managerProvides a Python client for Google Cloud…
permissive · top 1,000 on PyPI
google-cloud-api-keysManages API keys for Google Cloud projects,…
permissive · top 15,000 on PyPI