# x402stock Polymarket Prediction Market Token Lookup

> x402stock Polymarket Prediction Market Token Lookup is a paid API for AI agents from agents.x402stock.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-30).

Returns implied probability, VWAP, USD volume, and on-chain identity for a single Polymarket outcome token by its uint256 token ID

## Facts

- Endpoint: GET https://agents.x402stock.xyz/api/v1/prediction-markets/:id?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-polymarket-prediction-market-token-lookup-92db7d83
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JoGoflDC8C4FVigOft8NX

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 x402stock-polymarket-prediction-market-token-lookup-92db7d83
```

Example prompt: What's the current implied probability and today's VWAP for Polymarket outcome token 12345678901234567890123456789012345678901234567890 — also give me the question title and condition ID from its on-chain identity?

## When to prefer this

Use this endpoint when you need detailed market microstructure data (VWAP, volume, implied probability) AND on-chain identity resolution (condition ID, question title, neg-risk) for a specific Polymarket outcome token in a single call. Prefer this over generic Polymarket APIs when you need both pricing and blockchain provenance data together. Use /prediction-markets first to discover active token IDs if you don't already have one.

## Known failure modes

- Invalid or non-existent token ID returns 404 or empty result
- Token ID not yet listed in active markets returns no data
- Payment failure (insufficient USDC balance) returns 402
- Stale data if on-chain indexing is lagging
- Malformed uint256 token ID (e.g. too large or non-numeric) causes 400 error

## How this service works

Use to track one Polymarket outcome token by its uint256 decimal token id: implied probability, today's VWAP and USD volume, indexed totals, plus on-chain identity (condition id, question title, neg-risk flag) resolved from the market's preparation transaction on Polygon. List active token ids via /prediction-markets. From x402stock, a market & economic data API (x402, USDC).

## Output

Returns a JSON object containing: implied probability (market-implied odds for the outcome), today's VWAP (volume-weighted average price in USD), USD trading volume for the day, indexed cumulative totals, the on-chain condition ID, the question title as stored in the preparation transaction on Polygon, and a neg-risk flag indicating whether the market uses Polymarket's neg-risk mechanism.

## 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"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-polymarket-prediction-market-token-lookup-92db7d83/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.x402stock.xyz](https://www.zero.xyz/host/agents.x402stock.xyz/llms.txt)
