{"uid":"cap_NWwUJuDUuiuy7eqbHTs7K","slug":"delx-commerce-path-extension-extractor-8f2f217a","name":"Delx Commerce — Path Extension Extractor","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/path-ext?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"path":{"type":"string","description":"Input field: path."}}},"responseSchema":{"type":"json","example":{"schema":"delx/util-path-ext/v1","basename":"b.PNG","extension":"png","has_extension":true}},"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_Y2yEHz38LwV9clhX0Ba3c","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":"Extracts the file extension and basename from a given file path string","exampleAgentPrompt":"What is the file extension and basename for the path 'uploads/2024/b.PNG'?","exampleUseCases":[{"title":"Identify file type before processing","prompt":"I need to know the extension of this file path before I decide how to process it — can you extract the extension from 'documents/reports/Q4_summary.pdf'?"},{"title":"Validate upload has allowed extension","prompt":"Check whether this uploaded file path 'user_uploads/avatar.jpeg' actually has an extension, and if so, what it is."},{"title":"Sort files by type in automation pipeline","prompt":"I'm building a pipeline and need to split these file paths into basename and extension — start with 'media/videos/intro_clip.MP4'."}],"resultDescription":"A JSON object containing the schema identifier ('delx/util-path-ext/v1'), the basename of the file (e.g. 'b.PNG'), the extracted extension in lowercase (e.g. 'png'), and a boolean indicating whether the path has an extension at all.","failureModes":["Missing or empty 'path' field returns an error","Path with no extension returns has_extension: false and empty extension","Malformed JSON input may return a 400-level error","Network or payment failure (x402 USDC on Base/Solana) may prevent call completion"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call utility to parse file extensions and basenames from path strings without managing any infrastructure or signup. It is ideal for agent pipelines that need to classify or route files by type on a per-call basis, with verifiable delivery and exact micro-pricing in USDC via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:00.404Z","isFirstParty":false,"canonicalSlug":"delx-commerce-path-extension-extractor-8f2f217a"}