Skip to content

Instantly share code, notes, and snippets.

@BlakeStevenson
Last active December 15, 2020 02:09
Show Gist options
  • Save BlakeStevenson/8d58c6f370778715aba5c4f768cc3838 to your computer and use it in GitHub Desktop.
Save BlakeStevenson/8d58c6f370778715aba5c4f768cc3838 to your computer and use it in GitHub Desktop.
USTA PlayTennis GraphQL API
https://prod-us-kube.clubspark.io/usta/tournaments/api/graphql
query {
publishedEvents(
tournamentId: "0595eb49-a55f-4de2-8919-caeff6d21fbe"
previewMode: false
) {
id
courtLocation
level {
id
name
category
orderIndex
shortName
__typename
}
formatConfiguration {
ballColour
drawSize
eventFormat
scoreFormat
__typename
}
division {
ageCategory {
minimumAge
maximumAge
todsCode
type
__typename
}
eventType
gender
wheelchairRating
familyType
ratingCategory {
ratingCategoryType
ratingType
value
__typename
}
__typename
}
timings {
startDateTime
__typename
}
teamEventConfiguration {
eventFormat
maximumTeams
__typename
}
pricing {
entryFee {
amount
currency
__typename
}
__typename
}
tournament {
levelConfiguration {
skillLevel
__typename
}
__typename
}
__typename
}
}
https://prod-us-kube.clubspark.io/usta/tournaments/api/graphql
query {
publishedTournament(
id: "0595eb49-a55f-4de2-8919-caeff6d21fbe"
previewMode: false
) {
id
sanctionStatus
name
isPublished
tournamentFee
tournamentFeePayment {
status
tournamentFee
latestChargeTimestamp
__typename
}
organisation {
id
name
__typename
}
registrationRestrictions {
entriesCloseDate
entriesOpenDate
entriesCloseTime
entriesOpenTime
timeZone
entriesCloseDateTime
entriesOpenDateTime
secondsUntilEntriesClose
secondsUntilEntriesOpen
maxEventEntriesPerUser
maxSinglesEntriesPerUser
maxDoublesEntriesPerUser
singleAgeGroupPerPlayer
__typename
}
director {
id
firstName
lastName
emailAddress
phoneNumber
mobileNumber
__typename
}
websiteContent {
logoPath
photoPath
tournamentDetails
aboutTheOrganiser
entryInformation
__typename
}
lastSanctionStatusChange(sanctionStatus: SUBMITTED) {
createdAt
createdByFirstName
createdByLastName
__typename
}
primaryLocation {
id
address1
address2
address3
country
county
latitude
longitude
postcode
town
__typename
}
timings {
startDate
endDate
timeZone
startDateTime
__typename
}
level {
__typename
id
name
category
orderIndex
shortName
}
events {
id
sanctionStatus
courtLocation
level {
id
name
category
orderIndex
shortName
__typename
}
division {
__typename
ageCategory {
__typename
minimumAge
maximumAge
todsCode
type
}
eventType
gender
wheelchairRating
familyType
ratingCategory {
__typename
ratingCategoryType
ratingType
value
}
}
pricing {
entryFee {
amount
currency
__typename
}
__typename
}
surface
__typename
}
__typename
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment