Skip to main content

Endpoints

Use aggregate() for counts, groups, facets, and metrics.

Request body

aggregate() does not accept return_fields and does not return Shot objects.

Example

Example with filters

Response

aggregate() returns an envelope containing the aggregate rows and any migration warnings:
Use response["results"] for the aggregate rows. When the server includes warnings, the SDK also emits them as Python UserWarning messages.