# GadgetHumans Distance Calculator

> GadgetHumans Distance Calculator is a paid API for AI agents from api.gadgethumans.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-10).

Calculates the distance between two locations specified as string inputs

## Facts

- Endpoint: GET https://api.gadgethumans.com/distance?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gadgethumans-distance-calculator-a5cf42d6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NNygfS242RQQk1f332WjD

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 gadgethumans-distance-calculator-a5cf42d6
```

Example prompt: What's the distance from New York, NY to Los Angeles, CA?

## When to prefer this

Use this endpoint when you need a quick, low-cost ($0.002 per call) distance calculation between two named locations without needing to set up a full mapping SDK. It requires no API key, making it ideal for lightweight agent workflows that need simple point-to-point distance lookups without routing, turn-by-turn directions, or map rendering.

## Known failure modes

- Invalid or unrecognized location strings — ambiguous place names may return incorrect results
- Missing 'to' or 'from' parameters result in a failed request
- Very specific addresses may not resolve correctly if the geocoding layer cannot identify them
- Network timeout or service unavailability returns an error response

## How this service works

MCP server with 49 developer tools + 300+ REST APIs — agent memory, QR codes, passwords, AI text, finance, health, crypto, weather, and more. Free tier, no API key needed.

## Output

Returns a response object indicating the computed distance between the two provided locations. The exact format includes an 'ok' status flag along with the calculated distance value between the 'from' and 'to' locations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Destination place"
      },
      "from": {
       "type": "string",
       "description": "Origin place"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "ok": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gadgethumans-distance-calculator-a5cf42d6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gadgethumans.com](https://www.zero.xyz/host/api.gadgethumans.com/llms.txt)
