Skip to content

Balance a foursome

Compare one proposed 2v2 pairing for four players you already know. This does not create a booking or a match.

Prerequisites

  • Four distinct public player UUIDs (from your earlier player lookups)
  • API key with read:intelligence (test keys work)

Code

cURL
curl -s -X POST "https://api.padelrank.me/v1/intelligence/predict" \
  -H "Authorization: Bearer $PADELRANK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "player_ids": [
      "11111111-1111-4111-8111-111111111111",
      "22222222-2222-4222-8222-222222222222",
      "33333333-3333-4333-8333-333333333333",
      "44444444-4444-4444-8444-444444444444"
    ],
    "format": "2v2"
  }'
json
{
  "draw_probability": 0.11,
  "balance_rating": "medium",
  "team_a": ["…", "…"],
  "team_b": ["…", "…"]
}

How to interpret the result

  • Compare draw_probability across alternative pairings of the same four players
  • high / medium / low map to thresholds 0.12 and 0.07
  • A higher value is the more even of the pairings you compared — not a tie guarantee

Errors

  • 422 if ids are not four distinct public players
  • Unknown or private players surface as validation / unknown_or_private_player

Reference: Predict

Guide: balance a foursome · PadelRank Developers