{
  "openapi": "3.1.0",
  "info": {
    "title": "StatEdge API",
    "description": "Global sports analytics and intelligence API. AI-synthesized injury reports, ATS/spread analysis, matchup predictions, odds analysis, parlay optimization, referee tendency analysis, rest/travel advantage modeling, waiver wire recommendations, and global sports coverage. Covers NFL, NBA, MLB, NHL, EPL, La Liga, Bundesliga, Serie A, Ligue 1, IPL, cricket, F1, UFC, and more. Fantasy sports, streaming, and ticket affiliate links included in relevant endpoints. All endpoints support any language via ?lang=. Pricing: $0.05–$0.15 USDC/call via x402 micropayment.",
    "version": "1.2.0",
    "contact": {
      "name": "The Aslan Group LLC",
      "url": "https://pulsenetwork.theaslangroupllc.com",
      "email": "info@theaslangroupllc.com"
    },
    "x-guidance": "# StatEdge API (x402 pay-per-call)\n\nAI-synthesized sports intelligence API with genuine global coverage. Live betting odds from 20+ sportsbooks across 30+ sports and leagues. Dedicated global endpoint for F1 (live standings via Jolpica API), cricket (IPL, Test, ODI, T20I, BBL, PSL, CPL, The Hundred, SA20 — powered by ESPNcricinfo and Cricbuzz), rugby (Six Nations, Rugby Championship, Super Rugby, NRL, Super League, Rugby World Cup), tennis (ATP/WTA, all four Grand Slams), AFL, golf, boxing, MMA/UFC, cycling, and athletics. Fantasy\n\nBase URL: https://stateedge.theaslangroupllc.com\n\n## Payment\nAll paid endpoints use the x402 protocol (HTTP 402): USDC on Base mainnet (eip155:8453). No API keys, no accounts, no subscriptions — pay per call.\n\n## Agent workflow\n1. Request the endpoint. Unpaid requests receive a 402 challenge with exact price and pay-to details (the challenge is returned before request validation).\n2. Settle with any x402 client (agentcash fetch, x402-fetch, x402-axios) and retry with the X-PAYMENT header.\n3. Responses are JSON. Prices below are fixed per call.\n\n## Paid endpoints\n- GET /api/global — $0.1 — Global sports intelligence — F1 (live standings + race preview), cricket (IPL/BBL/PSL/Test/ODI/T20I), rugby (Six Nations/NRL/Super Rugby), tennis (Grand Slams/A\n- GET /api/ats — $0.1 — Against-the-spread trend analysis for a specific situation (home-underdog, divisional, off-a-loss, primetime, back-to-back). Returns cover rate, sample size, an\n- GET /api/parlay — $0.1 — Parlay true probability and expected value — vig-adjusted implied probability per leg, correlated leg risk, overall value vs. payout.\n- GET /api/ref-analysis — $0.1 — Referee/official tendencies — foul rate, home/away bias, totals impact, ATS record. Most useful for NBA (assignments released day-of) and NFL.\n- GET /api/rest — $0.08 — Rest and schedule advantage analysis — days of rest per team, back-to-back situations, travel distance, historical ATS in rest spots.\n- GET /api/injury-impact — $0.1 — Deep-dive impact for a specific player injury — win probability shift, line movement expected, fantasy replacement value.\n\nMore APIs from this provider: https://pulsenetwork.theaslangroupllc.com (grouped catalog, all x402)."
  },
  "servers": [
    {
      "url": "https://stateedge.theaslangroupllc.com"
    }
  ],
  "paths": {
    "/api/global": {
      "get": {
        "summary": "Global sports intelligence — F1, cricket, rugby, tennis, AFL, golf, boxing, MMA, cycling",
        "description": "Dedicated intelligence endpoint for sports that don't fit the fantasy/waiver model. F1: race previews with live standings from Jolpica API (driver/constructor championships, next race, last results). Cricket: IPL, Test, ODI, T20I, BBL, PSL, CPL, The Hundred, SA20 — match previews, series context, team form. Rugby: Six Nations, Rugby Championship, Super Rugby, NRL, Super League, Rugby World Cup. Tennis: ATP/WTA tours, all four Grand Slams, Davis Cup, Billie Jean King Cup. AFL, golf (PGA/DP World/LIV/Majors), boxing, MMA/UFC, cycling (TdF/Giro/Vuelta), athletics/Olympics. x-agent-use-case: on-demand for any non-US-fantasy sport query.",
        "operationId": "global",
        "parameters": [
          {
            "name": "sport",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "F1",
                "CRICKET",
                "IPL",
                "BBL",
                "PSL",
                "CPL",
                "THE100",
                "SA20",
                "RUGBY",
                "RUGBYUNION",
                "RUGBYLEAGUE",
                "SIXNATIONS",
                "NRL",
                "SUPERLEAGUE",
                "TENNIS",
                "ATP",
                "WTA",
                "WIMBLEDON",
                "USOPEN",
                "AUSOPEN",
                "RG",
                "AFL",
                "GOLF",
                "PGA",
                "DPWORLD",
                "LIV",
                "MASTERS",
                "BOXING",
                "MMA",
                "UFC",
                "CYCLING",
                "TDF",
                "GIRO",
                "VUELTA",
                "ATHLETICS",
                "OLYMPICS"
              ]
            },
            "description": "Sport code. F1 pulls live data from Jolpica API. All others use real-time Tavily synthesis from authoritative sources (formula1.com, ESPNcricinfo, Cricbuzz, worldrugby.org, BBC Sport, etc.)"
          },
          {
            "name": "action",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "preview"
            },
            "description": "F1: race|standings|qualifying|calendar. Cricket: match|series|ipl|standings. Rugby: match|tournament|standings. Tennis: tournament|rankings|draw|match. Others: preview|results|standings|analysis."
          },
          {
            "name": "detail",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional context: tournament name, team name, matchup, series. E.g. 'Six+Nations', 'Wimbledon', 'England+vs+Australia', 'Masters'"
          }
        ],
        "responses": {
          "200": {
            "description": "Global sports intelligence brief"
          },
          "402": {
            "description": "Payment required"
          }
        },
        "x-price-usd": 0.1,
        "x-agent-use-case": "on-demand",
        "x-agent-chaining": "Global sports endpoint — EPL, La Liga, F1, cricket, IPL; DAZN streaming affiliate included; expands StatEdge to 2B+ global sports fans",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.100000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/api/ats": {
      "get": {
        "summary": "Against-the-spread trends",
        "description": "ATS trends and systems for a specific situation — home underdog, divisional games, off a loss, primetime, back-to-back, and more. Returns cover rate, sample size, and betting value assessment. x-agent-use-case: on-demand when building or backtesting a betting system.",
        "operationId": "ats",
        "parameters": [
          {
            "name": "sport",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "NFL"
            }
          },
          {
            "name": "situation",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The situation to analyze (e.g. home-underdog, divisional, off-a-loss, primetime)"
          }
        ],
        "responses": {
          "200": {
            "description": "ATS trend analysis"
          },
          "402": {
            "description": "Payment required"
          }
        },
        "x-price-usd": 0.1,
        "x-agent-use-case": "on-demand",
        "x-agent-chaining": "ATS trend analysis — chain after /api/matchups for against-the-spread model; pairs with /api/rest for rest advantage context",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.100000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/api/parlay": {
      "get": {
        "summary": "Parlay analysis and probability",
        "description": "True probability and expected value analysis for a parlay. Calculates vig-adjusted implied probability for each leg, correlated leg risks, and overall parlay value vs. sportsbook payout. x-agent-use-case: on-demand before placing a multi-leg bet.",
        "operationId": "parlay",
        "parameters": [
          {
            "name": "legs",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated parlay legs (e.g. Chiefs -3,Over 47.5,Lakers ML)"
          }
        ],
        "responses": {
          "200": {
            "description": "Parlay analysis"
          },
          "402": {
            "description": "Payment required"
          }
        },
        "x-price-usd": 0.1,
        "x-agent-use-case": "on-demand",
        "x-agent-chaining": "Chain after /api/odds to build optimized multi-leg bets; uses correlation-aware parlay construction to minimize leg correlation",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.100000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/api/ref-analysis": {
      "get": {
        "summary": "Referee and official tendencies",
        "description": "Analysis of referee/official tendencies including foul rate, home/away bias, totals impact, and historical ATS record when this official works. Most useful for NBA (referee assignments released day-of) and NFL. x-agent-use-case: on-demand same day as game when referee assignment is known.",
        "operationId": "ref-analysis",
        "parameters": [
          {
            "name": "sport",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "NBA"
            }
          },
          {
            "name": "ref",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Referee name (optional — analyzes general tendencies if omitted)"
          }
        ],
        "responses": {
          "200": {
            "description": "Referee analysis"
          },
          "402": {
            "description": "Payment required"
          }
        },
        "x-price-usd": 0.1,
        "x-agent-use-case": "on-demand",
        "x-agent-chaining": "Referee tendency analysis — chain before any game with known officiating controversy; pairs with /api/matchups for total/spread implications",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.100000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/api/rest": {
      "get": {
        "summary": "Rest and schedule advantage analysis",
        "description": "Rest advantage analysis — days of rest for both teams, back-to-back situations, schedule difficulty, travel distance impact, and historical ATS performance in rest-advantage/disadvantage spots. x-agent-use-case: on-demand as part of pre-game analysis.",
        "operationId": "rest",
        "parameters": [
          {
            "name": "sport",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "NBA"
            }
          },
          {
            "name": "team",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Team to analyze"
          },
          {
            "name": "opponent",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Rest advantage analysis"
          },
          "402": {
            "description": "Payment required"
          }
        },
        "x-price-usd": 0.08,
        "x-agent-use-case": "on-demand",
        "x-agent-chaining": "Rest/travel advantage modeling — chain before /api/matchups for schedule-adjusted predictions; most predictive of unmodeled edges",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.080000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/api/injury-impact": {
      "get": {
        "summary": "Single player injury impact analysis",
        "description": "Deep-dive impact analysis for a specific player injury — win probability shift, line movement expected, fantasy replacement value, historical team performance without this player. x-agent-use-case: on-demand when a key player injury is announced.",
        "operationId": "injury-impact",
        "parameters": [
          {
            "name": "sport",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "NFL"
            }
          },
          {
            "name": "player",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "team",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "team (falls back to sport if omitted)"
          }
        ],
        "responses": {
          "200": {
            "description": "Player injury impact"
          },
          "402": {
            "description": "Payment required"
          }
        },
        "x-price-usd": 0.08,
        "x-agent-use-case": "on-demand",
        "x-agent-chaining": "Chain immediately after /api/injuries to quantify win-probability impact of key injuries",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.100000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    }
  }
}
