# Scanna Yes/No Price Lookup

> Scanna Yes/No Price Lookup is a paid API for AI agents from api.scanna.xyz, paid per call via x402, $0.005006/call, status unknown (last checked 2026-09-14).

Returns cached yes/no prices for up to 50 prediction market condition IDs from Polymarket and Kalshi, served from an in-process memory cache with ~60s staleness.

## Facts

- Endpoint: GET https://api.scanna.xyz/prices
- Price: $0.005006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scanna-yes-no-price-lookup-daf3aa08
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VRvT6UNygas8PRveJJfQ_

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 scanna-yes-no-price-lookup-daf3aa08
```

Example prompt: What are the current yes and no prices for these Polymarket condition IDs: 0xabc123, 0xdef456, and 0x789ghi?

## When to prefer this

Choose this endpoint when you need fast, low-latency yes/no price lookups for up to 50 prediction market condition IDs and can tolerate ~60s cache staleness. It is ideal for polling or repeated price checks where speed matters more than real-time accuracy. Prefer it over DB-backed alternatives when you need sub-second response times and don't need guaranteed freshness. Not suitable when you need guaranteed live prices, historical price data, or resolution outcomes.

## Known failure modes

- 503 Service Unavailable when the in-process cache has not yet been hydrated after a cold start
- All prices null with found:false for unknown or long-tail condition IDs — response is still 200 and still billable
- Silent truncation of IDs beyond the first 50 — no error is returned for the discarded IDs
- Prices may be up to ~60 seconds stale relative to live market state
- Blank entries in the comma-separated ids string are silently dropped

## How this service works

Returns yes/no prices for up to 50 condition_ids, read from an in-process market cache; no DB or upstream call. Prices are up to ~60s stale (updated_at is the cache refresh time). Unknown or long-tail ids return found:false with null prices in a 200, so an all-null response is still billable. 503 when the cache is not hydrated.

## Output

A JSON array of price entries — one per requested condition ID in request order — each containing condition_id (echoed), found (boolean), price_yes (0–1 float or null), price_no (0–1 float or null), platform ('polymarket', 'kalshi', or null), plus a top-level count (number of IDs read, max 50) and updated_at (ISO timestamp of last cache refresh). Unknown IDs return found:false with null prices but are still included and still billable.

## 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",
     "required": [
      "ids"
     ],
     "properties": {
      "ids": {
       "type": "string",
       "description": "Comma-separated condition_ids. Blanks are dropped; only the FIRST 50 are read and the rest are discarded silently."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "prices",
      "count"
     ],
     "properties": {
      "count": {
       "type": "integer",
       "description": "Ids READ (≤50), not ids found"
      },
      "prices": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "condition_id",
         "found"
        ],
        "properties": {
         "found": {
          "type": "boolean",
          "description": "false ⇒ the id is not in the cache; prices are null"
         },
         "platform": {
          "enum": [
           "polymarket",
           "kalshi",
           null
          ],
          "type": [
           "string",
           "null"
          ]
         },
         "price_no": {
          "type": [
           "number",
           "null"
          ]
         },
         "price_yes": {
          "type": [
           "number",
           "null"
          ]
         },
         "condition_id": {
          "type": "string",
          "description": "Echoed back exactly as supplied"
         }
        }
       },
       "description": "One entry per requested id, in request order — misses included, never omitted"
      },
      "updated_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "Cache refresh time"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scanna-yes-no-price-lookup-daf3aa08/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.scanna.xyz](https://www.zero.xyz/host/api.scanna.xyz/llms.txt)
