{
  "openapi": "3.0.1",
  "info": {
    "title": "Pickleball API",
    "description": "An enterprise-grade Apify Actor that delivers unified, real-time pickleball data from across the official pickleball ecosystem — players, rankings, results, tournaments, leagues, and clubs — through a single, consistent interface. RESTAPI https://rapidapi.com/matepapava123/api/pickleball-live-api",
    "version": "1.0",
    "x-build-id": "PTI6vm74YDgQ8EMbY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fingolfin~pickleball-data-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fingolfin-pickleball-data-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/fingolfin~pickleball-data-api/runs": {
      "post": {
        "operationId": "runs-sync-fingolfin-pickleball-data-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/fingolfin~pickleball-data-api/run-sync": {
      "post": {
        "operationId": "run-sync-fingolfin-pickleball-data-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "action"
        ],
        "properties": {
          "action": {
            "title": "Action",
            "enum": [
              "get_rankings",
              "get_rankings_full",
              "search_players",
              "get_player_profile",
              "get_player_filters",
              "get_results_on_date",
              "get_results_matchup",
              "get_results_h2h",
              "get_results_tiebreaker",
              "search_tournaments",
              "get_tournament_detail",
              "search_leagues",
              "get_league_game_days",
              "get_league_matches",
              "get_club_detail",
              "get_club_members",
              "get_club_tournaments",
              "get_club_leagues"
            ],
            "type": "string",
            "description": "Select the action to perform."
          },
          "discipline": {
            "title": "Discipline",
            "enum": [
              "WS",
              "MS",
              "WD",
              "MD",
              "MX",
              "WX"
            ],
            "type": "string",
            "description": "REQUIRED for get_rankings. Discipline code."
          },
          "search": {
            "title": "Search (Last Name)",
            "type": "string",
            "description": "OPTIONAL for search_players. Filter by player last name."
          },
          "age": {
            "title": "Age Range",
            "enum": [
              "",
              "0-17",
              "18-29",
              "30-39",
              "40-49",
              "50-59",
              "60-69",
              "70+"
            ],
            "type": "string",
            "description": "OPTIONAL for search_players. Filter by age range."
          },
          "gender": {
            "title": "Gender",
            "enum": [
              "",
              "M",
              "F"
            ],
            "type": "string",
            "description": "OPTIONAL for search_players. Filter by gender."
          },
          "doubles_skill": {
            "title": "Doubles Skill (DUPR)",
            "type": "string",
            "description": "OPTIONAL for search_players. Doubles skill range, e.g. '3.5-4.0'. Scale 0–8."
          },
          "singles_skill": {
            "title": "Singles Skill (DUPR)",
            "type": "string",
            "description": "OPTIONAL for search_players. Singles skill range, e.g. '4.0-4.5'. Scale 0–8."
          },
          "wpr_badge": {
            "title": "WPR Badge",
            "enum": [
              "",
              "TOUR PRO",
              "LEGEND",
              "ICON",
              "Top 1",
              "Top 5",
              "Top 10",
              "Top 25",
              "Top 50",
              "Top 100",
              "Top 200",
              "Top 500",
              "Top 1000"
            ],
            "type": "string",
            "description": "OPTIONAL for search_players. Filter by World Pickleball Rating badge tier."
          },
          "country_id": {
            "title": "Country ID",
            "type": "string",
            "description": "OPTIONAL for search_players. Country ID to filter by location."
          },
          "state_id": {
            "title": "State ID",
            "type": "string",
            "description": "OPTIONAL for search_players. State/province ID."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "OPTIONAL for search_players. City name."
          },
          "slug": {
            "title": "Slug",
            "type": "string",
            "description": "REQUIRED for get_player_profile, get_tournament_detail, get_club_detail, get_club_members, get_club_tournaments, get_club_leagues. URL slug identifier."
          },
          "date": {
            "title": "Date",
            "type": "string",
            "description": "REQUIRED for get_results_on_date. Date in YYYY-MM-DD format."
          },
          "matchup_id": {
            "title": "Matchup ID",
            "type": "string",
            "description": "REQUIRED for get_results_matchup. Matchup identifier."
          },
          "team_ids": {
            "title": "Team IDs (comma-separated)",
            "type": "string",
            "description": "REQUIRED for get_results_h2h. Two team IDs separated by a comma, e.g. '123,456'."
          },
          "match_id": {
            "title": "Match ID",
            "type": "string",
            "description": "REQUIRED for get_results_tiebreaker. Match identifier."
          },
          "game_number": {
            "title": "Game Number",
            "minimum": 1,
            "type": "integer",
            "description": "REQUIRED for get_results_tiebreaker. Game number within the match.",
            "default": 1
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "OPTIONAL for search_tournaments, search_leagues. Search keyword."
          },
          "tournament_filter": {
            "title": "Tournament Filter",
            "enum": [
              "featured",
              "upcoming",
              "past",
              "all"
            ],
            "type": "string",
            "description": "OPTIONAL for search_tournaments. Tournament status filter."
          },
          "league_status": {
            "title": "League Status",
            "enum": [
              "active",
              "past",
              "all"
            ],
            "type": "string",
            "description": "OPTIONAL for search_leagues. League status filter."
          },
          "session_id": {
            "title": "Session ID",
            "type": "string",
            "description": "REQUIRED for get_league_game_days, get_league_matches. League session identifier."
          },
          "match_date_id": {
            "title": "Match Date ID",
            "type": "string",
            "description": "REQUIRED for get_league_matches. Match date identifier."
          },
          "org_uuid": {
            "title": "Organization UUID",
            "type": "string",
            "description": "REQUIRED for get_club_tournaments, get_club_leagues. Club organization UUID (from get_club_detail)."
          },
          "member_search": {
            "title": "Member Search",
            "type": "string",
            "description": "OPTIONAL for get_club_members. Filter club members by name."
          },
          "page": {
            "title": "Page Number",
            "minimum": 1,
            "type": "integer",
            "description": "OPTIONAL. Page number for paginated results (default: 1).",
            "default": 1
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}