OWASP ZAP Stats API
The stats API from OWASP ZAP — 13 operation(s) for stats.
The stats API from OWASP ZAP — 13 operation(s) for stats.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/owasp-zap-stats-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: ZAP Stats API
description: The HTTP API for controlling and accessing ZAP.
contact:
name: ZAP User Group
url: https://groups.google.com/group/zaproxy-users
email: zaproxy-users@googlegroups.com
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
version: 2.16.1
servers:
- url: http://zap
description: The URL while proxying through ZAP.
- url: http://{address}:{port}
description: The URL of a Local Proxy of ZAP.
variables:
address:
description: The address ZAP is listening on.
default: 127.0.0.1
port:
description: The port ZAP is bound to.
default: '8080'
security:
- {}
- apiKeyHeader: []
- apiKeyQuery: []
tags:
- name: Stats
paths:
/JSON/stats/action/clearStats/:
parameters:
- name: keyPrefix
in: query
description: ''
schema:
type: string
get:
description: Clears all of the statistics
operationId: statsActionClearStats
tags:
- Stats
responses:
default:
$ref: '#/components/responses/ErrorJson'
summary: Stats action clear stats
x-summary-source: derived
/JSON/stats/action/setOptionInMemoryEnabled/:
parameters:
- name: Boolean
in: query
required: true
description: ''
schema:
type: boolean
get:
description: Sets whether in memory statistics are enabled
operationId: statsActionSetOptionInMemoryEnabled
tags:
- Stats
responses:
default:
$ref: '#/components/responses/ErrorJson'
summary: Stats action set option in memory enabled
x-summary-source: derived
/JSON/stats/action/setOptionStatsdHost/:
parameters:
- name: String
in: query
required: true
description: ''
schema:
type: string
get:
description: Sets the Statsd service hostname, supply an empty string to stop using a Statsd service
operationId: statsActionSetOptionStatsdHost
tags:
- Stats
responses:
default:
$ref: '#/components/responses/ErrorJson'
summary: Stats action set option statsd host
x-summary-source: derived
/JSON/stats/action/setOptionStatsdPort/:
parameters:
- name: Integer
in: query
required: true
description: ''
schema:
type: integer
get:
description: Sets the Statsd service port
operationId: statsActionSetOptionStatsdPort
tags:
- Stats
responses:
default:
$ref: '#/components/responses/ErrorJson'
summary: Stats action set option statsd port
x-summary-source: derived
/JSON/stats/action/setOptionStatsdPrefix/:
parameters:
- name: String
in: query
required: true
description: ''
schema:
type: string
get:
description: Sets the prefix to be applied to all stats sent to the configured Statsd service
operationId: statsActionSetOptionStatsdPrefix
tags:
- Stats
responses:
default:
$ref: '#/components/responses/ErrorJson'
summary: Stats action set option statsd prefix
x-summary-source: derived
/JSON/stats/view/allSitesStats/:
parameters:
- name: keyPrefix
in: query
description: ''
schema:
type: string
get:
description: Gets all of the site based statistics, optionally filtered by a key prefix
operationId: statsViewAllSitesStats
tags:
- Stats
responses:
default:
$ref: '#/components/responses/ErrorJson'
summary: Stats view all sites stats
x-summary-source: derived
/JSON/stats/view/optionInMemoryEnabled/:
get:
description: Returns 'true' if in memory statistics are enabled, otherwise returns 'false'
operationId: statsViewOptionInMemoryEnabled
tags:
- Stats
responses:
default:
$ref: '#/components/responses/ErrorJson'
summary: Stats view option in memory enabled
x-summary-source: derived
/JSON/stats/view/optionStatsdEnabled/:
get:
description: Returns 'true' if a Statsd server has been correctly configured, otherwise returns 'false'
operationId: statsViewOptionStatsdEnabled
tags:
- Stats
responses:
default:
$ref: '#/components/responses/ErrorJson'
summary: Stats view option statsd enabled
x-summary-source: derived
/JSON/stats/view/optionStatsdHost/:
get:
description: Gets the Statsd service hostname
operationId: statsViewOptionStatsdHost
tags:
- Stats
responses:
default:
$ref: '#/components/responses/ErrorJson'
summary: Stats view option statsd host
x-summary-source: derived
/JSON/stats/view/optionStatsdPort/:
get:
description: Gets the Statsd service port
operationId: statsViewOptionStatsdPort
tags:
- Stats
responses:
default:
$ref: '#/components/responses/ErrorJson'
summary: Stats view option statsd port
x-summary-source: derived
/JSON/stats/view/optionStatsdPrefix/:
get:
description: Gets the prefix to be applied to all stats sent to the configured Statsd service
operationId: statsViewOptionStatsdPrefix
tags:
- Stats
responses:
default:
$ref: '#/components/responses/ErrorJson'
summary: Stats view option statsd prefix
x-summary-source: derived
/JSON/stats/view/siteStats/:
parameters:
- name: site
in: query
required: true
description: ''
schema:
type: string
- name: keyPrefix
in: query
description: ''
schema:
type: string
get:
description: Gets all of the global statistics, optionally filtered by a key prefix
operationId: statsViewSiteStats
tags:
- Stats
responses:
default:
$ref: '#/components/responses/ErrorJson'
summary: Stats view site stats
x-summary-source: derived
/JSON/stats/view/stats/:
parameters:
- name: keyPrefix
in: query
description: ''
schema:
type: string
get:
description: Statistics
operationId: statsViewStats
tags:
- Stats
responses:
default:
$ref: '#/components/responses/ErrorJson'
summary: Stats view stats
x-summary-source: derived
components:
schemas:
ErrorJson:
type: object
required:
- code
- message
properties:
code:
type: string
message:
type: string
detail:
type: string
responses:
ErrorJson:
description: Error of JSON endpoints.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorJson'
securitySchemes:
apiKeyHeader:
type: apiKey
name: X-ZAP-API-Key
in: header
apiKeyQuery:
type: apiKey
name: apikey
in: query