{"uid":"cap_nivMjDAStUGpWjQ1QQW77","slug":"one-engine-numeric-linear-scale-9fa8dc9c","name":"ONE Engine Numeric Linear Scale","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/t7?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.0065","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.0065/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dab-Q2N2RZ8KocAFMN7ZQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0065","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Linearly scales an array of numbers to a specified range with optional rounding, factor, and offset controls.","exampleAgentPrompt":"Can you linearly scale these values [12, 45, 78, 23, 67] to fit between 0 and 100, rounded to 2 decimal places?","exampleUseCases":[{"title":"Normalize ML features before training","prompt":"I have these raw feature values [0.5, 3.2, 1.8, 7.4, 2.1] that I need normalized between 0 and 1 with 4 decimal digits before feeding them into my model — can you rescale them?"},{"title":"Rescale survey scores for display","prompt":"Scale these survey response scores [1, 3, 5, 2, 4, 3, 5] to a 0–10 range rounded to 1 decimal place so I can display them on a consistent chart."},{"title":"Map sensor readings to control range","prompt":"I have sensor readings [120, 340, 560, 210, 480] that need to be mapped to a 0–255 range with no decimal places — please linearly scale them."}],"resultDescription":"Returns an object containing the transformed numeric array, where each input value has been linearly scaled to the specified [min, max] range, optionally rounded to a given number of decimal digits, and optionally shifted or multiplied by offset/factor parameters.","failureModes":["Array contains non-finite numbers (Infinity, NaN) — rejected as input","More than 1000 values in the array — exceeds maximum limit","Invalid min/max range (e.g. min > max) — may produce unexpected results","Missing required 'values' field — returns validation error","Payment failure via x402 — returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap, pay-per-call linear normalization of a numeric array without spinning up your own compute — especially useful in agent workflows needing data preprocessing before downstream ML, visualization, or control steps. At $0.0065 USDC it is cost-effective for frequent small batch normalizations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:39.121Z","isFirstParty":false,"canonicalSlug":"one-engine-numeric-linear-scale-9fa8dc9c"}