## get_user_status()


Retrieve the user's Advent of Code progress for the specified year.


Usage

``` python
get_user_status(
    year,
    session=None,
    fmt=OutputFormat.MODEL,
)
```


This includes the star count for each puzzle day, the total stars earned, and whether the user is an Advent of Code supporter (AoC++).


## Parameters


`year: int`  
The event year.

`session: str | None = None`  
A session token. If omitted, `AOC_SESSION` will be used.

`fmt: OutputFormat = OutputFormat.MODEL`  
Output format: [MODEL](OutputFormat.md#elf.OutputFormat.MODEL) for Pydantic models, [JSON](OutputFormat.md#elf.OutputFormat.JSON) for a JSON string, or [TABLE](OutputFormat.md#elf.OutputFormat.TABLE) for a Rich-rendered status table.


## Returns


`YearStatus | str | Table`  
A status model, JSON string, or Rich table depending on `fmt`.


## Raises


`MissingSessionTokenError`  
If no session token can be resolved.

`StatusFetchError`  
If the event page cannot be fetched, authenticated, or parsed.

`ValueError`  
If the year is outside the supported range or the format is unsupported.


## Notes

The total star count comes from the account header on the event page. Use `days` to inspect stars earned on individual puzzles in the event.
