# win.tomo-x.rogaining.getRanking

> Published by [tomo-x.win](https://lexicon.garden/identity/did:plc:qcwvyds5tixmcwkwrg3hxgxd)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qcwvyds5tixmcwkwrg3hxgxd/win.tomo-x.rogaining.getRanking)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qcwvyds5tixmcwkwrg3hxgxd/win.tomo-x.rogaining.getRanking/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qcwvyds5tixmcwkwrg3hxgxd/win.tomo-x.rogaining.getRanking/examples)

## Definitions

### `win.tomo-x.rogaining.getRanking`

**Type**: `query`

Get the leaderboard of an event. Total points are the sum of approved non-goal checkpoint points (each checkpoint counts once per team) and a finish-time bonus of 30, 20, 10, 5, 3, 2, or 1 points for the first through seventh finish positions. Goal finish time is the server indexedAt timestamp; tied finishers share points. Teams without a goal submission receive no finish-time bonus.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `event` | `string` (at-uri) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `ranking` | `array` | Yes |  |

#### Errors

- **EventNotFound**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get the leaderboard of an event. Total points are the sum of approved non-goal checkpoint points (each checkpoint counts once per team) and a finish-time bonus of 30, 20, 10, 5, 3, 2, or 1 points for the first through seventh finish positions. Goal finish time is the server indexedAt timestamp; tied finishers share points. Teams without a goal submission receive no finish-time bonus.",
      "errors": [
        {
          "name": "EventNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "ranking": {
              "items": {
                "ref": "win.tomo-x.rogaining.defs#rankingEntry",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "ranking"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "event": {
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "event"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "win.tomo-x.rogaining.getRanking",
  "lexicon": 1
}
```
