API de rating

Lleva el rating de PadelRank en directo a la app, las pantallas o la web de tu club.

Inicio rápido

Autentica cada solicitud con tu clave de API, mediante una cabecera Authorization: Bearer o un parámetro ?key=.

curl "function(){throw Error("Attempted to call RATING_API_BASE() from the server but RATING_API_BASE is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")}/v1/player?username=demoplayer" \
  -H "Authorization: Bearer prk_your_key_here"

Endpoints

URL base: https://us-central1-paddlerank-app.cloudfunctions.net/ratingApi

Respuesta de ejemplo

{
  "player": {
    "username": "demoplayer",
    "name": "Demo Player",
    "rating": 18,
    "reliability": 72,
    "matches": 24,
    "country": "ES",
    "city": "Madrid"
  }
}

Tus claves de API

Crea una clave para empezar. La clave completa se muestra una sola vez, guárdala en un lugar seguro.

Cargando…