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

[source, python]
----
resp = client.search(
    index="sales",
    size="0",
    aggs={
        "prices": {
            "histogram": {
                "field": "price",
                "interval": 50,
                "min_doc_count": 1
            }
        }
    },
)
print(resp)
----
