Vegeta · Schema
VegetaAttack
Vegeta attack configuration defining rate, duration, target, and HTTP options for a load test run
GoHTTPLoad TestingPerformanceTesting
Properties
| Name | Type | Description |
|---|---|---|
| rate | integer | Request rate in requests per second (0 for maximum rate) |
| duration | string | Attack duration as a Go duration string (e.g. 30s, 1m, 5m30s) |
| target | object | HTTP target specification for the attack |
| timeout | string | Request timeout as a Go duration string |
| workers | integer | Number of initial workers (goroutines) sending requests |
| max-workers | integer | Maximum number of workers (goroutines) sending requests |
| connections | integer | Maximum number of idle open connections per target host |
| redirects | integer | Number of redirects to follow (-1 to not follow) |
| insecure | boolean | Disable TLS certificate verification |
| http2 | boolean | Enable HTTP/2 request sending |
| keepalive | boolean | Enable persistent connections (keep-alive) |
| chunked | boolean | Enable chunked transfer encoding for request bodies |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/vegeta/refs/heads/main/json-schema/vegeta-attack-schema.json",
"title": "VegetaAttack",
"description": "Vegeta attack configuration defining rate, duration, target, and HTTP options for a load test run",
"type": "object",
"properties": {
"rate": {
"type": "integer",
"description": "Request rate in requests per second (0 for maximum rate)",
"minimum": 0,
"example": 100
},
"duration": {
"type": "string",
"description": "Attack duration as a Go duration string (e.g. 30s, 1m, 5m30s)",
"example": "30s"
},
"target": {
"type": "object",
"description": "HTTP target specification for the attack",
"properties": {
"method": {
"type": "string",
"description": "HTTP method",
"enum": ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"],
"example": "GET"
},
"url": {
"type": "string",
"format": "uri",
"description": "Target URL",
"example": "https://api.example.com/v1/users"
},
"header": {
"type": "object",
"description": "HTTP headers as key-value pairs",
"additionalProperties": {
"type": "array",
"items": { "type": "string" }
},
"example": {
"Authorization": ["Bearer token123"],
"Content-Type": ["application/json"]
}
},
"body": {
"type": "string",
"description": "Base64-encoded request body",
"example": "eyJrZXkiOiAidmFsdWUifQ=="
}
},
"required": ["method", "url"]
},
"timeout": {
"type": "string",
"description": "Request timeout as a Go duration string",
"example": "30s"
},
"workers": {
"type": "integer",
"description": "Number of initial workers (goroutines) sending requests",
"minimum": 1,
"example": 10
},
"max-workers": {
"type": "integer",
"description": "Maximum number of workers (goroutines) sending requests",
"minimum": 1,
"example": 18446744073709551615
},
"connections": {
"type": "integer",
"description": "Maximum number of idle open connections per target host",
"minimum": 0,
"example": 10000
},
"redirects": {
"type": "integer",
"description": "Number of redirects to follow (-1 to not follow)",
"example": 10
},
"insecure": {
"type": "boolean",
"description": "Disable TLS certificate verification",
"example": false
},
"http2": {
"type": "boolean",
"description": "Enable HTTP/2 request sending",
"example": true
},
"keepalive": {
"type": "boolean",
"description": "Enable persistent connections (keep-alive)",
"example": true
},
"chunked": {
"type": "boolean",
"description": "Enable chunked transfer encoding for request bodies",
"example": false
}
},
"required": ["rate", "duration"]
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/vegeta-attack"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
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.