{"uid":"cap_Ty0gZ2SVi4FS6x_MJAL5c","slug":"delx-commerce-mime-type-to-file-extension-converter-bdf8498e","name":"Delx Commerce — MIME Type to File Extension Converter","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/ext-from-mime?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mime":{"type":"string","description":"Input field: mime."}}},"responseSchema":{"type":"json","example":{"ext":"png","mime":"image/png","known":true,"schema":"delx/util-ext-from-mime/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_AxdQ-DjR0KLc79CrWPMVb","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":"Converts a MIME type string to its canonical file extension and metadata","exampleAgentPrompt":"What file extension should I use for the MIME type image/png?","exampleUseCases":[{"title":"Naming downloaded files correctly","prompt":"I'm downloading a file and the server returns Content-Type: application/pdf — what file extension should I use when saving it?"},{"title":"Validating uploaded file type mapping","prompt":"A user uploaded a file with MIME type audio/mpeg — what extension does that correspond to so I can store it with the right name?"},{"title":"Building a media pipeline file sorter","prompt":"I have a bunch of files tagged with MIME types like video/mp4 and image/webp — can you look up the correct file extensions for each so I can rename and organize them?"}],"resultDescription":"Returns a JSON object containing the canonical file extension (e.g. 'png'), the original MIME type echoed back (e.g. 'image/png'), a boolean 'known' flag indicating whether the MIME type is recognized, and a schema identifier string ('delx/util-ext-from-mime/v1').","failureModes":["Unknown or non-standard MIME type returns known:false with a best-guess or empty extension","Malformed MIME type string may return an error or unknown result","Missing 'mime' input field causes a validation error","Extremely obscure vendor MIME types (e.g. application/vnd.x.custom) may not be in the lookup table"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic lookup of the canonical file extension for a given MIME type — especially in download handling, file storage naming, or media pipeline workflows. Prefer this over regex-based custom mappings or client-side heuristics when you need a reliable, maintained reference. At $0.001 per call with no signup required, it's ideal for agent workflows that encounter arbitrary content types at runtime.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:55.928Z","isFirstParty":false,"canonicalSlug":"delx-commerce-mime-type-to-file-extension-converter-bdf8498e"}