{"uid":"cap_iNdM_07TeqcTmQfyUK3g5","slug":"minia2a-substring-before-2893c315","name":"minia2a Substring Before","description":"minia2a service: x402-substring-before","url":"https://minia2a.uk/x402/substringBefore?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"type":{"type":"string"},"method":{"type":"string"},"bodyType":{"type":"string"},"queryParams":{"type":"object"}}},"output":{"type":"object","properties":{"type":{"type":"string"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Qzq7_i9OmCsmZGF4Epjz1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the portion of a string that appears before a specified delimiter substring","exampleAgentPrompt":"Can you give me just the part of the string 'hello:world' that comes before the colon?","exampleUseCases":[{"title":"Extract filename without extension","prompt":"I have the filename 'report.pdf' — can you get me just the part before the dot so I get the base name without the extension?"},{"title":"Parse key from key-value pair","prompt":"I have a string like 'user=john_doe' and I need just the key part — everything before the equals sign. Can you extract that for me?"},{"title":"Get domain prefix from URL path","prompt":"Take the string 'api.example.com/v1/users' and give me only the portion before the first forward slash."}],"resultDescription":"Returns the substring of the input that appears before the first occurrence of the specified delimiter. If the delimiter is not found, behavior may return the full string or an empty string depending on implementation.","failureModes":["Missing required input parameter returns an error","Delimiter not present in string may return empty string or full string","Malformed query parameters result in a 400-level error","Payment failure via x402 protocol blocks the request"],"whenToPreferThis":"Choose this endpoint when you need a simple, paid-per-call string utility to extract the prefix portion of a string up to a given delimiter, especially in agentic pipelines that already use x402 micropayment infrastructure on minia2a.uk.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T18:49:11.205Z","isFirstParty":false,"canonicalSlug":"minia2a-substring-before-2893c315"}