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