PlayerRanking

Retrieves the collection of PlayerRanking resources.

Retrieves the collection of PlayerRanking resources.

get/teams/{id}/player_rankings

Request

  • Base URL: https://api.spash.com
  • URL: https://api.spash.com/teams/{id}/player_rankings
  • Auth: one of:
    • API key in header Authorization
    • HTTP bearer

Path parameters

idstring required

PlayerRanking identifier

Query parameters

pageinteger

The collection page number

itemsPerPageinteger

The number of items per page

paginationboolean

Enable or disable pagination

createdAt[before]string
createdAt[strictly_before]string
createdAt[after]string
createdAt[strictly_after]string
updatedAt[before]string
updatedAt[strictly_before]string
updatedAt[after]string
updatedAt[strictly_after]string
order[position]'asc' | 'desc'
order[score]'asc' | 'desc'
order[createdAt]'asc' | 'desc'
order[updatedAt]'asc' | 'desc'
rankingTypestring
rankingType[]string[]
team.idinteger
team.id[]integer[]
competition.idinteger
competition.id[]integer[]
player.idinteger
player.id[]integer[]
sportCenter.idinteger
sportCenter.id[]integer[]
country.idinteger
country.id[]integer[]

Response

PlayerRanking collection

idinteger
rankingType'goal' | 'assist' | 'attendance' | 'own_goal' | 'hat_trick' | 'last_minutes_winners'
positioninteger
scorenumber
createdAtstring date-time
updatedAtstring date-time

Example response

[
  {
    "competition": {
      "sessionDuration": 3000,
      "breakDuration": 300,
      "status": "not_played",
      "createdAt": "CURRENT_TIMESTAMP",
      "updatedAt": "CURRENT_TIMESTAMP"
    },
    "player": {
      "createdAt": "CURRENT_TIMESTAMP",
      "updatedAt": "CURRENT_TIMESTAMP"
    },
    "team": {
      "primaryColor": "#FFFFFF",
      "secondaryColor": "#FFFFFF",
      "createdAt": "CURRENT_TIMESTAMP",
      "updatedAt": "CURRENT_TIMESTAMP"
    },
    "sportCenter": {
      "coordinates": [
        0,
        0
      ],
      "visible": true,
      "timeZone": "Europe/Paris",
      "durationChoices": [
        3600,
        5400,
        7200
      ],
      "language": "en",
      "distanceUnite": "km",
      "country": {
        "currency": "EUR"
      },
      "tags": [
        {
          "createdAt": "CURRENT_TIMESTAMP",
          "updatedAt": "CURRENT_TIMESTAMP"
        }
      ],
      "createdAt": "CURRENT_TIMESTAMP",
      "updatedAt": "CURRENT_TIMESTAMP"
    },
    "country": {
      "currency": "EUR"
    },
    "createdAt": "CURRENT_TIMESTAMP",
    "updatedAt": "CURRENT_TIMESTAMP"
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.