// This file is autogenerated, DO NOT EDIT
// aggregations/metrics/min-aggregation.asciidoc:17

[source, python]
----
resp = client.search(
    index="sales",
    size="0",
    aggs={
        "min_price": {
            "min": {
                "field": "price"
            }
        }
    },
)
print(resp)
----
