# club.hellyeah.getLeaderboard

> Active runs in one mode, longest first; ties go to the earlier start.

- Kind: query
- Authority: hellyeah.club
- Lexicon: 1
- Published by [hellyeah.club](https://lexicon.garden/identity/did:plc:ce2gpmv3q5a4xlnpt63e4nsn), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:ce2gpmv3q5a4xlnpt63e4nsn/club.hellyeah.getLeaderboard)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:ce2gpmv3q5a4xlnpt63e4nsn/club.hellyeah.getLeaderboard/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:ce2gpmv3q5a4xlnpt63e4nsn/club.hellyeah.getLeaderboard/analytics)

## Query (`club.hellyeah.getLeaderboard`)

Type: query · GET

### Parameters (query string)

- `cursor` (string)
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50
- `mode` (string, required)
  - Constraints: knownValues: strikes | hardcore

### Output (application/json)

- `cursor` (string)
- `entries` (array, required)
  - `items` (ref)
    - Reference: `club.hellyeah.defs#leaderboardEntry`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Active runs in one mode, longest first; ties go to the earlier start.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "entries": {
              "items": {
                "ref": "club.hellyeah.defs#leaderboardEntry",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "entries"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "mode": {
            "knownValues": [
              "strikes",
              "hardcore"
            ],
            "type": "string"
          }
        },
        "required": [
          "mode"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "club.hellyeah.getLeaderboard",
  "lexicon": 1
}
```
