Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Page Tree Search

Overview

USTA provides limited access to play history

Info

Scores are formated in the following way:

7, # Side 1 Games
6, # Side 2 Games
10, # Side 1 Tie Break Score
6 # Side 2 Tie Break Score

API

Endpoint

Code Block
GET https://servicesstage-api-ustaconnect.usta.com/v1/dataexchange//v1/ustaTerms/redirectUrlapi-public/playhistory

Body

No body is required for this call.

Code BlockNo body for this call

A USTA uaid and date range are required.

Code Block
{
    "selection": {
        "uaid": "1076966",
        "fromDate": "2020-07-09",
        "toDate": "2023-07-10"
    },
    "pagination": {
        "currentPage": 1,
        "pageSize": 5
    }
}

Return

The deep link to the most current USTA terms and conditions on http://usta.com . The calling application should redirect to this ungated landing page

Once the participant consents, there is no need to present the terms again.

Code Block
{
    "uaid": "1076966",
    "player_name": "Thrxxx Laxxx",
    "redirectUrlevents": [
        {
            "eventId": "1009414975",
            "flightName": "Adult 40&Over",
            "level": "0.0",
            "name": "2023 Adult 40 & Over 3.0 - 5.0 - Weekend/5.0 Women (Open)",
            "displayName": "1009414975",
            "startDate": "2023-01-27",
            "endDate": "2023-05-07",
            "matchFormat": "SINGLES",
            "matchUrl": "https://stagetennislink.staging.usta.com/enLeagues/home/about-usta/who-we-are/national/usta-terms-of-use.html"Main/StatsAndStandings.aspx?t=R-17&search=1009414975",
            "url": "https://tennislink.staging.usta.com/Leagues/Main/StatsAndStandings.aspx?t=R-17&search=1009414975#&&s=4%7C%7C0%7C%7C90458%7C%7C2023",
            "matchDate": "2023-04-02",
            "subFlightName": "5.0 Women (Open)",
            "eventType": "LEAGUE",
            "facility": {
                "name": "Overland Park Racquet Club",
                "addressLine1": "6800 W 91st St",
                "addressLine2": "",
                "city": "Overland Park",
                "state": "KS",
                "zipcode": "66212"
            },
            "matchStatus": "Defaulted",
            "matchStatusCode": "DEF",
            "itf_matchup_id": "",
            "captain": "Jackie Gehrke",
            "coCaptain": "",
            "rounds": [
                {
                    "eventId": "1009414975",
                    "positionOfPlay": "1S",
                    "positionOfPlayDisplay": "1S",
                    "playerName": "Thrxxx Laxxx",
                    "teamName": "Gehrke, Jackie",
                    "teamCaptain": "Jackie Gehrke",
                    "teamCoCaptain": "",
                    "opponentTeamName": "Fabrizius, Deborah",
                    "matchStatus": "Defaulted",
                    "matchStatusCode": "DEF",
                    "outcome": "W",
                    "ustaScore": [
                        [
                            6,
                            0,
                            0,
                            0
                        ],
                        [
                            6,
                            0,
                            0,
                            0
                        ]
                    ],
                    "opponentsName": "",
                    "opponents": []
                }
            ]
        }
    ],
    "pagination": {
        "currentPage": 1,
        "pageSize": 1,
        "totalPages": 33,
        "totalResults": 33
    }
}

Sample Curl

You must first retrieve an access token using Bound or Unbound method. See Cognito Client Integration Guide for more on how to request a token.

The following is a sample curl illustrating the contribution of a doubles matchup.

Where:

--header 'Authorization: Bearer eyJraW...

specifies the token that you retrieved using the https://stage-account.usta.com/oauth2/tokenendpoint.

Code Block
curl --location --request GET 'https://stage-api-servicesustaconnect.usta.com/v1/dataexchange/ustaTerms/redirectUrlapi-public/playhistory' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJraW...' \
--header 'Cookie: JSESSIONID=A18BF05059108055D15F38262123C04D' \
--data-raw ''

Panel
bgColor#FFFFFF

On This Page:

Table of Contents