# NPB Win Probability Oracle

> NPB Win Probability Oracle is a paid API for AI agents from oracle-api-production-766f.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns XGBoost-predicted win probabilities, confidence ratings, and pitcher matchups for all NPB games on a given date

## Facts

- Endpoint: POST https://oracle-api-production-766f.up.railway.app/v1/npb/games/:date/win-prob
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/npb-win-probability-oracle-db3b3fa1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1g5SdoOq3WJu9IPBP14c-

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 npb-win-probability-oracle-db3b3fa1 -d '<json body>'
```

Example prompt: What are the win probabilities and predicted winners for all NPB games on 2025-07-10, including the starting pitcher matchups and confidence levels?

## When to prefer this

Use this endpoint when you need machine-learning-derived win probability scores specifically for NPB (Nippon Professional Baseball) games, incorporating ballpark factors, Asian Handicap data, and pitcher-batter splits from 28,968 historical games. Prefer this over generic sports data APIs when you need confidence-rated predictions suitable for betting bots, fantasy sports agents, or sportsbook arbitrage detection in the Japanese baseball context.

## Known failure modes

- No games scheduled on the requested date — returns empty games array
- Invalid date format (not YYYY-MM-DD) — returns 400 error
- Date outside model coverage range — returns error or empty result
- Payment failure on Solana mainnet — request blocked before model inference
- Future dates beyond schedule availability — limited or no pitcher data

## How this service works

Japanese baseball (NPB) win probability oracle. Returns home_win_prob (0-1), predicted_winner (team name), confidence (low/mid/high), and starting pitcher matchup for each game on the given date. XGBoost model trained on 28,968 historical NPB games (2008-2025), incorporating Asian Handicap data, ballpark factors, and pitcher-batter splits. Use cases: betting bots, fantasy baseball agents, sportsbook arbitrage detection, Japanese sports analytics. Input: :date (YYYY-MM-DD, JST). Output: JSON {date, league, model_version, generated_at, games[]}. Pay-per-call $0.01 USDC on Solana mainnet.

## Output

A JSON object containing the date, league, model_version, generated_at timestamp, and a games array — each game entry includes home_win_prob (float 0-1), predicted_winner (team name), confidence (low/mid/high), and the starting pitcher matchup for that game.

## 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"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "date"
     ],
     "properties": {
      "date": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/npb-win-probability-oracle-db3b3fa1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from oracle-api-production-766f.up.railway.app](https://www.zero.xyz/host/oracle-api-production-766f.up.railway.app/llms.txt)
