# Layer Prediction Market Cross-Venue Matching

> Layer Prediction Market Cross-Venue Matching is a paid API for AI agents from uselayer.sh, paid per call via x402, $0.1/call, status unknown (last checked 2026-11-21).

Finds the same prediction market listed on multiple venues (Kalshi, Polymarket, Polymarket US, Hyperliquid) and returns normalized cross-venue match data with confidence scores.

## Facts

- Endpoint: GET https://uselayer.sh/v0/matches?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/layer-prediction-market-cross-venue-matching-f2c1f18e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Bvh6MckGTEOvjxwzBj-5R

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 layer-prediction-market-cross-venue-matching-f2c1f18e
```

Example prompt: Search Layer for prediction markets about the 2024 US presidential election and show me which markets on Kalshi match the ones on Polymarket, up to 10 results.

## When to prefer this

Use this endpoint when you need to find the same prediction market across multiple venues (Kalshi, Polymarket, Hyperliquid) in order to compare prices, detect arbitrage, or unify position tracking. Prefer this over venue-specific APIs when cross-venue normalization and market matching with confidence scores is required. Ideal for agents managing multi-venue prediction market portfolios or seeking best execution across platforms.

## Known failure modes

- No matches found for query — empty matches array returned
- Invalid venue enum value returns validation error
- Date range too broad or too narrow returns few or no results
- Payment not included or insufficient USDC causes 402 error
- Limit exceeds 200 returns validation error
- Query term too generic returns unrelated markets

## How this service works

Every live prediction-market pair Layer has matched across Kalshi and Polymarket/Polymarket US/Hyperliquid/Novig, soonest event first, with live prices and the best trade between them.

## Output

Returns a count of matched markets and an array of match objects, each containing venue-specific market IDs (e.g. kalshi market_id, polymarket_us market_id), a confidence score (0-1), and a verification tier (e.g. 'human_verified'). Allows agents to identify and link equivalent prediction markets across trading venues.

## 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": {
      "q": {
       "type": "string",
       "description": "Words to search for in the market title"
      },
      "to": {
       "type": "string",
       "description": "YYYY-MM-DD"
      },
      "from": {
       "type": "string",
       "description": "First event day, YYYY-MM-DD. Without it, events that ended over 12 hours ago are left out."
      },
      "limit": {
       "type": "string",
       "description": "1-200"
      },
      "venue": {
       "enum": [
        "polymarket_us",
        "polymarket",
        "hyperliquid",
        "novig"
       ],
       "type": "string"
      },
      "offset": {
       "type": "string",
       "description": "Send next_offset from the last page"
      },
      "series": {
       "type": "string",
       "description": "Kalshi series, comma-separated, e.g. KXBTC15M,KXETH15M"
      },
      "category": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "matches": [
   {
    "tier": "human_verified",
    "kalshi": {
     "venue": "kalshi",
     "market_id": "KXNBAGAME-26NOV08LALBOS-LAL"
    },
    "confidence": 1,
    "polymarket_us": {
     "venue": "polymarket_us",
     "market_id": "aec-nba-lal-bos-2026-11-08"
    }
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/layer-prediction-market-cross-venue-matching-f2c1f18e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from uselayer.sh](https://www.zero.xyz/host/uselayer.sh/llms.txt)
