{"uid":"cap_A8fPxRhCsLjUnxyDWj-ps","slug":"delx-commerce-string-comparison-cmp-str-50a523cd","name":"Delx Commerce — String Comparison (cmp-str)","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/cmp-str?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"string","description":"Input field: a."},"b":{"type":"string","description":"Input field: b."}}},"responseSchema":{"type":"json","example":{"cmp":1,"schema":"delx/util-cmp-str/v1"}},"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_32Bp_gwjh-6DaQAwoMqOO","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":"Compares two input strings and returns a numeric comparison result, paid per-call via USDC on Base or Solana.","exampleAgentPrompt":"Compare the string 'Hello World' with 'hello world' and give me a similarity score.","exampleUseCases":[{"title":"Duplicate record detection","prompt":"Compare these two company names — 'Acme Corporation' and 'ACME Corp.' — and tell me how similar they are so I can decide if they're the same entity."},{"title":"User input fuzzy matching","prompt":"The user typed 'Recieve payment' — compare it to 'Receive payment' and give me a score so I know if it's close enough to be a match."},{"title":"Password or code equality check","prompt":"Check if the string 'abc123XYZ' is identical or very close to 'ABC123xyz' and return a comparison score."}],"resultDescription":"Returns a JSON object with a numeric comparison score ('cmp') and a schema identifier ('schema': 'delx/util-cmp-str/v1'), indicating the degree of similarity or equality between the two input strings.","failureModes":["Missing input field 'a' or 'b' returns an error","Payment failure (insufficient USDC balance) returns 402","Non-string inputs may cause validation errors","Network timeout if the Base/Solana payment rails are congested"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call string comparison without API key setup, especially in agent pipelines that already use USDC micropayments via x402 on Base or Solana. Ideal for low-volume, on-demand string matching where subscribing to a heavier NLP or fuzzy-match service is overkill.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:48.053Z","isFirstParty":false,"canonicalSlug":"delx-commerce-string-comparison-cmp-str-50a523cd"}