# minia2a Distance2D

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

Computes the 2D Euclidean distance between two points given their coordinates

## Facts

- Endpoint: GET https://minia2a.uk/x402/distance2d?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/minia2a-distance2d-8529633c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RbH2oY1tcUCTI7b4mvX_n

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-distance2d-8529633c
```

Example prompt: Can you calculate the 2D Euclidean distance between point (3, 4) and point (7, 1)?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call 2D Euclidean distance computation without setting up your own math library, especially in agent workflows where lightweight geometric calculations are needed on demand.

## Known failure modes

- Missing or malformed coordinate inputs return an error
- Payment not provided results in HTTP 402 response
- Invalid query parameter types may cause computation failure
- Server unavailability returns 5xx error

## How this service works

Computes Euclidean distance between points (x1, y1) and (x2, y2) using Math.hypot 🆓 5 free trial calls per signed wallet

## Output

A numeric value representing the Euclidean (straight-line) distance between two 2D points, computed from the provided coordinate inputs.

## 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-distance2d-8529633c/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)
