# org.lichess.puzzle.getDaily

> Published by [pds.dad](https://lexicon.garden/identity/did:plc:rnpkyqnmsw4ipey6eotbdnnf)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:rnpkyqnmsw4ipey6eotbdnnf/org.lichess.puzzle.getDaily)
- [Documentation](https://lexicon.garden/lexicon/did:plc:rnpkyqnmsw4ipey6eotbdnnf/org.lichess.puzzle.getDaily/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:rnpkyqnmsw4ipey6eotbdnnf/org.lichess.puzzle.getDaily/examples)

## Definitions

### `org.lichess.puzzle.getDaily`

**Type**: `query`

Get the puzzle of the day: one shared puzzle per UTC day, selected to target the current average rating of established players and to favor popular, frequently-played puzzles. The pick is stable for the whole UTC day and never repeats a previous day's puzzle.

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `day` | `string` | Yes | the UTC day the puzzle belongs to, as YYYY-MM-DD. |
| `puzzle` | `ref` → `org.lichess.puzzle.defs#puzzleView` | Yes |  |

#### Errors

- **NoDailyPuzzle**: No puzzle could be selected for the day.

## Raw Schema

```json
{
  "id": "org.lichess.puzzle.getDaily",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "NoDailyPuzzle",
          "description": "No puzzle could be selected for the day."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "day",
            "puzzle"
          ],
          "properties": {
            "day": {
              "type": "string",
              "description": "the UTC day the puzzle belongs to, as YYYY-MM-DD."
            },
            "puzzle": {
              "ref": "org.lichess.puzzle.defs#puzzleView",
              "type": "ref"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Get the puzzle of the day: one shared puzzle per UTC day, selected to target the current average rating of established players and to favor popular, frequently-played puzzles. The pick is stable for the whole UTC day and never repeats a previous day's puzzle."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
