Book Index Range Builder
Merge duplicate and adjacent page references, preserve subentries, and format print-index locator ranges.
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 /book-index-range-builder/v1/check with an x402 V2 client.
Worked example
Request
{
"entries": [
{
"term": "Tools",
"ranges": [
{
"start": 4,
"end": 5
},
{
"start": 3,
"end": 3
}
]
},
{
"term": "Tools",
"ranges": [
{
"start": 9,
"end": 9
}
]
},
{
"term": "Tools",
"subentry": "Setup",
"ranges": [
{
"start": 3,
"end": 3
}
]
}
]
}Result
{
"entries": [
{
"term": "Tools",
"subentry": null,
"locators": [
"3–5",
"9"
]
},
{
"term": "Tools",
"subentry": "Setup",
"locators": [
"3"
]
}
]
}Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter