{"uid":"cap_0pv8sZLF3i1HDQSThTX1f","slug":"one-engine-text-replace-9324c491","name":"ONE Engine Text Replace","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v1/text/replace?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"},"search":{"type":"string"},"replacement":{"type":"string"}}},"responseSchema":{"type":"json","example":{"text":"ONE bar ONE"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__SAJ3Fyp53nqzPzFCH4fC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Replaces all occurrences of a search string within a given text with a specified replacement string.","exampleAgentPrompt":"In the string 'ONE foo ONE foo', replace every occurrence of 'foo' with 'bar' and give me the result.","exampleUseCases":[{"title":"Template placeholder substitution","prompt":"I have the template string 'Hello, {{name}}! Your order {{order_id}} is ready.' — replace every instance of '{{name}}' with 'Alice' and give me the filled-in text."},{"title":"Brand rename in copy","prompt":"I need to update this marketing blurb: 'Acme products are the best — Acme never lets you down.' Replace 'Acme' with 'Stellar' throughout."},{"title":"Code variable renaming in a snippet","prompt":"In this code snippet 'var oldName = 1; print(oldName);', swap every occurrence of 'oldName' with 'newName'."}],"resultDescription":"Returns a JSON object with a 'text' field containing the input string after all occurrences of the search value have been replaced with the replacement value.","failureModes":["Missing required field (text, search, or replacement) returns an error","Empty search string may cause unexpected behavior or error","Payment failure via x402 returns 402 before processing","Network timeout on Cloudflare Worker returns 5xx"],"whenToPreferThis":"Choose this endpoint when you need a cheap, stateless, per-call text find-and-replace operation inside an autonomous agent workflow — especially when you want to avoid spinning up a full runtime just for string substitution. At $0.001 USDC per call via x402, it's well-suited for agentic pipelines on Base that process many small text transformations independently.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:38.616Z","isFirstParty":false,"canonicalSlug":"one-engine-text-replace-9324c491"}