// This file is autogenerated, DO NOT EDIT
// aggregations/bucket/histogram-aggregation.asciidoc:307

[source, python]
----
resp = client.search(
    index="sales",
    size="0",
    aggs={
        "quantity": {
            "histogram": {
                "field": "quantity",
                "interval": 10,
                "missing": 0
            }
        }
    },
)
print(resp)
----
