{"uid":"cap_M0SzESsUc5tU7mK0TVnyh","slug":"one-engine-linear-scale-numeric-6ef11744","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/t1?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.0005","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.0005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zw2g0aduFoqa8YyurAqqW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0005","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 numbers, mapping values to a target range or scale with optional offset, factor, rounding, and size control.","exampleAgentPrompt":"Scale these sensor readings [12, 45, 78, 33, 90] to a 0–100 range with 2 decimal places of precision.","exampleUseCases":[{"title":"Normalize ML feature values","prompt":"I have a list of raw feature values [0.5, 3.2, 7.8, 1.1, 9.4] that I need normalized between 0 and 1 with 4 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, 5, 2, 4, 5, 1] and rescale them from their original 1–5 range to a 0–100 percentage scale, rounded to the nearest whole number."},{"title":"Apply gain and offset to sensor data","prompt":"Apply a linear scale to my sensor readings [200, 350, 410, 180, 295] using a factor of 0.5 and an offset of 10, and give me the results with 3 decimal places."}],"resultDescription":"Returns a JSON object containing the linearly scaled output array. Values are transformed according to the provided min/max bounds, factor, offset, and rounding (digits) parameters. The output reflects the rescaled numeric sequence, optionally resized to the requested number of elements.","failureModes":["Array exceeds 1000 element limit — request rejected","Non-finite numbers (NaN, Infinity) in input values array — validation error","Invalid type for numeric parameters (e.g. string passed as min/max) — schema error","Payment not included or insufficient — HTTP 402 response","Empty values array — may return empty result or error"],"whenToPreferThis":"Choose this endpoint when you need a cheap, fast, pay-per-call linear normalization or rescaling of a numeric array — especially in autonomous agent workflows where you want deterministic math without spinning up your own compute. Ideal for preprocessing pipelines, score normalization, sensor data rescaling, or any scenario requiring min-max or factor+offset linear transforms at sub-cent cost via x402 on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:04.101Z","isFirstParty":false,"canonicalSlug":"one-engine-linear-scale-numeric-dff76814"}