Teams
Head-to-head series vs an opponent
Changed onPublic. { record: { wins, losses, ties }, meetings: [{ gameId, date, homeAbbr, awayAbbr, homeScore, awayScore }] } from the perspective of {id}. The 5 most recent decided meetings (live games excluded so the list and the record agree). Empty history is a valid 200. 400 without opponentId, 404 for unknown teams.
get/api/teams/{id}/head-to-head
Request
- Base URLhttps://app.d-sports.org
- Authnone required
Path parameters
idstring required
Query parameters
opponentIdstring required
Response
{ success, data: { record, meetings } }
Changes
- info
endpoint added
- info