Test Scripts · Example Payload

Test Script Performance Example

k6 performance test script validating the search API handles 100 concurrent virtual users with p95 response time under 1 second.

Load TestingPerformanceSearchk6

Test Script Performance Example is an example object payload from Test Scripts, with 13 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

idnamedescriptiontypeframeworklanguagetargetassertionstagsenvironmentcicreatedmodified

Example Payload

Raw ↑
{
  "id": "ts-perf-search-001",
  "name": "Load Test: Search API Under 100 Concurrent Users",
  "description": "k6 performance test script validating the search API handles 100 concurrent virtual users with p95 response time under 1 second.",
  "type": "performance",
  "framework": "k6",
  "language": "JavaScript",
  "target": {
    "url": "https://api.example.com",
    "method": "GET",
    "path": "/search",
    "operationId": "searchRecords"
  },
  "assertions": [
    {
      "type": "status-code",
      "description": "99% of requests return 200",
      "expected": 200
    },
    {
      "type": "response-time",
      "description": "p95 response time is under 1000ms",
      "expected": 1000
    },
    {
      "type": "value",
      "description": "Error rate below 1%",
      "expected": 0.01
    }
  ],
  "tags": ["Load Testing", "Performance", "Search", "k6"],
  "environment": "staging",
  "ci": {
    "platform": "GitHub Actions",
    "workflow": "performance-tests",
    "trigger": "schedule"
  },
  "created": "2026-05-03",
  "modified": "2026-05-03"
}

Work with this as data

Every example 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 examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example 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.
All 92 tools

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/test-script-performance-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.