{"uid":"cap_p01AaXhwPPAt7y1ekHBeE","slug":"range-header-parse-3e21a885","name":"Range Header Parse","description":"Range Header Parse: Range Header Parse parses one bounded HTTP byte range into start and end offsets from bounded caller-supplied values without an external provider. Call Range Header Parse before accepting, caching, redirecting, or retrying a caller-supplied web response. Returns normalized web evidence, the computed finding, and an explicit pass or advisory status for Range Header Parse as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memory-only…","url":"https://api.delx.ai/api/v1/x402/range-header-parse?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"header":{"type":"string","maxLength":8192,"description":"Header supplied to Range Header Parse; used only for this bounded calculation and processed in memory without retention."},"resource_size":{"type":"integer","description":"Resource Size supplied to Range Header Parse; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"end":499,"start":0,"length":500,"satisfiable":true},"schema":"delx/util-range-header-parse/v1","status":"pass","evidence":{"retained":false,"input_sha256":"b8cf82c3de152f6483e2bcdb69d68b8857f068e1b199d6c5fe801bbb24ff9086","external_calls":0},"operation":"web_reliability:range_header_parse"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ph2ZVvIN8A1Sqo_GZOYvz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses a single bounded HTTP Range header into normalized start and end byte offsets given a known resource size, returning a deterministic pass/advisory status.","exampleAgentPrompt":"Parse the HTTP Range header 'bytes=0-1023' for a resource that is 5242880 bytes total, and give me the normalized start and end byte offsets with a pass or advisory status.","exampleUseCases":[{"title":"Validate partial content request before serving","prompt":"I got a Range header value of 'bytes=512-2047' from a client request for a file that's 8192 bytes long — can you parse that into start and end offsets and tell me if it's a valid range?"},{"title":"Cache layer range normalization","prompt":"Before I cache this response, parse 'bytes=-500' against a 10000-byte resource so I know the exact start and end offsets to store."},{"title":"Retry logic for partial download","prompt":"An agent is retrying a partial download with Range header 'bytes=4096-8191' on a 16384-byte resource — parse that range and confirm whether the offsets are in bounds before we retry."}],"resultDescription":"Returns versioned deterministic JSON containing the normalized byte range (start and end offsets), the original web evidence (the input header and resource size), the computed finding, and an explicit pass or advisory status indicating whether the parsed range is valid and within bounds.","failureModes":["Malformed Range header string produces an advisory/error status rather than a hard failure","Resource size of zero or negative may result in advisory status","Range values exceeding the resource size return out-of-bounds advisory","Unsupported range unit (non-bytes) may not be parsed correctly","Missing required fields (header or resource_size) returns a validation error","Payment failure via x402 prevents the call from completing"],"whenToPreferThis":"Choose this endpoint when you need a stateless, deterministic, pay-per-call HTTP Range header parser with no external dependencies — especially useful in agentic pipelines that must validate or normalize byte ranges before accepting, caching, redirecting, or retrying partial content responses. Prefer it over custom parsing logic when you need a normalized, versioned JSON result with explicit pass/advisory status for auditability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T07:15:25.822Z","isFirstParty":false,"canonicalSlug":"range-header-parse-3e21a885"}