# 402Forge Area Comparison API

> 402Forge Area Comparison API is a paid API for AI agents from geo-seo-forge.donneash.workers.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-13).

Compares two geographic areas across multiple quality dimensions (schools, etc.) and returns a structured recommendation with evidence and confidence scores

## Facts

- Endpoint: GET https://geo-seo-forge.donneash.workers.dev/compare/areas
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/402forge-area-comparison-api-9f18745e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JCUYqmlQFzvvvyC3_Pb78

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 402forge-area-comparison-api-9f18745e
```

Example prompt: Can you compare Alpharetta and Johns Creek as areas to live in, especially looking at schools, and tell me which one you'd recommend with your confidence level?

## When to prefer this

Use this endpoint when an agent needs a structured, evidence-backed comparison between two geographic areas with per-dimension scoring (e.g. schools) and a clear winner recommendation. Prefer over generic search when you need machine-readable confidence scores and cited evidence rather than raw web results.

## Known failure modes

- HTTP 402 returned if no valid x402 payment header is included
- Invalid or unrecognized area names may return low-confidence or empty evidence
- Missing required query parameters may result in 400 errors
- Network or worker timeout on complex comparisons

## How this service works

Paid x402 routes only (HTTP 402 without payment). Free Election Integrity preview is not listed here: GET /v1/e/ei/card. Full doc: /openapi-full.json. Contact email for merchant ownership verification.

## Output

A JSON object containing a top-level recommendation (winning area name), an overall confidence score (0-1), a dimensions object with per-category winners (e.g. schools), and an array of evidence items each with a claim string, confidence score, and source URL.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "a",
      "b"
     ],
     "properties": {
      "a": {
       "enum": [
        "buckhead",
        "alpharetta"
       ],
       "type": "string",
       "description": "First area"
      },
      "b": {
       "enum": [
        "buckhead",
        "alpharetta"
       ],
       "type": "string",
       "description": "Second area"
      },
      "dims": {
       "type": "string",
       "description": "Comma-separated: commute,schools,hoa,cost,lifestyle"
      },
      "budget_usd": {
       "type": "integer",
       "description": "Optional budget for cost dimension"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "evidence": [
   {
    "claim": "...",
    "confidence": 0.75,
    "source_url": "..."
   }
  ],
  "confidence": 0.82,
  "dimensions": {
   "schools": {
    "winner": "alpharetta"
   }
  },
  "recommendation": "alpharetta"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/402forge-area-comparison-api-9f18745e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from geo-seo-forge.donneash.workers.dev](https://www.zero.xyz/host/geo-seo-forge.donneash.workers.dev/llms.txt)
