{"openapi":"3.0.0","tags":[{"name":"viewer"},{"name":"standing"},{"name":"viewer_standings"}],"info":{"title":"Final Standings","termsOfService":"https:\/\/developer.toornament.com\/terms-guidelines","version":"3.0.0","description":"The Toornament platform connects your website and application with the eSports tournaments around the world.","contact":{"name":"Toornament Developer","url":"https:\/\/developer.toornament.com","email":"contact@toornament.com"}},"servers":[{"url":"https:\/\/api.toornament.com\/viewer\/v2"}],"paths":{"\/standing-items":{"get":{"deprecated":true,"tags":["viewer_standings"],"summary":"Retrieve a list of final standing items.","description":"Returns a list of final standing items.","parameters":[{"$ref":"#\/components\/parameters\/standingItemRange"},{"$ref":"#\/components\/parameters\/tournamentIds"},{"$ref":"#\/components\/parameters\/participantIds"}],"responses":{"206":{"description":"Standing items retrieved.","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/StandingItem"}}}}}},"security":[{"apiKey":[]}]}}},"components":{"securitySchemes":{"apiKey":{"type":"apiKey","name":"X-Api-Key","in":"header"}},"parameters":{"standingItemRange":{"name":"Range","in":"header","required":true,"schema":{"type":"string","example":"items=0-49"},"description":"A range of requested items using the \u0027items\u0027 unit. The size of the range can not exceed 50. (see [Pagination](https:\/\/developer.toornament.com\/v2\/overview\/pagination))"},"tournamentIds":{"name":"tournament_ids","in":"query","required":true,"explode":false,"style":"form","schema":{"type":"array","items":{"type":"string"},"example":"378426939508809728,534138941862841533"},"description":"Only return tournaments for the given list of ids."},"participantIds":{"name":"participant_ids","in":"query","required":false,"explode":false,"style":"form","schema":{"type":"array","items":{"type":"string"},"example":"618965416546776434,618975467354349191"},"description":"One or several participant ids involved in the standings to filter."}},"schemas":{"StandingItem":{"type":"object","required":["id","position","rank","participant","tournament_id"],"properties":{"id":{"description":"A unique identifier for the standing item.","type":"string","example":"378426939508809728"},"position":{"description":"A position used for presentation purposes. It is always unique within the same standing.","type":"integer","example":4},"rank":{"description":"The ranking of the participant in the standing. Multiple participants can share the same rank if they are tied after involving all configured tiebreakers.","type":"integer","nullable":true,"example":3},"participant":{"allOf":[{"$ref":"#\/components\/schemas\/Participant"},{"type":"object","nullable":true}]},"tournament_id":{"description":"The id of the tournament.","type":"string","example":"378426939508809728"}}},"Participant":{"type":"object","required":["id","name","custom_user_identifier","custom_fields"],"properties":{"id":{"description":"The id of the participant.","type":"string","example":"375143143408309123"},"name":{"description":"The name of the participant.","type":"string","maxLength":40,"example":"Jon Snow"},"custom_fields":{"description":"The values of the public custom fields configured in the tournament using the machine names as keys. For more information, please read the [Custom Fields](https:\/\/developer.toornament.com\/v2\/core-concepts\/custom-fields) documentation.","type":"object"}}}}}}