# minia2a Binary Search API

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

Performs a binary search operation on an input dataset via a pay-per-call x402 API endpoint

## Facts

- Endpoint: GET https://minia2a.uk/x402/binarySearch?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/minia2a-binary-search-api-57d6d788
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_njH-dWNQYagWBGYS3uS7s

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-binary-search-api-57d6d788
```

Example prompt: Run a binary search for me on a sorted integer array — use a GET request with query parameters specifying the target value and array bounds, and tell me the result index.

## When to prefer this

Choose this endpoint when you need a simple, pay-per-call binary search computation without managing infrastructure or API keys, especially in x402-enabled agent workflows on Base where micro-payment per call is acceptable and you want a verified, tested API rather than a self-hosted utility.

## Known failure modes

- Missing required 'input' field returns a validation error
- Unsorted input data produces incorrect or undefined results
- Invalid 'type' or 'method' enum values may cause rejection
- Payment failure via x402 protocol blocks the call
- Malformed queryParams object causes parsing errors
- Rate limits or wallet verification failures prevent access

## How this service works

Discover 1,600+ verified x402 agent APIs — crypto data, web scraping, AI inference, security, and more. 5 free trial calls per signed wallet. 5.2M+ requests served. Pay per call via x402 on Base — no subscription, no API keys. Verified — not just listed, tested.

## Output

Returns a JSON object with an 'ok' boolean indicating whether the binary search operation succeeded, along with any computed result such as the found index or position of the target element in the input.

## 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
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/minia2a-binary-search-api-57d6d788/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)
