{"uid":"cap_2xUTuBdwDL8A6LnXQtIj5","slug":"one-engine-numeric-percent-change-t4-2a103df1","name":"ONE Engine Numeric Percent Change (T4)","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/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_MoXdiZ7cwCE3TEA3Tnx2g","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":"Computes percent change values for an array of numbers, with optional scaling, clamping, offset, and rounding controls.","exampleAgentPrompt":"Calculate the percent change across these values [100, 110, 121, 133.1, 146.41], rounded to 2 decimal places.","exampleUseCases":[{"title":"Stock price return series","prompt":"I have a list of daily closing prices [200, 210, 205, 220, 215] — can you compute the percent change between each consecutive value, rounded to 2 decimal places?"},{"title":"Sales growth rate analysis","prompt":"Take these monthly sales figures [50000, 52000, 49000, 55000, 58000] and calculate the percent change for each step so I can see which months grew or declined."},{"title":"Normalized sensor data comparison","prompt":"I've got sensor readings [0.5, 0.75, 0.6, 0.9, 1.1] and I need the percent changes scaled by a factor of 100 and clamped between -50 and 50, with results rounded to 1 decimal place."}],"resultDescription":"A JSON object containing the computed percent change results for the input array, reflecting any applied scaling factor, offset, min/max clamping, size, and digit rounding specified in the request.","failureModes":["Array exceeds 1000 elements — request rejected","Non-finite (NaN, Infinity) values in the input array — validation error","Missing required 'values' field — 400 bad request","Payment not provided or insufficient USDC — 402 payment required","Division by zero when a value is 0 and percent change is undefined"],"whenToPreferThis":"Use this endpoint when you need a low-cost, pay-per-call computation of percent changes on a numeric array with fine-grained control over output (scaling, clamping, offset, rounding) and want to avoid standing up your own math service. Ideal for AI agents on x402/Base needing deterministic numeric transformations at $0.0015 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:34.758Z","isFirstParty":false,"canonicalSlug":"one-engine-numeric-percent-change-t4-2a103df1"}