skillfed

zaproxy

ZAP API Client

zaproxy v0.6.0 132.1K downloads/30d#11,566 on PyPI204
Permissive license Apache-2.0 Active released

What it is and what it does

Zaproxy is a Python wrapper around the OWASP ZAP API, allowing developers to programmatically control ZAP's security scanning capabilities from Python code. It provides access to ZAP's spider, scanner, and other security testing modules through a straightforward client interface. The package depends on requests for HTTP communication and six for Python compatibility, and targets Python 3.9 and later.

Typically used in automated security testing workflows and custom security tooling where you want to integrate ZAP's vulnerability detection into your development process. The library translates Python method calls into ZAP API requests, making it easier to script complex security testing scenarios without manually constructing HTTP calls.

Use it for:

  • Integrate automated web application security scanning into CI/CD pipelines to catch vulnerabilities before deployment.
  • Build custom security testing workflows that combine ZAP scanning with application-specific logic or reporting.
  • Automate penetration testing of multiple endpoints or applications by scripting ZAP operations programmatically.
  • Generate security scan reports and metrics by querying ZAP results through the API client.
  • Orchestrate complex security testing scenarios that require coordinating multiple ZAP modules in sequence.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Python client library for the OWASP ZAP security scanner API, enabling programmatic access to automated web application security testing and vulnerability scanning.

Yes. The package is actively maintained, has low install friction, carries a permissive Apache-2.0 license, and provides a straightforward Python interface to a mature security testing platform. Install it if you need to automate ZAP scanning in your development or testing workflow.

Install

zaproxy on PyPI

pip

pip install zaproxy

uv

uv add zaproxy

poetry

poetry add zaproxy

Installing zaproxy

Before you install

Low friction installation with only two lightweight runtime dependencies (requests and six). Active maintenance with a recent release and ongoing repository activity.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you include the license notice.

Quickstart

pip install zaproxy

from zaproxy import ZAPv2

zap = ZAPv2(proxies={'http': 'http://localhost', 'https': 'http://localhost'})
results = zap.spider.scan(url='http://example.com')

Requires a running ZAP instance accessible via the configured proxy address.

Verify before relying

  • Whether the package requires a running ZAP instance or if it can operate standalone
  • What minimum version of the ZAP application is required for API compatibility
  • Whether all ZAP API endpoints are covered or if there are known gaps in the implementation
  • Default host and port configuration for connecting to a ZAP instance

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (<4.0,>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 2 — requests, six
Maintenance actively maintained — 63 days since the last release
Last repo commit
First released
Downloads 132,067/month — #11,566 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: zaproxy-0.6.0-py3-none-any.whl

Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Information TechnologyLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.9Topic :: SecurityTopic :: Software Development :: Libraries :: Python Modules

Tags

zap api clientweb application security testingowasp zap pythonautomated vulnerability scanningsecurity scanner integrationpenetration testing automationapi-driven security scanning
security-testingapi-clientvulnerability-scanning

More Python Modules packages