AsianScore Public Sports Data & xG Ledger REST API
Free, keyless, HTTPS and CORS-enabled JSON endpoints providing real-time Football & NBA scores, Dixon-Coles expected goals (xG) scoreline probabilities, and pre-kickoff SHA-256 verifiable prediction ledger snapshots.
Endpoints Summary
| Method | Endpoint | Purpose | Cache / Notes |
|---|---|---|---|
GET | /api/widget/summary | Compact live/upcoming Football & NBA scoreboard plus aggregate ledger calibration metrics | max-age=30, CORS * |
GET | /api/ledger | Full SHA-256 verifiable prediction ledger: overall accuracy, league breakdown, settled & upcoming locks | GET only, CORS * |
GET | /api/scores | Live & upcoming match list across 30+ football leagues and NBA with market odds & predicted scores | Real-time JSON, CORS * |
GET | /api/articles | Latest match previews, tactical columns, and post-match xG recaps | Real-time JSON, CORS * |
GET | /embed.js | Zero-dependency Shadow DOM embeddable live scoreboard & ledger widget script | text/javascript |
Returns a compact payload designed for dashboards, widgets, and lightweight CLI clients: aggregate prediction ledger accuracy metrics plus active/upcoming matches with model top picks.
Response Fields
| Field | Type | Description |
|---|---|---|
brand | string | Platform brand string |
ledger.totalLocked | integer | Total pre-kickoff predictions locked with SHA-256 fingerprints |
ledger.settled | integer | Settled matches evaluated against official final scores |
ledger.hits | integer | Number of top-outcome hits among settled matches |
ledger.hitRatePct | number | Settled top-outcome hit rate percentage |
ledger.avgBrier | number | Average multi-class Brier calibration score (lower is better) |
matches[] | array | Array of matches containing id, league, homeTeam, awayTeam, homeScore, awayScore, kickoff, state, topLabel, topProbPct, url |
Example Request & Response
curl -s https://asianscore.com/api/widget/summary
{
"brand": "亚分体育 AsianScore",
"ledger": {
"avgBrier": 0.1783,
"hitRatePct": 56.92,
"hits": 144,
"settled": 253,
"totalLocked": 394
},
"matches": [
{
"id": "espn-eng.1-401878755",
"league": "英超",
"homeTeam": "利物浦",
"awayTeam": "曼联",
"homeScore": 0,
"awayScore": 0,
"kickoff": "2026-11-23 00:30",
"state": "pre",
"topLabel": "利物浦 胜",
"topProbPct": 60,
"url": "https://asianscore.com/match/espn-eng.1-401878755.html"
}
]
}
Returns the complete pre-kickoff SHA-256 verifiable prediction audit ledger. Predictions are frozen 8–10 minutes prior to kickoff and settled strictly against official final scores via multi-class Brier score.
Response Fields
| Field | Type | Description |
|---|---|---|
schemaVersion | string | Ledger JSON schema identifier |
generatedAt | string (ISO-8601) | Snapshot generation timestamp |
lockRule | string | Pre-kickoff freeze and hashing rule description |
accuracy | object | averageBrierScore, hitRate, hitRatePct, correct, sampleSize, totalLocked, pendingCount, eligibleUpcoming |
byLeague | array/object | Calibration breakdown grouped by competition |
recentSettled | array | Recently settled fixtures with pre-kickoff probabilities, final score, and Brier score |
upcomingLocked | array | Upcoming fixtures already frozen before kickoff with SHA-256 hashes |
curl -s https://asianscore.com/api/ledger | jq '.accuracy'
Returns live and upcoming Football (Premier League, La Liga, Serie A, Bundesliga, Ligue 1, UEFA Champions League, J1, K1, MLS, etc.) and NBA fixtures including market odds and Dixon-Coles predicted scorelines.
Response Fields
Top-level keys: updatedAt, leagues[], and matches[]. Each match object provides id, sourceEventId, leagueCode, kickoffAt, league, home, away, homeZh, awayZh, venue, status, liveMin, sport, oddsHome, oddsDraw, oddsAway, oddsProvider, predictedScore, predH, predA.
curl -s https://asianscore.com/api/scores | jq '{updatedAt, leagues: (.leagues|length), matches: (.matches|length), sample: .matches[0]}'
Returns published tactical match previews, lineup intelligence, and post-match xG analytical columns (also available as XML RSS at /rss.xml).
curl -s https://asianscore.com/api/articles | jq '.articles[:3] | map({id, sport, league, title})'
Drop a live Football & NBA scoreboard and verifiable xG ledger card into any static HTML page with one script tag. Styles are isolated via Shadow DOM.
<script async src="https://asianscore.com/embed.js" data-theme="dark" data-limit="6"></script>
Quickstart Code Examples
Python (Standard Library or asianscore-quant)
import json, urllib.request
with urllib.request.urlopen("https://asianscore.com/api/ledger", timeout=15) as r:
ledger = json.loads(r.read().decode("utf-8"))
acc = ledger["accuracy"]
print(f"Locked={acc['totalLocked']} Settled={acc['sampleSize']} AvgBrier={acc['averageBrierScore']}")
JavaScript / Browser (CORS Enabled)
const res = await fetch("https://asianscore.com/api/widget/summary");
const { ledger, matches } = await res.json();
console.log(`Avg Brier: ${ledger.avgBrier}, Upcoming/Live: ${matches.length}`);
Go (github.com/AIYIXIU/asianscore-go)
summary, err := asianscore.FetchSummary(context.Background(), nil)
fair, _ := asianscore.DevigPower([]float64{1.95, 3.50, 4.10})
probs := asianscore.DixonColes(1.65, 1.05, -0.05)
Ruby (asianscore_quant)
require "asianscore_quant"
summary = AsianScoreQuant.fetch_summary
probs = AsianScoreQuant.dixon_coles(1.65, 1.05, rho: -0.05)
Official Open-Source SDKs, Interactive Tools & Archival Datasets
Fair Use, Rate Limits & Caching
All documented read-only GET endpoints are free for non-commercial, research, educational, and open-source use without an API key. Please respect Cache-Control headers and keep automated polling to at most 1 request every 30 seconds per IP. Attribution back to AsianScore is appreciated.
For LLM and AI agent ingestion, a structured site index is published at https://asianscore.com/llms.txt.