Skip to content

Years

New in v1.0

The years endpoint has full support, including query validation.

Endpoint Function Client method Filters class
"years" years Client.years YearsFilters

For more information on available filters and functionality, see the Fount documentation for the years endpoint.

Usage

Using top-level functions
import bavapi

result = bavapi.years("TOKEN", year=2023)
Using Client asynchronously
import bavapi

async with bavapi.Client("TOKEN") as bav:
    result = await bav.years(year=2023)

Available filters in function calls

These filters are available directly within the function/method:

  • Positional filters: year
  • Keyword filters: year_id

For other filters, passing a YearsFilters instance to the filters parameter is required.