Histogram Percentile Bounds
Locate nearest-rank percentiles in cumulative nonnegative histogram buckets and return their exact bucket bounds.
Custom requests cost 0.04 USDC on Base.
Download example JSON · OpenAPI · Source and usage
Pay with a browser wallet · Open example in checkout
POST a JSON request to /histogram-percentile-bounds/v1/check with an x402 V2 client.
Worked example
Request
{
"buckets": [
{
"upper": 10,
"cumulative_count": 4
},
{
"upper": 25,
"cumulative_count": 9
},
{
"upper": null,
"cumulative_count": 10
}
],
"percentile_bps": [
5000,
9000,
9900
]
}Result
{
"samples": 10,
"percentiles": [
{
"percentile_bps": 5000,
"rank": 5,
"lower": 10,
"upper": 25
},
{
"percentile_bps": 9000,
"rank": 9,
"lower": 10,
"upper": 25
},
{
"percentile_bps": 9900,
"rank": 10,
"lower": 25,
"upper": null
}
]
}Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter