{"uid":"cap_tuWfHMiTDTd488pOQHuEZ","slug":"pennyrail-mime-type-lookup-by-file-extension-3047ba3d","name":"PennyRail MIME Type Lookup by File Extension","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/mime.lookup--file-extension-mime","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object"}}},"responseSchema":{"type":"object","additionalProperties":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_CTCDiwkgNIwo5gPgLBmaL","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":"Looks up the MIME type for a given file extension, returning the standard content-type string for that extension","exampleAgentPrompt":"What is the MIME type for a .webp file? Use the PennyRail MIME lookup service to resolve the correct content-type string for that extension.","exampleUseCases":[{"title":"Set correct HTTP content-type header","prompt":"I'm building an API that serves files dynamically. What MIME type should I use in the Content-Type header when serving a .svg file?"},{"title":"Validate upload file type for web form","prompt":"A user is uploading a .flac audio file — can you look up the correct MIME type for that extension so I can validate it server-side?"},{"title":"Configure file server response headers","prompt":"What's the official MIME type for a .wasm file? I need to make sure my static file server is sending the right content-type for WebAssembly assets."}],"resultDescription":"Returns an object containing the resolved MIME type string (e.g. 'image/webp', 'application/pdf') corresponding to the provided file extension, or a null/false value if the extension is unrecognized.","failureModes":["Unknown or unsupported file extension returns null or false rather than an error","Malformed input object missing the required 'input' field returns a 400-level error","Extension provided with or without leading dot may behave differently depending on implementation","Payment failure (x402) results in 402 status before execution"],"whenToPreferThis":"Use this endpoint when you need a quick, authoritative MIME type lookup for a file extension in an automated pipeline and are already integrated with x402 micropayment infrastructure. It is a good fit for agents that dynamically serve or process files and need to programmatically resolve content-type strings without bundling a MIME database locally.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:21:56.327Z","isFirstParty":false}