/cricket/teams/{id}Get a team
Soccer teams matched to a Wikidata club also have coach: the current head coach (Wikidata P286: the statement with a start date and no end), the appointment date and the won, drawn and lost count of the team's matches we hold since then (friendlies left out), record_from (the first of those matches) and record_complete (false when our match history of the team starts after the appointment, so the record covers only part of the tenure), with the attribution (Wikidata, CC0) in data and meta. coach_name stays the provider's. Soccer teams also have squad_value_eur: the current squad's summed market value (the data provider player profiles), over players_with_value of squad_players; league-wide in /soccer/leagues/{id}/market-values. The coach with the previous coach and previous club: /soccer/teams/{id}/coach. Every team with a rated result also has rating: its Elo-style rating from our stored results (docs/ratings.md) with rank of of among the active teams of its league, peak, matches_rated, rated_from (provisional below 10 matches) and history, its last 10 rated matches; the lists are /{sport}/ratings.
Parameters
idinteger · pathrequiredTeam ID
Response
JSON with success, the result in data, and where the endpoint pages its results meta.
dataobjectabbreviationstringattributionstringcoachobjectCoach: the current head coach from Wikidata (soccer; only on /teams/{id}), with the attribution.
appointedstringYYYY-MM-DD
drawnintegerlostintegernamestringplayedintegerwith appointed only
previous_clubobjectprevious_coachobjectThe team's coach before this one and this coach's own team before (a club or national team), from Wikidata; absent when not known.
record_completebooleanfalse: our history starts after the appointment, record partial
record_fromstringfirst match counted, YYYY-MM-DD
rolestringe.g. caretaker
sourcestringWikidata, or the data provider (name only)
updated_atstringwikidata_idstringwonintegercoach_idintegercoach_namestringcountrystringfoundedstringidintegeris_nationalbooleanis_womenbooleanleague_idsarray of integerleagues played in during the last 120 days
logo_urlstringLogoURL: the team's logo on this API (image licence not included).
namestringplayers_with_valueintegerprofileobjectProfile: soccer profile sections as sent (transfers, trophies, sidelined, detailed_stats); only on /teams/{id}.
ratingobjectRating: the team's Elo-style rating with its rank in its league and its last 10 rated matches (only on /teams/{id}; docs/ratings.md).
historyarray of object/teams/{id}: the last 10 rated matches, latest first
last_match_datestringleague_idintegerleague_namestringmatches_ratedintegerofintegerpeaknumberprovisionalbooleanrankintegerrated_fromstringratingnumberteam_idintegerteam_namestringupdated_atstringsportstringsquad_playersintegersquad_value_eurintegerSquad market value (soccer, only on /teams/{id}): the sum of the current squad's market values, over players_with_value of squad_players.
updated_atstringvenue_addressstringvenue_capacityintegervenue_citystringvenue_idintegervenue_namestringvenue_surfacestringerrorobjectcodestringmessagestringmetaobjectattributionstringAttribution a data source's licence asks for (Cricsheet's history).
limitintegeroffsetintegertotalintegersuccessboolean
Errors
| Status | Code | When |
|---|---|---|
| 402 | x402 offers | No key and no valid payment: the body lists what to pay. Only a 200 answer is charged. |
| 404 | NOT_FOUND | No record with that id. |
All errors have the shape described in Errors and limits.
Generated from the OpenAPI file, version 1.0. See it as JSON