{"uid":"cap_cvsExEtW5Ko1gLt-rUxKx","slug":"one-engine-linear-scale-numeric-dff76814","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/t4?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.0015","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.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EvYeQdm3ekMfZuVhBv59K","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Applies a linear scale transformation to an array of numeric values, mapping them to a new range with optional rounding and offset.","exampleAgentPrompt":"Linearly scale this array of values [0, 25, 50, 75, 100] to a range between 0 and 1, rounded to 4 decimal places.","exampleUseCases":[{"title":"Normalize sensor readings to 0-1","prompt":"I have a list of temperature sensor readings [18.3, 22.1, 30.5, 15.0, 27.8] — can you normalize them all to a 0-to-1 scale, rounded to 3 decimal places?"},{"title":"Rescale ML feature values","prompt":"Rescale these raw model confidence scores [0.1, 0.45, 0.88, 0.23, 0.67] to a range of -1 to 1 with 4 digits of precision, applying a linear scale."},{"title":"Map survey scores to 100-point scale","prompt":"I have survey responses on a 1-5 scale: [1, 2, 3, 4, 5, 3, 2] — can you linearly map them to a 0-to-100 range with no decimal places?"}],"resultDescription":"Returns an object containing the linearly scaled version of the input numeric array, transformed according to the specified min, max, factor, offset, and rounding parameters.","failureModes":["Array exceeds 1000 element limit — request rejected","Non-finite values (NaN, Infinity) in input array cause errors","Missing required 'values' field returns validation error","Conflicting min/max range (min > max) may produce unexpected output","Payment failure via x402 prevents execution"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call linear normalization or rescaling of a numeric array without standing up your own compute. Ideal for agents performing preprocessing steps on small-to-medium datasets (up to 1000 values) where cost-efficiency matters and a simple min-max or factor-offset linear transform suffices.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:07.774Z","isFirstParty":false,"canonicalSlug":"one-engine-linear-scale-numeric-dff76814"}