{"uid":"cap_FCspMIqUk4wAlB92Mk_MC","slug":"one-engine-linear-scale-numeric-82b4b599","name":"ONE Engine Linear Scale (Numeric)","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v3/numeric/linear-scale/t9?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["values"],"properties":{"max":{"type":"number"},"min":{"type":"number"},"size":{"type":"integer"},"digits":{"type":"integer"},"factor":{"type":"number"},"offset":{"type":"number"},"values":{"type":"array","description":"Finite numbers, maximum 1000"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.018","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.018/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_J6cwHLrZObStNaj5509Kj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.018","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Applies a linear scaling transformation to an array of numeric values, mapping them to a specified range or scale factor with optional offset and digit rounding.","exampleAgentPrompt":"Scale these numbers [0.5, 3.2, 7.8, 1.1, 9.4] to fit between 0 and 100, rounding each result to 2 decimal places.","exampleUseCases":[{"title":"Normalize ML feature values","prompt":"I have these raw feature values [12.4, 88.0, 34.5, 5.1, 67.3] that I need normalized to a 0-to-1 range with 4 decimal digits of precision before feeding them into my model — can you do that?"},{"title":"Rescale survey scores to percentage","prompt":"Take these survey response scores [1, 3, 2, 5, 4, 3, 1, 5] which are on a 1–5 scale and rescale them to 0–100 so I can display them as percentages, rounded to 1 decimal place."},{"title":"Apply gain and offset to sensor data","prompt":"I've got a list of raw sensor readings [0.01, 0.45, 0.78, 0.23, 0.99] and I need to multiply each by a factor of 5.0 and then add an offset of 2.5 to get the calibrated output values."}],"resultDescription":"Returns a JSON object containing the linearly scaled output array of numbers, with values mapped according to the specified min/max range, factor, offset, and digit rounding parameters.","failureModes":["Input array exceeds 1000 elements — request rejected","Non-finite numbers (NaN, Infinity) in values array cause validation error","Payment failure via x402 protocol returns 402 status with payment details","Missing required 'values' field returns 400 bad request","Conflicting min/max or zero-range parameters may produce undefined behavior"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call linear normalization or scaling operation for arrays up to 1000 numbers without spinning up your own compute. Ideal for autonomous agents that need occasional numeric preprocessing steps — such as normalizing ML inputs, rescaling sensor data, or applying gain/offset corrections — without maintaining a data pipeline. The x402/Base micropayment model makes it cost-effective at $0.018 per call for infrequent or on-demand use cases.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:29.829Z","isFirstParty":false,"canonicalSlug":"one-engine-linear-scale-numeric-dff76814"}