{"uid":"cap_nMqj8vts0umDa2ybxuxMM","slug":"delx-commerce-regex-api-ef168521","name":"Delx Commerce Regex API","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/regex?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","bodyType","body"],"properties":{"body":{"type":"object","additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{}},"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_KA_0s2WJ2_moDjk4qEOME","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":"Applies a regular expression pattern to an HTTP request body and returns the match result, paid per-call via USDC on Base or Solana","exampleAgentPrompt":"Run a regex pattern like `\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Z]{2,}\\b` against this JSON body `{\"text\": \"Contact us at hello@example.com or support@test.org\"}` and return all email matches — pay per result via Delx Commerce.","exampleUseCases":[{"title":"Extract emails from user-submitted text","prompt":"Use a regex to pull out all email addresses from this JSON payload: `{\"content\": \"Reach Alice at alice@corp.com or Bob at bob@startup.io\"}` — I want every match returned."},{"title":"Validate phone number format in form data","prompt":"Check whether the phone field in this form submission matches the pattern `^\\+?[1-9]\\d{1,14}$` — the body is `{\"phone\": \"+14155552671\"}` — tell me if it's valid."},{"title":"Parse version numbers from release notes","prompt":"Run the regex `v(\\d+\\.\\d+\\.\\d+)` against this JSON `{\"notes\": \"Released v1.2.3 and v2.0.0 today\"}` and give me all the version strings it finds."}],"resultDescription":"A JSON object containing the regex match results — typically matched substrings, capture groups, or a boolean indicating whether the pattern was found — derived from applying the regex to the provided HTTP request body.","failureModes":["Invalid regex pattern causes a parse or runtime error","Body type mismatch (e.g. sending binary data as JSON) results in a 400 error","Missing required fields (input.body, input.type, input.bodyType, output.example) returns a validation error","Payment failure via x402 protocol (insufficient USDC balance) blocks the call","Regex with catastrophic backtracking may cause a timeout","Empty body or no matching content returns empty match array"],"whenToPreferThis":"Choose this endpoint when you need lightweight, per-call regex extraction or validation inside an AI agent workflow without standing up your own infrastructure. It is especially useful for agents that need to pay only for what they use (no subscription), want verifiable delivery, and require crypto-native micropayments via USDC on Base or Solana. Prefer it over self-hosted regex for serverless agent pipelines where cost predictability and no-signup access matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:41.302Z","isFirstParty":false,"canonicalSlug":"delx-commerce-regex-api-ef168521"}