Catalog/data-sports-form

Data

Team recent form API

Resolve a team via TheSportsDB (keyless) and read its last events, then derive current form: the W/D/L sequence, win rate, current streak, goals (points) for/against, and goal difference over the last N games. The value-add is the form derivation from raw results. Differs from data-sports-team (static club info). Answers 'what is Arsenal's recent form', 'how many of their last 5 did they win', 'current win streak', 'goals scored vs conceded lately'.

Price$0.01per request
MethodPOST
Route/v1/data/sports-form
StatusLive
MIME typeapplication/json
Rate limit60/minute
Cache3600s public
datasportsformresultsstreakthesportsdbteamwinrate
API URLhttps://x402.hexl.dev/v1/data/sports-form
Integration docs
Example request
{
  "team": "Arsenal"
}
Example response
{
  "teamId": "133604",
  "team": "Arsenal",
  "games": 3,
  "form": "WWD",
  "wins": 2,
  "draws": 1,
  "losses": 0,
  "winRatePct": 66.7,
  "goalsFor": 6,
  "goalsAgainst": 2,
  "goalDifference": 4,
  "currentStreak": "2W",
  "results": [
    {
      "date": "2024-05-10",
      "opponent": "Spurs",
      "venue": "home",
      "scored": 3,
      "conceded": 1,
      "outcome": "W"
    }
  ]
}
Input schema
{
  "type": "object",
  "required": [
    "team"
  ],
  "properties": {
    "team": {
      "type": "string",
      "examples": [
        "Arsenal"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}