{"uid":"cap_rAby00MIESjBXchaIgNaG","slug":"delx-commerce-map-range-81cf5be0","name":"Delx Commerce Map Range","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/map-range?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{"type":"integer","description":"Input field: value."},"in_max":{"type":"integer","description":"Input field: in max."},"in_min":{"type":"integer","description":"Input field: in min."},"out_max":{"type":"integer","description":"Input field: out max."},"out_min":{"type":"integer","description":"Input field: out min."}}},"responseSchema":{"type":"json","example":{"value":50,"schema":"delx/util-map-range/v1"}},"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_XkBcCcrVMWPAfcWZ_vQD3","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":"Linearly maps an integer value from one numeric range to another (e.g. 0–100 to 0–255), paid per call via USDC on Base or Solana.","exampleAgentPrompt":"Map the value 50 from the input range 0 to 100 to the output range 0 to 255 — paying per result with no signup needed.","exampleUseCases":[{"title":"Sensor reading normalization","prompt":"I have a sensor that outputs values between 0 and 1023, and I need to map the reading of 512 to a percentage scale of 0 to 100. Can you do that conversion for me?"},{"title":"Audio volume scaling","prompt":"My audio controller gives volume as a value between 0 and 127, and I need to display it on a UI slider that goes from 0 to 100. Map volume 96 to the slider scale."},{"title":"Game joystick to motor speed","prompt":"A joystick gives input between -512 and 512, and my motor accepts speeds from 0 to 200. Convert joystick position 256 to the motor speed range."}],"resultDescription":"Returns a JSON object containing the mapped integer value scaled proportionally from the input range to the output range, along with a schema identifier (delx/util-map-range/v1).","failureModes":["Missing required fields (value, in_min, in_max, out_min, out_max) returns an error","Division by zero if in_min equals in_max (degenerate input range)","Non-integer inputs may be rejected or coerced","Payment failure if USDC balance is insufficient or x402 handshake fails"],"whenToPreferThis":"Choose this endpoint when you need a simple, deterministic, pay-per-use linear range mapping computation without setting up any account or subscription. Ideal for agents that occasionally need to rescale numeric values (sensor data, UI ranges, game inputs) and want verifiable, on-chain micropayment billing via x402 on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:44.805Z","isFirstParty":false,"canonicalSlug":"delx-commerce-map-range-81cf5be0"}