// This file is autogenerated, DO NOT EDIT
// aggregations.asciidoc:287

[source, python]
----
resp = client.search(
    index="my-index-000001",
    typed_keys=True,
    aggs={
        "my-agg-name": {
            "histogram": {
                "field": "my-field",
                "interval": 1000
            }
        }
    },
)
print(resp)
----
