Regions
info
Read more in the API documentation for the regions
endpoint.
The regions
endpoint has full support, including query validation.
Endpoint | Function | Client method | Filters class |
---|---|---|---|
"regions" | regions | Client.regions | RegionsFilters |
Usage
- Sync
- Async
Using top-level functions
import bavapi
result = bavapi.regions("TOKEN", name="Europe")
Using Client asynchronously
import bavapi
async with bavapi.Client("TOKEN") as bav:
result = await bav.regions(name="Europe")
Available filters in function calls
These filters are available directly within the function/method:
- Positional filters:
name
- Keyword filters:
region_id
For other filters, passing an RegionsFilters
instance to the filters
parameter is required.