{"uid":"cap_FTKGSbXIOo0O4b0w-YuEl","slug":"delx-commerce-mime-type-lookup-from-file-extension-b168ec44","name":"Delx Commerce — MIME Type Lookup from File Extension","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/mime-from-ext?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ext":{"type":"string","description":"Input field: ext."}}},"responseSchema":{"type":"json","example":{"ext":"png","mime":"image/png","known":true,"schema":"delx/util-mime-from-ext/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_F-Nsk_AQLcpgxZ5qHDSdy","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":"Returns the MIME type corresponding to a given file extension, with a flag indicating whether the extension is recognized.","exampleAgentPrompt":"What's the MIME type for a .webp file? I need the correct content-type value to set in an HTTP response.","exampleUseCases":[{"title":"Set HTTP response content-type header","prompt":"I'm serving a .svg file from my server — what's the correct MIME type I should use in the Content-Type header?"},{"title":"Validate uploaded file extension","prompt":"A user uploaded a file with a .heic extension — is that a known file type, and what MIME type does it correspond to?"},{"title":"Label files before sending to storage","prompt":"Before I upload a .ogg file to object storage, can you tell me what MIME type I should tag it with?"}],"resultDescription":"Returns a JSON object containing the original extension, the resolved MIME type string (e.g. 'image/png'), and a boolean 'known' flag indicating whether the extension is in the recognized lookup table.","failureModes":["Unknown or obscure extension returns 'known: false' with a null or generic MIME type","Missing 'ext' field in request body results in a validation error","Extension submitted with leading dot (e.g. '.png' instead of 'png') may not match correctly","Payment failure via x402 protocol results in 402 response before lookup is executed"],"whenToPreferThis":"Choose this endpoint when you need a fast, low-cost, deterministic MIME type resolution from a file extension without integrating a library or maintaining a lookup table yourself. Ideal for agents operating in serverless or constrained environments where importing MIME databases is impractical. At $0.001 USDC per call with no signup required, it suits lightweight on-demand lookups within automated pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:54.915Z","isFirstParty":false,"canonicalSlug":"delx-commerce-mime-type-lookup-from-file-extension-b168ec44"}