Skip to content

Show a player rating

Display a PadelRank score and confidence on a player profile your app already owns.

What you are building

A backend job or request handler that resolves a public PadelRank username, then renders padelrank_score and confidence_label on your UI.

Prerequisites

  • Partner account and API key with read:players
  • A mapping from your user to a PadelRank username or search query
  • Server-side storage for the API key

Code

cURL
curl -s "https://api.padelrank.me/v1/players/maria_s" \
  -H "Authorization: Bearer $PADELRANK_API_KEY"

Example response fragment:

json
{
  "username": "maria_s",
  "display_name": "Maria Silva",
  "rating": {
    "padelrank_score": 2840,
    "confidence_level": "established",
    "confidence_label": "Medium confidence",
    "matches_played": 22
  }
}

How to interpret the data

  • Show padelrank_score as the primary number
  • Use confidence_level for logic and confidence_label for copy
  • matches_played helps users understand how established the rating is

Errors to handle

  • 404 — username unknown or private; do not invent a score
  • 401 / 403 — check key and scope
  • 429 — wait for Retry-After

Full reference: Players · Errors

Guide: show a player rating · PadelRank Developers