{"uid":"cap_mVyj3JAxJ03ts8eSZxEZU","slug":"one-engine-numeric-percent-change-t2-2f6ec1bf","name":"ONE Engine Numeric Percent Change (T2)","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/percent-change/t2?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.0007","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.0007/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qKNuST_kRb0jw_PxwdSSk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0007","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes percent-change values for an array of numbers, with optional scaling, clamping, and rounding controls.","exampleAgentPrompt":"Calculate the percent change for these values [100, 110, 95, 130, 120] and round the results to 2 decimal places.","exampleUseCases":[{"title":"Stock price change analysis","prompt":"I have this list of daily closing prices: [150, 153, 148, 160, 157, 165] — can you compute the percent change between each value, rounded to 2 decimal places?"},{"title":"Sensor reading drift detection","prompt":"Here are my IoT sensor readings over time: [200, 198, 205, 210, 195, 220] — compute the percent change for each step and clamp results between -50 and 50."},{"title":"Scaled revenue growth reporting","prompt":"Calculate the percent change for these monthly revenue figures [10000, 10800, 9900, 11500, 12000], apply a scale factor of 100, and return 1 decimal digit of precision."}],"resultDescription":"Returns a JSON object containing the computed percent-change values derived from the input array, potentially scaled, offset, clamped between min/max, resized to a specified count, and rounded to a given number of decimal digits.","failureModes":["Input array contains non-finite numbers (Infinity, NaN) — rejected with validation error","Array exceeds 1000 elements — request refused","Missing required 'values' field — 400-level error","Payment not included or insufficient — 402 Payment Required response","Division by zero when a base value is 0 — may produce Infinity or error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call computation of percent changes on a numeric array without spinning up your own math infrastructure. Ideal for agents needing on-demand numerical transformation at fractions of a cent, especially in x402/Base payment workflows. Prefer this over general-purpose math libraries when you want a hosted, no-setup solution with optional clamping, scaling, and rounding in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:00.289Z","isFirstParty":false,"canonicalSlug":"one-engine-numeric-percent-change-t2-2f6ec1bf"}