Time interval merger — sort, deduplicate, and combine overlapping or adjacent RFC 3339 dat
Time interval merger — sort, deduplicate, and combine overlapping or adjacent RFC 3339 date-time ranges.
5000 (raw units)
price
2
calls / 30d
1
unique payers
2026-09-15
updated
Provider
schedule-tools.use.x402atlas.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:137",
"payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
"asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"amount": "5000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:42161",
"payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
"asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"amount": "5000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"category": "calendar",
"info": {
"input": {
"body": {
"intervals": [
{
"end": "2024-06-03T10:30:00Z",
"start": "2024-06-03T09:00:00Z"
},
{
"end": "2024-06-03T11:00:00Z",
"start": "2024-06-03T10:00:00Z"
},
{
"end": "2024-06-03T12:00:00Z",
"start": "2024-06-03T11:00:00Z"
}
],
"merge_adjacent": true
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"algorithm_version": "schedule-v1",
"input_count": 3,
"intervals": [
{
"end": "2024-06-03T12:00:00Z",
"start": "2024-06-03T09:00:00Z"
}
],
"merge_adjacent": true,
"operation": "intervals-merge",
"output_count": 1,
"total_covered_seconds": 10800,
"warnings": []
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"intervals": {
"description": "Intervals to sort and merge; duplicates are allowed",
"items": {
"additionalProperties": false,
"description": "One RFC3339 whole-second half-open interval [start,end)",
"properties": {
"end": {
"description": "Exclusive RFC3339 instant after start",
"format": "date-time",
"type": "string"
},
"start": {
"description": "Inclusive RFC3339 instant",
"format": "date-time",
"type": "string"
}
},
"required": [
"start",
"end"
],
"type": "object"
},
"maxItems": 1000,
"minItems": 0,
"type": "array"
},
"merge_adjacent": {
"default": true,
"description": "Merge intervals that touch exactly as well as intervals that overlap",
"type": "boolean"
}
},
"required": [
"intervals"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"additionalProperties": false,
"properties": {
"_atlas": {
"additionalProperties": false,
"description": "Atlas documentation and related-route metadata added after deployment",
"properties": {
"docs": {
"description": "Documentation URL for this bridge",
"format": "uri",
"maxLength": 512,
"type": "string"
},
"related": {
"description": "Bounded related Atlas routes",
"items": {
"additionalProperties": false,
"description": "One related Atlas route",
"properties": {
"bridge": {
"description": "Related bridge name",
"maxLength": 64,
"type": "string"
},
"docs": {
"description": "Related bridge documentation URL",
"format": "uri",
"maxLength": 512,
"type": "string"
},
"summary": {
"description": "Short capability summary",
"maxLength": 256,
"type": "string"
},
"url": {
"description": "Related route URL",
"format": "uri",
"maxLength": 512,
"type": "string"
}
},
"required": [
"bridge",
"url",
"docs",
"summary"
],
"type": "object"
},
"maxItems": 3,
"type": "array"
}
},
"required": [
"docs"
],
"type": "object"
},
"algorithm_version": {
"const": "schedule-v1",
"description": "Pinned interval merge contract",
"type": "string"
},
"input_count": {
"description": "Number of input intervals",
"maximum": 1000,
"minimum": 0,
"type": "integer"
},
"intervals": {
"description": "Sorted maximal UTC intervals; [] when input is empty",
"items": {
"additionalProperties": false,
"description": "One normalized UTC half-open interval",
"properties": {
"end": {
"description": "Exclusive RFC3339 instant after start",
"format": "date-time",
"type": "string"
},
"start": {
"description": "Inclusive RFC3339 instant",
"format": "date-time",
"type": "string"
}
},
"required": [
"start",
"end"
],
"type": "object"
},
"maxItems": 1000,
"minItems": 0,
"type": "array"
},
"merge_adjacent": {
"description": "Applied adjacency policy",
"type": "boolean"
},
"operation": {
"const": "intervals-merge",
"description": "Stable route operation",
"type": "string"
},
"output_count": {
"description": "Number of maximal output intervals",
"maximum": 1000,
"minimum": 0,
"type": "integer"
},
"total_covered_seconds": {
"description": "Checked sum of output interval durations in seconds",
"minimum": 0,
"type": "integer"
},
"warnings": {
"description": "Always empty for deterministic merging",
"items": {
"description": "Warning",
"type": "string"
},
"maxItems": 0,
"type": "array"
}
},
"required": [
"operation",
"algorithm_version",
"merge_adjacent",
"input_count",
"output_count",
"intervals",
"total_covered_seconds",
"warnings"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
},
"tags": [
"merge-intervals",
"interval-normalization",
"calendar",
"scheduling",
"deduplicate-time-ranges"
]
}
}Use it
curl
curl "https://schedule-tools.use.x402atlas.com/intervals-merge" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://schedule-tools.use.x402atlas.com/intervals-merge");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://schedule-tools.use.x402atlas.com/intervals-merge")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/4485.json, and this resource appears in /discovery/resources and /discovery/search.