APIAPI v2V2 endpoint referenceRankings
/rankings/team-cards
Rank teams by cards for, against and per match
Rank teams by cards for, against and per match
Query Parameters
competitionId*string
Competition to rank within. Required: a card board spanning every competition is not a query the API will serve.
Match
^[1-9][0-9]*$seasonId?string
Restrict the sample to one season of that competition
Match
^[1-9][0-9]*$sort?string
Ordering; defaults to -cardsForPerGame. Rate orderings are descending only, so that entries with no data — whose rates are null — sort last rather than first.
Value in
- "-cardsAgainstPerGame"
- "-cardsForPerGame"
- "-games"
- "-matchCardsPerGame"
- "-matchOver35Percentage"
- "-matchOver45Percentage"
- "name"
limit?integer
Maximum resources to return; defaults to 25
Range
1 <= value <= 100Default
25after?string
Opaque cursor for the next page
before?string
Opaque cursor for the previous page
Response Body
application/json
application/problem+json
application/problem+json
curl -X GET "https://example.com/rankings/team-cards?competitionId=string"{ "data": [ { "cardsAgainst": { "over15Percentage": 0, "perGame": 0 }, "cardsFor": { "over15Percentage": 0, "perGame": 0 }, "countrySlug": "string", "games": 0, "match": { "cardsPerGame": 0, "over35Percentage": 0, "over45Percentage": 0 }, "team": { "id": "string", "name": "string", "slug": "string" } } ], "links": { "next": "string", "previous": "string", "self": "string" }, "page": { "hasNext": true, "hasPrevious": true, "limit": 0, "nextCursor": "string", "previousCursor": "string" }}