1. Public APi
DATA SPORT
  • DATABASE-SPORT
    • Tổng quan
    • Logic
      • Logic tổng thể
    • Projects
      • Yêu cầu hệ thống
      • Architecture
        • Database
    • Public APi
      • Tổng quan
      • Cài đặt
      • ENV DEV
      • ENV Prod
      • Postman collection
    • Public API v3
      • Tổng quan
      • Cài đặt
    • Cron Make File
      • Tổng quan
  • GOLANG-THESPORT
    • Tổng quan
    • Architecture
      • System
      • Database
      • Source Code
    • Development
      • Local
      • Production
  • GOLANG-API (xe.winfast)
    • Tổng quan
    • Architecture
      • System
      • Database
      • Source Code
    • Development
      • Local
      • Production
  • GOLANG-KSPORT
    • Tổng quan
    • Architecture
      • System
      • Database
      • Source Code
    • Development
      • Production
  • CRONJOB-LARAVEL
    • Tổng quan
    • Logic
      • Logic tổng thể
    • Projects
      • Yêu cầu hệ thống
      • Architecture
        • System
        • Source code
        • Database
      • Development
        • Dev
        • Production
      • Public API
        • Common API
          • League & Cup Profile (Basic)
          • Schedule & Results (Basic)
          • Match Modify Record
          • List of Countries
          • List of Bookmakers
          • Configuration instructions
        • Live animation
          • Configuration instructions
          • Schedule & Results
        • Live Data
          • Livescores for Today
          • Livescores Changes
          • Schedule & Results
          • Schedule Changes
          • Events
          • Stats
          • Corner
          • Lineups
          • Injury
          • Match List of Live Text
          • Live Text
          • Transfer
        • Profile
          • League & Cup Profile
          • Subleague Profile
          • Cup Stage Profile
          • Team Profile
          • Team Profile Copy
          • Team Profile for Search
          • Player Profile
          • Player Profile for Search
          • Referee Profile
          • Teamlist with Player Profile
        • Stats
          • Matches Analysis
          • List of Player Stats (Match)
          • Player Stats (Match)
          • List of Player Stats (League & Cup)
          • Player Stats (League & Cup)
          • League Standing (Get Subleague)
          • League Standing
          • Cup Standing
          • Top Scorer
          • FIFA Ranking
        • Odds (18 bookmakers)
          • Pre-match and In-play Odds (Main)
          • Live Odds Changes (Main)
          • Historical Odds (Main)
          • Future Odds (Main)
          • Pre-match and In-play Odds (All)
          • Live Odds Changes (All)
          • Historical Odds (All)
          • Future Odds (All)
          • European Odds (Halftime)
          • In-play Odds
          • In-play Odds (Halftime)
          • Odd Modify Record
        • European Odds (200+ Bookmakers)
          • European Odds (200+ Bookmakers)
        • Other Odds
          • Outrights
          • First/Last Team To Score (pre-match)
          • Goals Odd/Even (pre-match)
          • Goals Odd/Even (In-play)
          • Number of Goals in Match (pre-match)
          • Number of Goals in Match (In-play)
          • Half Time/Full Time (pre-match)
          • Half Time/Full Time (In-play)
          • Correct Score (pre-match)
          • Correct Score (In-play)
          • Half Time Correct Score (pre-match)
          • Half Time Correct Score (In-play)
          • Handicap Corners (pre-match)
          • Handicap Corners (In-play)
          • Total Corners (pre-match) - Tổng phạt góc trước trận đấu: First Odds
          • Total Corners (In-play) - Tổng số quả phạt góc (Trong trận) - Run Odds
          • Double Chance(pre-match)
          • EuroHandicap(pre-match)
  • GOLANG-WEBSOCKET
    • Tổng Quan
    • Logic
      • Logic tổng thể
    • Projects
      • Yêu cầu hệ thống
      • Architecture
        • System
        • Source code
      • Development
        • Dev
        • Production
      • Public API
        • API
  • LIVEANIMATION-THESPORT
    • Hướng dẫn liveaniamtion thesport
  1. Public APi

Postman collection

  "info": {
    "name": "Data Sport API - Soccer Prediction & Livescore",
    "description": "Full Postman collection for Data Sport API (Laravel-based Soccer Prediction System). Includes Prediction, Live, Odds, Statistics, Public APIs, Assets, etc.\n\nBase URL: Replace with your actual domain (e.g. https://db.bongdalu.co.com/)",
    "_postman_id": "data-sport-api-collection-v1",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://db.bongdalu.co.com",
      "type": "string"
    },
    {
      "key": "match_id",
      "value": "1234567",
      "type": "string"
    },
    {
      "key": "sclass_id",
      "value": "100",
      "type": "string"
    },
    {
      "key": "schedule_id",
      "value": "2964750",
      "type": "string"
    },
    {
      "key": "company_id",
      "value": "1",
      "type": "string"
    },
    {
      "key": "lang",
      "value": "vi",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "01. Prediction APIs",
      "item": [
        {
          "name": "Calculate All Scores (Poisson Prediction)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/calculate-all-scores?id={{match_id}}",
              "host": ["{{base_url}}"],
              "path": ["calculate-all-scores"],
              "query": [{ "key": "id", "value": "{{match_id}}" }]
            },
            "description": "Dự đoán tỷ số full-time & half-time sử dụng mô hình Poisson (10 trận gần nhất)"
          }
        },
        {
          "name": "Calculate Live Prediction",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/calculate-live?id={{match_id}}",
              "host": ["{{base_url}}"],
              "path": ["calculate-live"],
              "query": [{ "key": "id", "value": "{{match_id}}" }]
            },
            "description": "Dự đoán tỷ số theo thời gian thực (cập nhật từ all-scores + live events)"
          }
        },
        {
          "name": "Calculate Hot Matches",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/calculate-hot",
              "host": ["{{base_url}}"],
              "path": ["calculate-hot"]
            },
            "description": "Trả về kèo hot nhất (win % cao) với nhận định AI"
          }
        },
        {
          "name": "Predict Log (Dashboard)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/predict-log",
              "host": ["{{base_url}}"],
              "path": ["predict-log"]
            },
            "description": "Log kiểm tra dự đoán (có filter date, league, team...)"
          }
        },
        {
          "name": "Get Predict Match",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/get-predict-match?scheduleID={{schedule_id}}&lang={{lang}}",
              "host": ["{{base_url}}"],
              "path": ["api", "get-predict-match"],
              "query": [
                { "key": "scheduleID", "value": "{{schedule_id}}" },
                { "key": "lang", "value": "{{lang}}" }
              ]
            },
            "description": "Chi tiết phân tích trận đấu (phong độ, đội hình, cầu thủ...)"
          }
        }
      ]
    },
    {
      "name": "02. Public APIs",
      "item": [
        {
          "name": "Get Match Today",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/get-match",
              "host": ["{{base_url}}"],
              "path": ["api", "get-match"]
            },
            "description": "Lấy danh sách trận đấu trong ngày (từ -4h đến +22h)"
          }
        },
        {
          "name": "Get League Rank",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/get-league-rank?sclassId={{sclass_id}}",
              "host": ["{{base_url}}"],
              "path": ["api", "get-league-rank"],
              "query": [{ "key": "sclassId", "value": "{{sclass_id}}" }]
            },
            "description": "Bảng xếp hạng của 1 giải đấu"
          }
        },
        {
          "name": "Get Leagues Rank (Multiple)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/get-leagues-rank?ids=1,2,3&limit=5",
              "host": ["{{base_url}}"],
              "path": ["api", "get-leagues-rank"],
              "query": [
                { "key": "ids", "value": "1,2,3" },
                { "key": "limit", "value": "5" }
              ]
            },
            "description": "Bảng xếp hạng nhiều giải"
          }
        }
      ]
    },
    {
      "name": "03. AI APIs",
      "item": [
        {
          "name": "AI Check",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/ai-check?date=2026-04-06&type=api",
              "host": ["{{base_url}}"],
              "path": ["api", "ai-check"],
              "query": [
                { "key": "date", "value": "2026-04-06" },
                { "key": "type", "value": "api" }
              ]
            }
          }
        },
        {
          "name": "AI Update",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/ai-update",
              "host": ["{{base_url}}"],
              "path": ["api", "ai-update"]
            },
            "description": "Cập nhật dự đoán AI và đối chiếu kết quả thật"
          }
        }
      ]
    },
    {
      "name": "04. Live Data & Ajax",
      "item": [
        {
          "name": "Match Live Detail (JS)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/ajax/match/live?id={{match_id}}&lang={{lang}}",
              "host": ["{{base_url}}"],
              "path": ["ajax", "match", "live"],
              "query": [
                { "key": "id", "value": "{{match_id}}" },
                { "key": "lang", "value": "{{lang}}" }
              ]
            }
          }
        },
        {
          "name": "Match Score (JS)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/ajax/match/match-score?id={{match_id}}&lang={{lang}}",
              "host": ["{{base_url}}"],
              "path": ["ajax", "match", "match-score"],
              "query": [
                { "key": "id", "value": "{{match_id}}" },
                { "key": "lang", "value": "{{lang}}" }
              ]
            }
          }
        },
        {
          "name": "Get Hot Matches",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/ajax/get-hot-matches",
              "host": ["{{base_url}}"],
              "path": ["ajax", "get-hot-matches"]
            }
          }
        },
        {
          "name": "Get Match Core Main",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/ajax/get-match-core-main?companyID={{company_id}}&date=2026-04-06&lang={{lang}}",
              "host": ["{{base_url}}"],
              "path": ["ajax", "get-match-core-main"],
              "query": [
                { "key": "companyID", "value": "{{company_id}}" },
                { "key": "date", "value": "2026-04-06" },
                { "key": "lang", "value": "{{lang}}" }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "05. Odds APIs",
      "item": [
        {
          "name": "Get Odds Core Main",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/ajax/get-odds-core-main?companyID={{company_id}}&date=2026-04-06&lang={{lang}}",
              "host": ["{{base_url}}"],
              "path": ["ajax", "get-odds-core-main"],
              "query": [
                { "key": "companyID", "value": "{{company_id}}" },
                { "key": "date", "value": "2026-04-06" },
                { "key": "lang", "value": "{{lang}}" }
              ]
            }
          }
        },
        {
          "name": "Get Odds Live",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/ajax/get-odds-live",
              "host": ["{{base_url}}"],
              "path": ["ajax", "get-odds-live"]
            }
          }
        },
        {
          "name": "Get Odds Result",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/ajax/get-odds-result?date=2026-04-06&isHot=1",
              "host": ["{{base_url}}"],
              "path": ["ajax", "get-odds-result"],
              "query": [
                { "key": "date", "value": "2026-04-06" },
                { "key": "isHot", "value": "1" }
              ]
            }
          }
        },
        {
          "name": "Get Odds Fixture",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/ajax/get-odds-fixture?date=2026-04-06",
              "host": ["{{base_url}}"],
              "path": ["ajax", "get-odds-fixture"],
              "query": [{ "key": "date", "value": "2026-04-06" }]
            }
          }
        },
        {
          "name": "Get Odd Detail History",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/ajax/get-odd-detail-history?scheduleID={{schedule_id}}&companyID=1,2,3&type=1",
              "host": ["{{base_url}}"],
              "path": ["ajax", "get-odd-detail-history"],
              "query": [
                { "key": "scheduleID", "value": "{{schedule_id}}" },
                { "key": "companyID", "value": "1,2,3" },
                { "key": "type", "value": "1" }
              ]
            },
            "description": "Lịch sử biến động odds (type: 1=HDP, 2=OU, 3=1X2)"
          }
        }
      ]
    },
    {
      "name": "06. Statistics APIs",
      "item": [
        {
          "name": "Statistics Team",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/ajax/get-statistics-team?sclassID={{sclass_id}}&season=2025&lang={{lang}}",
              "host": ["{{base_url}}"],
              "path": ["ajax", "get-statistics-team"],
              "query": [
                { "key": "sclassID", "value": "{{sclass_id}}" },
                { "key": "season", "value": "2025" },
                { "key": "lang", "value": "{{lang}}" }
              ]
            }
          }
        },
        {
          "name": "Statistics Player",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/ajax/get-statistics-player?sclassID={{sclass_id}}&season=2025&lang={{lang}}",
              "host": ["{{base_url}}"],
              "path": ["ajax", "get-statistics-player"],
              "query": [
                { "key": "sclassID", "value": "{{sclass_id}}" },
                { "key": "season", "value": "2025" },
                { "key": "lang", "value": "{{lang}}" }
              ]
            }
          }
        },
        {
          "name": "Statistics Score Schedule (Head-to-Head Matrix)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/ajax/get-statistics-score-schedule?sclassID={{sclass_id}}&season=2025",
              "host": ["{{base_url}}"],
              "path": ["ajax", "get-statistics-score-schedule"],
              "query": [
                { "key": "sclassID", "value": "{{sclass_id}}" },
                { "key": "season", "value": "2025" }
              ]
            }
          }
        },
        {
          "name": "Attack vs Defense Stats",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/ajax/get-attack-defense?sclassID={{sclass_id}}&season=2025",
              "host": ["{{base_url}}"],
              "path": ["ajax", "get-attack-defense"],
              "query": [
                { "key": "sclassID", "value": "{{sclass_id}}" },
                { "key": "season", "value": "2025" }
              ]
            }
          }
        },
        {
          "name": "First Goal Win/Loss Stats",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/ajax/get-first-goal-win-loss?sclassID={{sclass_id}}&season=2025",
              "host": ["{{base_url}}"],
              "path": ["ajax", "get-first-goal-win-loss"],
              "query": [
                { "key": "sclassID", "value": "{{sclass_id}}" },
                { "key": "season", "value": "2025" }
              ]
            }
          }
        },
        {
          "name": "League Detail Rank Stats",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/ajax/get-statistics-detail-rank?sclassID={{sclass_id}}&season=2025",
              "host": ["{{base_url}}"],
              "path": ["ajax", "get-statistics-detail-rank"],
              "query": [
                { "key": "sclassID", "value": "{{sclass_id}}" },
                { "key": "season", "value": "2025" }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "07. Assets & Images",
      "item": [
        {
          "name": "Country Image",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/assets/upload/fbcountry/vn.png",
              "host": ["{{base_url}}"],
              "path": ["assets", "upload", "fbcountry", "vn.png"]
            }
          }
        },
        {
          "name": "League Image",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/assets/upload/football/league_match/images/premier-league.png",
              "host": ["{{base_url}}"],
              "path": ["assets", "upload", "football", "league_match", "images", "premier-league.png"]
            }
          }
        },
        {
          "name": "Team Image",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/assets/upload/football/team/images/manutd.png",
              "host": ["{{base_url}}"],
              "path": ["assets", "upload", "football", "team", "images", "manutd.png"]
            }
          }
        }
      ]
    },
    {
      "name": "08. Others",
      "item": [
        {
          "name": "Update Soccer Survey",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/x-www-form-urlencoded" }],
            "body": {
              "mode": "urlencoded",
              "urlencoded": []
            },
            "url": {
              "raw": "{{base_url}}/ajax/updatesoccersurvey",
              "host": ["{{base_url}}"],
              "path": ["ajax", "updatesoccersurvey"]
            }
          }
        },
        {
          "name": "Flash Live Iframe",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/soccer/flashlive?id=12345",
              "host": ["{{base_url}}"],
              "path": ["soccer", "flashlive"],
              "query": [{ "key": "id", "value": "12345" }]
            }
          }
        }
      ]
    }
  ]
}`

```
Modified at 2026-04-06 08:23:32
Previous
ENV Prod
Next
Tổng quan
Built with