# Sports Calculators – Pythagorean Expectation

> Sports Calculators – Pythagorean Expectation is a paid API for AI agents from sports-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-21).

Calculates Pythagorean expected win percentage and projected wins/losses from points or runs scored and allowed, using sport-specific exponents for baseball, basketball, NFL, or NHL.

## Facts

- Endpoint: GET https://sports-calc.x402tookit.com/pythagorean-expectation?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sports-calculators-pythagorean-expectation-8678958a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8Al-vCGpXKtv7SzL1vtut

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 sports-calculators-pythagorean-expectation-8678958a
```

Example prompt: What's the Pythagorean expected win percentage for a baseball team that's scored 520 runs and allowed 480 runs over a 162-game season?

## When to prefer this

Use this endpoint when you need a statistically grounded estimate of how many wins a team deserves based on scoring output, especially when checking if a team is over- or underperforming their actual record. It supports baseball, basketball, NFL, and NHL with sport-tuned exponents, and allows custom exponent overrides for advanced analysis. Prefer this over manual calculation or generic stats APIs when sport-specific Pythagorean modeling is required.

## Known failure modes

- Missing required 'scored' or 'allowed' query parameters returns an error
- Non-numeric values for scored/allowed cause validation failure
- Unsupported sport string falls back to baseball default or returns an error
- Exponent override of zero or negative value may produce invalid results
- Payment failure or x402 authentication error prevents access

## How this service works

Pythagorean expected win percentage and wins from points or runs for and against, with sport-specific exponents.

## Output

Returns the expected win percentage, expected wins, expected losses, run/point differential, runs or points per game scored, the exponent applied, sport, a summary narrative, and optional reasons or disclaimers. All numeric fields may be null if inputs are insufficient.

## 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": [
      "scored",
      "allowed"
     ],
     "properties": {
      "games": {
       "type": "integer",
       "description": "Games played or season length, default by sport"
      },
      "sport": {
       "type": "string",
       "description": "baseball (default), basketball, nfl or nhl"
      },
      "scored": {
       "type": "number",
       "description": "Points or runs scored"
      },
      "allowed": {
       "type": "number",
       "description": "Points or runs allowed"
      },
      "exponent": {
       "type": "number",
       "description": "Override the exponent"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "games": {
       "type": [
        "null",
        "number"
       ]
      },
      "sport": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "exponent": {
       "type": [
        "null",
        "number"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "expectedWins": {
       "type": [
        "null",
        "number"
       ]
      },
      "expectedLosses": {
       "type": [
        "null",
  
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sports-calculators-pythagorean-expectation-8678958a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sports-calc.x402tookit.com](https://www.zero.xyz/host/sports-calc.x402tookit.com/llms.txt)
