# VIA API Compare

> VIA API Compare is a paid API for AI agents from via-router.floot.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-10).

Compares APIs and software services based on a plain-language intent, returning one top recommendation plus up to three alternatives.

## Facts

- Endpoint: POST https://via-router.floot.app/_api/api_compare?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/via-api-compare-0fae3727
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_b730FXxlHrFbo9KRh8Dr6

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 via-api-compare-0fae3727 -d '<json body>'
```

Example prompt: Can you compare PDF text extraction APIs for me and recommend the best one — I'm building in the US and need results in English?

## When to prefer this

Use this endpoint when an AI agent or user needs to quickly discover and compare APIs or software services by describing their need in plain language, without having to manually research options. Ideal for agentic workflows where the agent must programmatically select the best tool or service for a subtask. Prefer this over generic web search when you want a structured recommendation with alternatives, especially within commerce, services, information, or travel markets.

## Known failure modes

- Intent string too short or missing — validation error returned
- Invalid country code format (must be two uppercase letters) — 400 error
- Payment failure via x402 protocol — endpoint returns 402 Payment Required
- No suitable match found for the intent — empty or null recommendation
- Unsupported language or market enum value — validation error

## How this service works

Compare APIs and software services. Returns one recommendation plus up to three alternatives.

## Output

Returns a JSON object confirming payment, the settlement transaction hash on Base (EIP-155), the toll cost in USD, a recommended service with its title and source, and up to three alternative services.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "intent": {
   "type": "string",
   "maxLength": 500,
   "minLength": 2,
   "description": "Plain-language request to route"
  },
  "market": {
   "enum": [
    "auto",
    "services",
    "commerce",
    "information",
    "travel"
   ],
   "type": "string"
  },
  "country": {
   "type": "string",
   "pattern": "^[A-Z]{2}$"
  },
  "language": {
   "enum": [
    "en",
    "pt"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "paid": true,
  "intent": "Find a PDF text extractor",
  "settlement": {
   "network": "eip155:8453",
   "transaction": "0x..."
  },
  "viaTollUsd": 0.01,
  "alternatives": [],
  "recommendation": {
   "title": "PDF Text Extractor",
   "source": "Apify Store"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/via-api-compare-0fae3727/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from via-router.floot.app](https://www.zero.xyz/host/via-router.floot.app/llms.txt)
