Players
Look up skill by username or register players your platform manages.
GET /v1/players/{username}
/v1/players/{username}read:playersReturns public profile fields and the partner-safe rating object. Private or unknown usernames return 404 with the same error shape.
Path parameter username: 3–30 characters matching ^[a-z0-9_]{3,30}$ (trimmed and lowercased).
curl -s "https://api.padelrank.me/v1/players/maria_s" \ -H "Authorization: Bearer $PADELRANK_API_KEY"
Example response:
{
"id": "11111111-1111-4111-8111-111111111111",
"username": "maria_s",
"display_name": "Maria Silva",
"country_code": "PT",
"city": "Lisbon",
"rating": {
"padelrank_score": 2840,
"confidence_level": "established",
"confidence_label": "Medium confidence",
"matches_played": 22
},
"created_at": "2026-01-12T10:15:00.000Z"
}padelrank_score— public integer skill score (floored at 0, not capped)confidence_level—provisional,established, orverifiedconfidence_label— display string for your UImatches_played— completed matches counted toward the rating
GET /v1/players/search
/v1/players/searchread:playersPrefix search on public usernames, ordered by username. q is matched literally (at least 2 characters). % and _ are not wildcards. limit defaults to 20 (max 50). offset defaults to 0 (max 1,000).
curl -s "https://api.padelrank.me/v1/players/search?q=mar&limit=10" \ -H "Authorization: Bearer $PADELRANK_API_KEY"
Response: results plus limit, offset, total, and has_more. Each hit includes id, username, display_name, country_code, and city (no rating object on search hits).
POST /v1/players
/v1/playerswrite:playersLive key required. Registering a username that already exists returns 200 with created: false and the existing id, including when two requests race. A new username returns 201 with created: true. There is no delete call.
| Field | Type | Required | Notes |
|---|---|---|---|
username | string | yes | 3–30 chars, a-z0-9_ |
display_name | string | no | 1–80 characters |
country_code | string | no | ISO 3166-1 alpha-2, uppercased |
city | string | no | 1–80 characters |
profile_is_public | boolean | no | Defaults to true |
curl -s -X POST "https://api.padelrank.me/v1/players" \
-H "Authorization: Bearer $PADELRANK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"username": "maria_s",
"display_name": "Maria Silva",
"country_code": "PT"
}'