# minia2a x402 Quick Sort

> minia2a x402 Quick Sort is a paid API for AI agents from minia2a.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-16).

Sorts an array of elements using the quicksort algorithm, accessible as a paid API endpoint via the x402 micropayment protocol.

## Facts

- Endpoint: GET https://minia2a.uk/x402/quickSort?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/minia2a-x402-quick-sort-48a9b5c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2o0rlSqfXGDHaNiuUwcHJ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability minia2a-x402-quick-sort-48a9b5c6
```

Example prompt: Sort this list of numbers for me using quicksort: [34, 7, 23, 1, 56, 12] — I need the result back in order.

## When to prefer this

Choose this endpoint when you need a quick, on-demand quicksort computation without implementing the algorithm yourself, and you are already operating within the x402 micropayment ecosystem. It is suitable for small to medium data sets where a per-call cost of $0.01 USDC is acceptable and you want a simple REST-based sorting service.

## Known failure modes

- Missing required 'input' parameter returns a validation error
- Malformed query parameters result in a 400 bad request
- Payment not provided or invalid causes a 402 Payment Required response before processing
- Empty array input may return an empty result or error
- Non-comparable mixed types in the array may cause sorting failure

## How this service works

Quick Sort

## Output

Returns a sorted version of the input array in ascending order, computed using the quicksort algorithm. The response includes the ordered output data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "method": {
     "type": "string"
    },
    "bodyType": {
     "type": "string"
    },
    "queryParams": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 },
 "answerAt": "result"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/minia2a-x402-quick-sort-48a9b5c6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from minia2a.uk](https://www.zero.xyz/host/minia2a.uk/llms.txt)
