Event Standings

In this example, we will query for the standings of the Melee Singles event at Shine 2018. To be specific, we will query for just the standing and name of the top 3 placements (note the variables!)

Example #1 (basic)

  • Request
  • Response
query EventStandings($eventId: ID!, $page: Int!, $perPage: Int!) {
event(id: $eventId) {
id
name
standings(query: {
perPage: $perPage,
page: $page
}){
nodes {
placement
entrant {
id
name
}
}
}
}
},
{
"eventId": 78790,
"page": 1,
"perPage": 3
}

You can choose your own names for these variables! In the query above...

  • eventId is the ID of the event we're getting standings for
  • page is the page of standings we have specified to retrieve (page 1 starts with 1st place)
  • perPage is the number of standings we are retrieving on that page

Don't forget to explore schema, and test queries, in the API Explorer!

Example #2 (Race Format)

Race format is a bit of an exception to standings queries at the moment. If you don't know what race format is, then don't worry about this!

  • Request
  • Response
query EventStandings($eventId: ID!) {
event(id: $eventId) {
id
name
phaseGroups {
id
seeds(query: {page: 1}) {
nodes {
id
standings(containerType: "groups") {
id
metadata
}
}
}
}
}
},
{
"eventId": 249917
}