# Polyform Crypto Price API

> Polyform Crypto Price API is a paid API for AI agents from api.polyform.org, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Returns the current USD price of one or more cryptocurrencies, sourced from DefiLlama, via a single micropayment per call.

## Facts

- Endpoint: GET https://api.polyform.org/v1/crypto/price?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polyform-crypto-price-api-9799dbbd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ceQzTTIi8ox1hlKojcYce

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-crypto-price-api-9799dbbd
```

Example prompt: What's the current price of Bitcoin in USD? Use Polyform's pay-per-call crypto price endpoint — no API key needed, just pay the micropayment.

## When to prefer this

Choose this endpoint when you need a quick, no-account, no-API-key cryptocurrency price lookup and are willing to pay a small USDC micropayment per call via the x402 protocol. Ideal for AI agents operating autonomously that need real-time or near-real-time crypto prices sourced from DeFi data aggregators like DefiLlama, without managing API credentials.

## Known failure modes

- Missing or invalid query parameter returns an error response
- Unsupported cryptocurrency symbol may return empty prices map or error
- Payment failure (insufficient USDC balance or x402 protocol error) results in 402 response with no data
- DefiLlama upstream outage may result in stale or unavailable price data
- Rate or network timeout if the upstream data provider 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

Returns a JSON object containing a prices map keyed by asset name (e.g. 'bitcoin'), each entry including the USD price, asset symbol, ISO timestamp of the observation, and a confidence score between 0 and 1. Also returns total count and the data source (DefiLlama).

## 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": {
  "count": 1,
  "prices": {
   "bitcoin": {
    "asOf": "2026-09-28T21:00:00.000Z",
    "symbol": "BTC",
    "priceUSD": 63000,
    "confidence": 0.99
   }
  },
  "source": "DefiLlama"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/polyform-crypto-price-api-9799dbbd/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)
