Skip to content

Countries

New in v1.0

The countries endpoint has full support, including query validation.

Endpoint Function Client method Filters class
"countries" countries Client.countries CountriesFilters

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

Usage

Using top-level functions
import bavapi

result = bavapi.countries("TOKEN", name="Mexico")
Using Client asynchronously
import bavapi

async with bavapi.Client("TOKEN") as bav:
    result = await bav.countries(name="Mexico")

Available filters in function calls

These filters are available directly within the function/method:

  • Positional filters: name, active, regions, with_studies
  • Keyword filters: country_id, with_recent_studies

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