Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -56,25 +56,23 @@ dataset_info:
|
|
| 56 |
|
| 57 |
# APIEval-20: A Benchmark for Black-Box API Test Suite Generation
|
| 58 |
|
| 59 |
-
**A task benchmark for evaluating AI agents on real-world API testing.**
|
| 60 |
-
|
| 61 |
---
|
| 62 |
|
| 63 |
## Motivation
|
| 64 |
|
| 65 |
Testing APIs thoroughly is one of the most critical, yet consistently underserved, activities in software engineering. Despite a rich ecosystem of API testing tools — Postman, RestAssured, Schemathesis, Dredd, and others — we found ourselves asking a deceptively simple question:
|
| 66 |
|
| 67 |
-
*Given only the schema and an example payload of an API request — no source code, no documentation, no prior knowledge — how well can an AI agent generate a test suite that actually finds bugs?*
|
| 68 |
|
| 69 |
We searched for an existing benchmark that captured this black-box scenario and came up empty. Every evaluation we found either required access to the implementation, relied on rich API documentation, or measured properties like schema compliance rather than actual bug-finding capability. The practitioner reality is different: teams frequently receive API payloads with little context and need to construct meaningful tests quickly.
|
| 70 |
|
| 71 |
That gap is the reason **APIEval-20** exists.
|
| 72 |
|
| 73 |
-
|
| 74 |
|
| 75 |
---
|
| 76 |
|
| 77 |
-
## Benchmark Overview
|
| 78 |
|
| 79 |
APIEval-20 consists of 20 carefully designed API scenarios drawn from real-world application domains. Each scenario presents the agent with an API request schema and a sample payload, then challenges it to produce a test suite that exposes bugs hidden within a live reference implementation.
|
| 80 |
|
|
@@ -82,68 +80,63 @@ APIEval-20 consists of 20 carefully designed API scenarios drawn from real-world
|
|
| 82 |
|
| 83 |
The 20 scenarios span the following application domains, chosen to reflect a broad range of validation patterns, business logic complexity, and security sensitivity:
|
| 84 |
|
| 85 |
-
|
| 86 |
-
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
|
|
|
|
|
|
| 92 |
|
| 93 |
---
|
| 94 |
|
| 95 |
-
##
|
| 96 |
|
| 97 |
-
Each scenario contains between 3 and 8 planted bugs. Rather than categorising bugs by severity, APIEval-20 classifies them by **complexity** — reflecting how much reasoning is required to discover them.
|
| 98 |
|
| 99 |
-
|
| 100 |
|
| 101 |
-
|
| 102 |
-
- What happens when a required field is missing entirely?
|
| 103 |
-
- What happens when a field is present but empty (`""`, `null`, `[]`)?
|
| 104 |
-
- What happens when a field receives the wrong data type?
|
| 105 |
|
| 106 |
-
|
| 107 |
-
- What happens when a numeric field receives a value outside its valid range (e.g. a negative quantity, a year far in the future)?
|
| 108 |
-
- What happens when a string field violates a format constraint (e.g. a malformed email, an invalid currency code, a date in the wrong format)?
|
| 109 |
-
- What happens when an enum field receives an undocumented or boundary value?
|
| 110 |
|
| 111 |
-
|
| 112 |
-
- What happens when two fields are mutually exclusive but both are provided?
|
| 113 |
-
- What happens when a discount is applied to an order that doesn't meet the eligibility criteria defined across several fields?
|
| 114 |
-
- What happens when a field's validity depends on the value of another field (e.g. a shipping method that is only valid for certain destination countries)?
|
| 115 |
|
| 116 |
-
|
| 117 |
|
| 118 |
-
|
| 119 |
|
| 120 |
-
|
|
|
|
|
|
|
| 121 |
|
| 122 |
-
|
| 123 |
|
| 124 |
-
|
| 125 |
-
2. **A sample payload** — a concrete example of a valid request.
|
| 126 |
|
| 127 |
-
Nothing else
|
| 128 |
|
| 129 |
-
**
|
|
|
|
| 130 |
|
| 131 |
-
``
|
| 132 |
-
POST /api/v1/orders
|
| 133 |
-
```
|
| 134 |
|
| 135 |
-
|
| 136 |
```json
|
| 137 |
{
|
| 138 |
"user_id": { "type": "string", "required": true },
|
| 139 |
-
"items": { "type": "array", "required": true,
|
| 140 |
-
|
|
|
|
| 141 |
"currency": { "type": "string", "required": true, "description": "ISO 4217 currency code" },
|
| 142 |
-
"shipping": { "type": "object", "required": true,
|
|
|
|
| 143 |
}
|
| 144 |
```
|
| 145 |
|
| 146 |
-
|
| 147 |
```json
|
| 148 |
{
|
| 149 |
"user_id": "usr_4821",
|
|
@@ -153,24 +146,17 @@ POST /api/v1/orders
|
|
| 153 |
"coupon_code": "SAVE10",
|
| 154 |
"currency": "USD",
|
| 155 |
"shipping": {
|
| 156 |
-
"address": "123 Main St, Springfield
|
| 157 |
"method": "standard"
|
| 158 |
}
|
| 159 |
}
|
| 160 |
```
|
| 161 |
|
| 162 |
-
---
|
| 163 |
-
|
| 164 |
### What the Agent Produces
|
| 165 |
|
| 166 |
-
The agent must output a **test suite** — a list of test cases, where each test case contains
|
| 167 |
|
| 168 |
-
|
| 169 |
-
- The complete **request payload** to be submitted, as a valid JSON object.
|
| 170 |
-
|
| 171 |
-
No expected outcome is required. The evaluation is performed by running each test case against the live reference implementation and observing what actually happens.
|
| 172 |
-
|
| 173 |
-
**Example test case:**
|
| 174 |
```json
|
| 175 |
{
|
| 176 |
"test_name": "Order with zero quantity item",
|
|
@@ -178,54 +164,88 @@ No expected outcome is required. The evaluation is performed by running each tes
|
|
| 178 |
"user_id": "usr_4821",
|
| 179 |
"items": [{ "product_id": "prod_991", "quantity": 0, "unit_price": 29.99 }],
|
| 180 |
"currency": "USD",
|
| 181 |
-
"shipping": { "address": "123 Main St, Springfield
|
| 182 |
}
|
| 183 |
}
|
| 184 |
```
|
| 185 |
|
| 186 |
---
|
| 187 |
|
| 188 |
-
## Evaluation Methodology
|
| 189 |
|
| 190 |
All 20 reference API implementations are deployed and running. Evaluation is fully automated: each test case in the agent's output is executed against the live API, and the responses are analysed to determine which planted bugs were triggered.
|
| 191 |
|
| 192 |
-
A bug is considered **detected** if at least one test case in the suite produces a response that deviates from the correct behaviour in a way that corresponds to the planted bug — for example, a 200 OK where a 400 should have been returned, or a silently incorrect computed value in the response body.
|
| 193 |
|
| 194 |
---
|
| 195 |
|
| 196 |
-
## Scoring
|
|
|
|
|
|
|
| 197 |
|
| 198 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 199 |
|
| 200 |
-
###
|
| 201 |
|
| 202 |
-
Measures how many of the planted bugs were successfully triggered.
|
| 203 |
|
| 204 |
```
|
| 205 |
Bug Detection Rate = bugs_found / total_bugs
|
| 206 |
```
|
| 207 |
|
| 208 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 209 |
|
| 210 |
-
|
| 211 |
|
| 212 |
-
|
|
|
|
|
|
|
| 213 |
|
| 214 |
-
|
| 215 |
-
- **Edge case coverage** — whether the suite probes boundaries (empty values, nulls, type mismatches, out-of-range values) rather than only valid inputs.
|
| 216 |
-
- **Input variation** — whether the suite explores diverse combinations rather than repeating near-identical payloads with minor changes.
|
| 217 |
|
| 218 |
-
###
|
| 219 |
|
| 220 |
-
Penalises unnecessarily large test suites.
|
| 221 |
|
| 222 |
```
|
| 223 |
-
Efficiency = bugs_found / number_of_tests
|
| 224 |
```
|
| 225 |
|
| 226 |
-
|
| 227 |
|
| 228 |
-
### Final Score
|
| 229 |
|
| 230 |
```
|
| 231 |
Final Score =
|
|
@@ -234,58 +254,64 @@ Final Score =
|
|
| 234 |
+ 0.1 × Efficiency Score
|
| 235 |
```
|
| 236 |
|
| 237 |
-
The final benchmark score for an agent is the average Final Score across all 20 scenarios.
|
| 238 |
|
| 239 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 240 |
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
APIEval-20 evaluates a capability that is largely unmeasured today:
|
| 244 |
|
| 245 |
-
|
| 246 |
-
- Identifying edge cases without being told where to look
|
| 247 |
-
- Designing effective, targeted test strategies
|
| 248 |
-
- Uncovering hidden bugs across a range of complexity levels
|
| 249 |
|
| 250 |
-
|
| 251 |
|
| 252 |
-
|
|
|
|
|
|
|
|
|
|
| 253 |
|
| 254 |
-
Most existing benchmarks evaluate whether a model can produce syntactically correct output
|
| 255 |
|
| 256 |
---
|
| 257 |
|
| 258 |
-
##
|
| 259 |
|
| 260 |
-
The APIEval-20 dataset is hosted on Hugging Face
|
| 261 |
|
| 262 |
-
|
| 263 |
-
- `reference_impls/` — 20 live reference server implementations. These are not publicly released to prevent contamination; evaluation is run through the hosted harness.
|
| 264 |
-
- `eval/` — the evaluation harness that accepts a model-generated test suite, runs it against the reference implementation, and returns the three score components.
|
| 265 |
-
- `leaderboard.json` — the current leaderboard snapshot, updated weekly.
|
| 266 |
|
| 267 |
-
|
| 268 |
|
| 269 |
---
|
| 270 |
|
| 271 |
-
##
|
| 272 |
|
| 273 |
-
|
| 274 |
|
| 275 |
-
|
| 276 |
|
| 277 |
-
-
|
|
|
|
|
|
|
| 278 |
|
| 279 |
-
##
|
| 280 |
|
| 281 |
-
|
| 282 |
|
| 283 |
-
|
| 284 |
-
- **APIEval-Tool:** a companion benchmark evaluating existing automated API testing tools (Schemathesis, Dredd, RESTler, and others) on the same scenario set, enabling direct comparison between AI agent-generated and tool-generated test suites.
|
| 285 |
-
- **APIEval-50:** a larger scenario set covering 50 APIs with an expanded bug taxonomy, including concurrency bugs, state-dependent failures, and multi-step workflow errors.
|
| 286 |
|
| 287 |
-
|
| 288 |
|
| 289 |
---
|
| 290 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 291 |
*APIEval-20 — Version 1.0 — 2026*
|
|
|
|
| 56 |
|
| 57 |
# APIEval-20: A Benchmark for Black-Box API Test Suite Generation
|
| 58 |
|
|
|
|
|
|
|
| 59 |
---
|
| 60 |
|
| 61 |
## Motivation
|
| 62 |
|
| 63 |
Testing APIs thoroughly is one of the most critical, yet consistently underserved, activities in software engineering. Despite a rich ecosystem of API testing tools — Postman, RestAssured, Schemathesis, Dredd, and others — we found ourselves asking a deceptively simple question:
|
| 64 |
|
| 65 |
+
**Given only the schema and an example payload of an API request — no source code, no documentation, no prior knowledge — how well can an AI agent generate a test suite that actually finds bugs?**
|
| 66 |
|
| 67 |
We searched for an existing benchmark that captured this black-box scenario and came up empty. Every evaluation we found either required access to the implementation, relied on rich API documentation, or measured properties like schema compliance rather than actual bug-finding capability. The practitioner reality is different: teams frequently receive API payloads with little context and need to construct meaningful tests quickly.
|
| 68 |
|
| 69 |
That gap is the reason **APIEval-20** exists.
|
| 70 |
|
| 71 |
+
APIEval-20 is not a model benchmark. It is a **task benchmark for AI agents**. It evaluates end-to-end agent behavior — the ability to reason about an API surface, design targeted tests, and uncover real bugs — not just the quality of generated text.
|
| 72 |
|
| 73 |
---
|
| 74 |
|
| 75 |
+
## 1. Benchmark Overview
|
| 76 |
|
| 77 |
APIEval-20 consists of 20 carefully designed API scenarios drawn from real-world application domains. Each scenario presents the agent with an API request schema and a sample payload, then challenges it to produce a test suite that exposes bugs hidden within a live reference implementation.
|
| 78 |
|
|
|
|
| 80 |
|
| 81 |
The 20 scenarios span the following application domains, chosen to reflect a broad range of validation patterns, business logic complexity, and security sensitivity:
|
| 82 |
|
| 83 |
+
| Domain | Scenarios |
|
| 84 |
+
|---|---|
|
| 85 |
+
| **E-commerce** | Order placement, coupon redemption, inventory adjustment |
|
| 86 |
+
| **Payments** | Transaction creation, refund processing, currency conversion |
|
| 87 |
+
| **Authentication** | Login, token refresh, password reset, session management |
|
| 88 |
+
| **User Management** | Account creation, profile update, role assignment |
|
| 89 |
+
| **Scheduling** | Appointment booking, availability queries, recurring events |
|
| 90 |
+
| **Notifications** | Email dispatch, push configuration, preference management |
|
| 91 |
+
| **Search & Filtering** | Query construction, pagination, sort and rank |
|
| 92 |
|
| 93 |
---
|
| 94 |
|
| 95 |
+
## 2. Bug Spectrum
|
| 96 |
|
| 97 |
+
Each scenario contains between 3 and 8 planted bugs. Rather than categorising bugs by severity, APIEval-20 classifies them by **complexity** — reflecting how much reasoning is required to discover them. Bugs range along a continuum from simple to complex.
|
| 98 |
|
| 99 |
+
### Simple Bugs
|
| 100 |
|
| 101 |
+
Require no semantic understanding of the domain. They test whether the API handles basic structural issues correctly: missing required fields, empty values (`""`, `null`, `[]`), and wrong data types.
|
|
|
|
|
|
|
|
|
|
| 102 |
|
| 103 |
+
### Moderate Bugs
|
|
|
|
|
|
|
|
|
|
| 104 |
|
| 105 |
+
Require understanding the meaning of individual fields and their constraints: numeric values outside valid range, strings violating format constraints (malformed email, invalid currency code, wrong date format), and enum fields receiving boundary or undocumented values.
|
|
|
|
|
|
|
|
|
|
| 106 |
|
| 107 |
+
### Complex Bugs
|
| 108 |
|
| 109 |
+
Require understanding the *relationship* between multiple fields, or the broader semantics of the operation: mutually exclusive fields both provided, discounts applied to ineligible orders, fields whose validity depends on the value of another field.
|
| 110 |
|
| 111 |
+
**A strong test suite should span the full complexity spectrum — simple structural checks alone will not surface the bugs that matter most in production.**
|
| 112 |
+
|
| 113 |
+
---
|
| 114 |
|
| 115 |
+
## 3. Agent I/O
|
| 116 |
|
| 117 |
+
### What the Agent Receives
|
|
|
|
| 118 |
|
| 119 |
+
For each scenario, the agent is given exactly two inputs. Nothing else — no response schema, no implementation details, no error messages, no changelog. This deliberate constraint reflects the black-box testing reality and prevents agents from trivially exploiting documentation.
|
| 120 |
|
| 121 |
+
1. **JSON Schema** — The full request schema: field names, types, required/optional status, and any documented constraints.
|
| 122 |
+
2. **Sample Payload** — A concrete example of a valid request, showing realistic field values.
|
| 123 |
|
| 124 |
+
**Example Input — `POST /api/v1/orders`**
|
|
|
|
|
|
|
| 125 |
|
| 126 |
+
Schema:
|
| 127 |
```json
|
| 128 |
{
|
| 129 |
"user_id": { "type": "string", "required": true },
|
| 130 |
+
"items": { "type": "array", "required": true,
|
| 131 |
+
"items": { "product_id": "string", "quantity": "integer", "unit_price": "number" } },
|
| 132 |
+
"coupon_code": { "type": "string", "required": false },
|
| 133 |
"currency": { "type": "string", "required": true, "description": "ISO 4217 currency code" },
|
| 134 |
+
"shipping": { "type": "object", "required": true,
|
| 135 |
+
"properties": { "address": "string", "method": "string" } }
|
| 136 |
}
|
| 137 |
```
|
| 138 |
|
| 139 |
+
Sample Payload:
|
| 140 |
```json
|
| 141 |
{
|
| 142 |
"user_id": "usr_4821",
|
|
|
|
| 146 |
"coupon_code": "SAVE10",
|
| 147 |
"currency": "USD",
|
| 148 |
"shipping": {
|
| 149 |
+
"address": "123 Main St, Springfield",
|
| 150 |
"method": "standard"
|
| 151 |
}
|
| 152 |
}
|
| 153 |
```
|
| 154 |
|
|
|
|
|
|
|
| 155 |
### What the Agent Produces
|
| 156 |
|
| 157 |
+
The agent must output a **test suite** — a list of test cases, where each test case contains a short human-readable test name and the complete request payload as a valid JSON object. No expected outcome is required. Evaluation is performed by running each test case against the live reference implementation and observing what actually happens.
|
| 158 |
|
| 159 |
+
**Example Test Case Output:**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
```json
|
| 161 |
{
|
| 162 |
"test_name": "Order with zero quantity item",
|
|
|
|
| 164 |
"user_id": "usr_4821",
|
| 165 |
"items": [{ "product_id": "prod_991", "quantity": 0, "unit_price": 29.99 }],
|
| 166 |
"currency": "USD",
|
| 167 |
+
"shipping": { "address": "123 Main St, Springfield", "method": "standard" }
|
| 168 |
}
|
| 169 |
}
|
| 170 |
```
|
| 171 |
|
| 172 |
---
|
| 173 |
|
| 174 |
+
## 4. Evaluation Methodology
|
| 175 |
|
| 176 |
All 20 reference API implementations are deployed and running. Evaluation is fully automated: each test case in the agent's output is executed against the live API, and the responses are analysed to determine which planted bugs were triggered.
|
| 177 |
|
| 178 |
+
A bug is considered **detected** if at least one test case in the suite produces a response that deviates from the correct behaviour in a way that corresponds to the planted bug — for example, a `200 OK` where a `400` should have been returned, or a silently incorrect computed value in the response body.
|
| 179 |
|
| 180 |
---
|
| 181 |
|
| 182 |
+
## 5. Scoring
|
| 183 |
+
|
| 184 |
+
The final score combines three factors, weighted to emphasise real-world value: finding bugs matters most, systematic coverage rewards thoroughness, and efficiency discourages noise.
|
| 185 |
|
| 186 |
+
| Component | Weight | Description |
|
| 187 |
+
|---|---|---|
|
| 188 |
+
| Bug Detection Score | 70% | Primary metric |
|
| 189 |
+
| Coverage Score | 20% | API surface exploration |
|
| 190 |
+
| Efficiency Score | 10% | Signal-to-noise ratio |
|
| 191 |
|
| 192 |
+
### Bug Detection Score — Primary (70%)
|
| 193 |
|
| 194 |
+
Measures how many of the planted bugs were successfully triggered. This is the core metric of the benchmark — an agent that finds more bugs scores higher, regardless of how it gets there.
|
| 195 |
|
| 196 |
```
|
| 197 |
Bug Detection Rate = bugs_found / total_bugs
|
| 198 |
```
|
| 199 |
|
| 200 |
+
**Range: 0 – 1.** A score of 1 means every planted bug was triggered; 0 means none were. Scores below 0.3 indicate the agent is missing most bugs; above 0.7 is considered strong performance on a scenario.
|
| 201 |
+
|
| 202 |
+
### Coverage Score — 20%
|
| 203 |
+
|
| 204 |
+
Measures how well the test suite explores the API surface across three independently computed dimensions. Each dimension produces a value between 0 and 1; the three are averaged to produce the final Coverage Score.
|
| 205 |
+
|
| 206 |
+
```
|
| 207 |
+
Coverage Score = (param_coverage + edge_coverage + variation_score) / 3
|
| 208 |
+
```
|
| 209 |
+
|
| 210 |
+
**Range: 0 – 1.** All three sub-dimensions are individually bounded [0, 1], so the average is too. A score of 1 requires full field coverage, edge tests on every field, and completely non-overlapping payloads — a high bar that rewards comprehensive, systematic suites.
|
| 211 |
+
|
| 212 |
+
#### Parameter Coverage
|
| 213 |
+
|
| 214 |
+
What fraction of schema fields are the *focus* of at least one test — i.e., differ from the valid sample payload in that test case (modified, omitted, or set to an alternate value).
|
| 215 |
+
|
| 216 |
+
```
|
| 217 |
+
param_coverage = fields_exercised / total_schema_fields
|
| 218 |
+
```
|
| 219 |
+
|
| 220 |
+
#### Edge Case Coverage
|
| 221 |
+
|
| 222 |
+
What fraction of schema fields have at least one test that targets them with a recognised edge value. Edge values are: field omitted entirely, `null`, `""`, `[]`, wrong type, zero or negative number, and out-of-range value.
|
| 223 |
+
|
| 224 |
+
```
|
| 225 |
+
edge_coverage = fields_with_edge_test / total_schema_fields
|
| 226 |
+
```
|
| 227 |
+
|
| 228 |
+
#### Input Variation
|
| 229 |
|
| 230 |
+
Penalises suites that repeat near-identical payloads. Computed as one minus the average pairwise Jaccard similarity across all test payload pairs, where each payload is treated as a set of `(field, value)` pairs.
|
| 231 |
|
| 232 |
+
```
|
| 233 |
+
variation_score = 1 − mean(Jaccard(tᵢ, tⱼ)) ∀ i ≠ j
|
| 234 |
+
```
|
| 235 |
|
| 236 |
+
A score of 1 means every test is completely distinct; a score approaching 0 means the suite is largely repetitive.
|
|
|
|
|
|
|
| 237 |
|
| 238 |
+
### Efficiency Score — 10%
|
| 239 |
|
| 240 |
+
Penalises unnecessarily large test suites. A suite that finds 6 bugs with 10 tests is more valuable than one that finds the same 6 bugs with 80 tests.
|
| 241 |
|
| 242 |
```
|
| 243 |
+
Efficiency = min(1, bugs_found / number_of_tests)
|
| 244 |
```
|
| 245 |
|
| 246 |
+
**Range: 0 – 1.** The raw ratio is capped at 1 to keep the metric bounded. A score of 1 means the suite finds at least one bug per test — the theoretical ideal. The score degrades linearly as redundant tests accumulate: a suite with 5× more tests than bugs found scores 0.2. An agent that finds no bugs scores 0 regardless of suite size.
|
| 247 |
|
| 248 |
+
### Final Score Formula
|
| 249 |
|
| 250 |
```
|
| 251 |
Final Score =
|
|
|
|
| 254 |
+ 0.1 × Efficiency Score
|
| 255 |
```
|
| 256 |
|
| 257 |
+
The final benchmark score for an agent is the **average Final Score across all 20 scenarios**. Since all three components are bounded [0, 1], the Final Score is also bounded [0, 1].
|
| 258 |
|
| 259 |
+
| Score Range | Interpretation |
|
| 260 |
+
|---|---|
|
| 261 |
+
| **0.0 – 0.3** · Weak | The agent finds few bugs, covers limited fields, and may produce repetitive or low-signal tests. Likely relies on trivial structural mutations only. |
|
| 262 |
+
| **0.3 – 0.5** · Developing | The agent demonstrates awareness of edge cases but misses moderate and complex bugs. Coverage is partial and efficiency is inconsistent. |
|
| 263 |
+
| **0.5 – 0.7** · Proficient | The agent finds most simple and moderate bugs with reasonable coverage. Complex cross-field bugs remain elusive. Efficiency is generally good. |
|
| 264 |
+
| **0.7 – 1.0** · Strong | The agent surfaces bugs across all complexity tiers, achieves broad field and edge case coverage, and keeps the test suite lean. Comparable to a thorough human QA engineer. |
|
| 265 |
|
| 266 |
+
---
|
|
|
|
|
|
|
| 267 |
|
| 268 |
+
## 6. Why This Benchmark Matters
|
|
|
|
|
|
|
|
|
|
| 269 |
|
| 270 |
+
APIEval-20 evaluates a capability that is largely unmeasured today. It goes beyond simple code generation or factual reasoning — it measures something more practically valuable.
|
| 271 |
|
| 272 |
+
- **Limited-information reasoning** — Understanding API behaviour from schema and payload alone, without implementation access.
|
| 273 |
+
- **Unsupervised edge case discovery** — Identifying edge cases without being told where to look or what to test.
|
| 274 |
+
- **Targeted test strategy design** — Designing effective, minimal test suites that maximise bug-finding per test.
|
| 275 |
+
- **Multi-tier bug uncovering** — Finding bugs across simple, moderate, and complex complexity levels.
|
| 276 |
|
| 277 |
+
**How well can an AI agent think like a QA engineer?** Most existing benchmarks evaluate whether a model can produce syntactically correct output. APIEval-20 evaluates whether an agent can *do useful work* — work that directly maps to a real engineering task with measurable outcomes.
|
| 278 |
|
| 279 |
---
|
| 280 |
|
| 281 |
+
## 7. Explore on Hugging Face
|
| 282 |
|
| 283 |
+
The complete APIEval-20 dataset — all 20 scenarios, request schemas, sample payloads, domain metadata, and the evaluation harness — is hosted on Hugging Face. All scenarios are versioned; subsequent releases carry a version suffix (e.g. `APIEval-20-v2`) to enable longitudinal comparison.
|
| 284 |
|
| 285 |
+
Head over to the dataset page to browse the scenarios, run evaluations through the hosted harness, and see how various AI agents stack up across all 20 scenarios.
|
|
|
|
|
|
|
|
|
|
| 286 |
|
| 287 |
+
**[Explore APIEval-20 on Hugging Face →](https://huggingface.co/datasets/kusho-ai/api-eval-20)**
|
| 288 |
|
| 289 |
---
|
| 290 |
|
| 291 |
+
## 8. What Comes Next
|
| 292 |
|
| 293 |
+
APIEval-20 is a **functional testing benchmark**. Every scenario, every planted bug, and every scoring dimension is scoped to functional correctness — how well an agent validates that an API behaves as intended given valid and invalid inputs. Security vulnerabilities, authentication bypasses, injection attacks, and authorization failures are explicitly out of scope here.
|
| 294 |
|
| 295 |
+
This is the first entry in what we plan to be a growing family of API testing benchmarks, each targeting a distinct testing discipline. Coming soon:
|
| 296 |
|
| 297 |
+
### APIEval-Security
|
| 298 |
+
|
| 299 |
+
A dedicated benchmark for API security testing. Built on the same black-box setup, it evaluates whether an agent can identify authentication weaknesses, authorization flaws, injection vulnerabilities, and other OWASP API Security Top 10 categories from schema and payload alone.
|
| 300 |
|
| 301 |
+
### Agent Benchmark: Coding & Testing Agents
|
| 302 |
|
| 303 |
+
A comprehensive head-to-head comparison of all major coding and testing agents — including Cursor, GitHub Copilot, Devin, and KushoAI — evaluated on the APIEval-20 scenario set. The goal is to give teams a clear, data-driven picture of where each agent stands in the API testing space specifically, not just general coding tasks.
|
| 304 |
|
| 305 |
+
### APIEval-50
|
|
|
|
|
|
|
| 306 |
|
| 307 |
+
A larger scenario set covering 50 APIs with an expanded bug taxonomy, including concurrency bugs, state-dependent failures, and multi-step workflow errors.
|
| 308 |
|
| 309 |
---
|
| 310 |
|
| 311 |
+
*APIEval-20 is an open benchmark created by KushoAI to evaluate AI agent capability on black-box API test suite generation. All reference implementations are hosted and maintained by KushoAI. Evaluation is run through the hosted harness to prevent contamination.*
|
| 312 |
+
|
| 313 |
+
*The benchmark is versioned. Scores reported against APIEval-20 v1.0 are not directly comparable to future versions without explicit cross-version normalisation.*
|
| 314 |
+
|
| 315 |
+
*For questions, contributions, or issue reports, reach out at [contact@kusho.ai](mailto:contact@kusho.ai) or open an issue on Hugging Face.*
|
| 316 |
+
|
| 317 |
*APIEval-20 — Version 1.0 — 2026*
|