# matchwire matchwire is a hosted mapping layer for sports prediction markets. It returns one row per game, matched across Kalshi, Polymarket US, Polymarket International and Predict.fun, with each venue's own market ID left intact. Mapping only: no prices or order books. Two things are maintained for you and are the reason to use this instead of wiring the venues yourself: 1. Alias lists. Every venue titles the same game its own way, and those titles change. matchwire keeps the aliases behind each game ID, so your code reads one ID and never owns a reconciliation job. 2. Market types. Winners, spreads and handicaps, totals and props are matched too, and the line is part of the match, so over 45.5 is never confused with over 48.5. ## Base URL and auth https://api.matchwire.win — send header `x-api-key: ` on every call. JSON responses; send `Accept-Encoding: gzip` for smaller ones. A key's plan sets which venues and sports it may read. ## Endpoints - GET /api/v1/rows — every game in your plan, one row per game. - GET /api/v1/rows?since=SEQ — only games changed since SEQ, plus `tombstones`. - GET /api/v1/push[?since=SEQ] — the same updates as a Server-Sent Events stream. - GET /api/v1/sports — sport names with game counts, plus `groups` (esports, american-football, hockey...) and the sports each holds. `sport=` takes either. - GET /api/v1/status — service and per-venue health. ## Filters (comma lists; they combine) - sport=nfl,baseball — sport names or group ids from /api/v1/sports (baseball, not mlb; esports = every esports title). - venue=kalshi,poly — venues: kalshi, poly (Polymarket US), polyintl (Polymarket International), predictfun. - type=winner,total,handicap — also map_winner, score, event. - league=MLB, status=scheduled|live|ended. ## How to integrate 1. Make one full call and save the top-level `seq`. 2. Then poll /api/v1/rows?since=SEQ and save each new `seq`. Changed games come back whole. Tombstones ({"id": "...", "deleted": true}) mean remove that game. Under a venue or type filter, a game that stops matching the filter also comes back as a tombstone. 3. Key your data on the row `id`. Keep venue market IDs beside it. Never match games by title yourself. 4. Each listing carries `request` ({method, url}): the exact call that venue answers for that market. Call it as-is to read the market from the venue. If it includes `auth: "x-api-key"`, send the user's own key for that venue (Predict.fun needs one). 5. Rows are mapping only. Read prices from the venue with `request`, never from matchwire. ## Row fields id, sport, league, name, teams, start (UTC), status (scheduled|live|ended; ended games are removed a day later), listings (the winner market per venue), markets (every matched bet type: family, period, stat, line, subject, listings), notes (per-venue rule differences), seq. Listing fields: venue, marketId, type, tier, confidence (0 to 1), venueTeams, team, request. venueTeams = that venue's own names for the two teams, in the row's teams order (venueTeams[0] is teams[0] on every venue): this is how you tell which side is which. team = the row team this one ticket pays on (or "tie"), filled only where a venue lists a ticket per team (Kalshi). It is null on Polymarket US, Polymarket International and Predict.fun, where one market holds both teams; that is normal, not an unmatched side. Bet-type listings under markets carry side (e.g. over) instead of team. Unsure matches are held back for review, never served as a guess. ## Errors 401 missing or wrong key. 403 venue or sport outside the plan (the body lists what is allowed). 429 too many requests this minute: wait `retryAfter` seconds. `truncated: true` means more than 5,000 rows matched: add a filter. ## MCP and limits - MCP server: POST https://api.matchwire.win/mcp, same `x-api-key` header, streamable HTTP. Tools: list_sports, find_rows, get_row, get_venue_market, service_status, report_issue. See /docs/mcp. find_rows is paged for an AI context (limit default 25, max 200; offset = nextOffset) and compact (winner listings plus marketCount; markets=true for every bet type). Code should use REST. - Rate limits: 60 requests a minute per key. The /api/v1/push stream is not rate limited. Poll deltas, never the full set on a timer. ## Report anything that looks wrong If you notice something off, report it, even when no call failed: a game on one venue that is not matched to another, two different games matched together, a missing game, a wrong start time or league. POST https://api.matchwire.win/api/v1/report with your key and a JSON body: {"text": "what looks wrong and how you noticed", "kind": "missing_match | wrong_match | missing_game | wrong_data | other", "rowId": "...", "venue": "...", "marketId": "...", "url": "a page you checked"}. Only "text" is required. Returns 201. Free, does not change any data, and a person reads every report. Over MCP, call the report_issue tool instead. Do not invent endpoints, parameters or keys that are not in this file or in /docs/. ## Pages / /prediction-market-api /polymarket-api (Polymarket International and Polymarket US) /kalshi-api /mapping /how-to-map-prediction-markets /pmxt-alternative /pmxt-vs-matchwire /dome-api-alternative (a Dome API alternative for the mapping layer; Dome is being acquired by Polymarket) /docs /docs/#key /docs/mcp /pricing ## Contact support@matchwire.win (help, corrections, feed problems) keys@matchwire.win (API keys, receipts, billing automation) sales@matchwire.win (commercial license, partnerships)