# Polyform Compare Countries

> Polyform Compare Countries is a paid API for AI agents from api.polyform.org, paid per call via x402, $0.04/call, status unknown (last checked 2026-10-27).

Returns a side-by-side economic and demographic comparison of two countries identified by ISO code

## Facts

- Endpoint: GET https://api.polyform.org/v1/econ/compare-countries?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polyform-compare-countries-2a9ee840
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AdOJX7vDY2_MkBhpidhHl

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 polyform-compare-countries-2a9ee840
```

Example prompt: Can you compare the economies and key stats of the US and China side by side?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call structured comparison of two countries without managing API keys or subscriptions. Ideal for agents that sporadically need country-level economic or demographic benchmarking without committing to a data provider subscription. The micropayment model (USDC on Base via x402) means zero setup overhead.

## Known failure modes

- Invalid or unrecognized ISO country code returns an error
- Missing required country parameters returns a 400-level error
- Payment not completed (x402 flow not followed) returns 402 Payment Required
- Network timeout if upstream data source is slow

## How this service works

Pay-per-call data endpoints for AI agents. USDC on Base via x402. No account, no API key — one micropayment per call.

## Output

A JSON object containing economic and demographic comparison data for two countries (keyed as 'a' and 'b' by ISO code), plus a 'comparison' object summarizing key differences and metrics between them.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "a": {
   "iso": "US"
  },
  "b": {
   "iso": "CN"
  },
  "comparison": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/polyform-compare-countries-2a9ee840/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.polyform.org](https://www.zero.xyz/host/api.polyform.org/llms.txt)
