# Geo Geometry Analyzer

> Geo Geometry Analyzer is a paid API for AI agents from anibalb.duckdns.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Computes geometric properties of a GeoJSON Polygon, including bounding box, centroid, area, perimeter, and validity check.

## Facts

- Endpoint: GET https://anibalb.duckdns.org/x402/geo-geometry?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/geo-geometry-analyzer-bf1d46a8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OzYsLw5yEgb-1r2azQZA-

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 geo-geometry-analyzer-bf1d46a8
```

Example prompt: Can you analyze this polygon geometry and tell me its bounding box, centroid, area, and perimeter, and whether the shape is valid? Here are the coordinates: [[[0,0],[1,0],[1,1],[0,1],[0,0]]]

## When to prefer this

Use this endpoint when you need quick, server-side computation of GeoJSON polygon properties (centroid, area, perimeter, bounding box, validity) without setting up a GIS library or account. Ideal for lightweight geospatial validation and measurement tasks where pay-per-call with no API key is preferred. Less suited for projections or complex coordinate system transformations.

## Known failure modes

- Invalid or malformed GeoJSON polygon returns an error or valid:false
- Self-intersecting polygon may be flagged as invalid
- Missing or wrong geometry type (e.g. Point instead of Polygon) causes a 400-level error
- Payment not included or insufficient USDC triggers a 402 Payment Required response

## How this service works

Public data and utility APIs paid per call in USDC on Base (x402). No accounts, no API keys. 174 routes: crypto/equity data, onchain reads, DNS/email/security intel, geo/weather, x402 payment diagnostics, dev utilities and more.

## Output

Returns a JSON object containing: bbox (array of [minX, minY, maxX, maxY]), valid (boolean indicating geometric validity), centroid ([longitude, latitude] of center point), area_deg2 (area in square degrees), and perimeter_deg (perimeter length in degrees).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "geometry": {
   "type": "Polygon"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bbox": [
   0,
   0,
   1,
   1
  ],
  "valid": true,
  "centroid": [
   0.5,
   0.5
  ],
  "area_deg2": 1,
  "perimeter_deg": 4
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/geo-geometry-analyzer-bf1d46a8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from anibalb.duckdns.org](https://www.zero.xyz/host/anibalb.duckdns.org/llms.txt)
