TheSportsDb

TheSportsDB Service provides access to sports stats using TheSportsDB API. For more information, check out https://www.thesportsdb.com/documentation.

RPCS

TheSportsDb.getTeamInfo(teamName: String, sport: String?)

Get basic info of a team.

Arguments:

  • teamName: String (String) - Team name to search for

  • sport: String? (String) - Sport name to filter matches (optional)

Returns: Object (Object) - structured data with the matched team info

TheSportsDb.recentTeamStats(teamName: String, sport: String?)

Get the most recent completed game stats of a team.

Arguments:

  • teamName: String (String) - Team name to search for

  • sport: String? (String) - Sport name to filter matches (optional)

Returns: Object (Object) - structured data with the most recent game stats