{"uid":"cap_seUh6AxKlQmmuIvUStYYW","slug":"pennyrail-mime-type-lookup-4136c389","name":"PennyRail MIME Type Lookup","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/mime.lookup--mime-type-lookup","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_7nm5sFbAKF-0-sC3fFoDP","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 or filename, returning the corresponding content-type string","exampleAgentPrompt":"What's the MIME type for a .svg file? I need to set the correct content-type header when serving it.","exampleUseCases":[{"title":"Set correct content-type for uploads","prompt":"I'm building a file upload handler and need to know the correct MIME type for .xlsx files so I can set the right content-type header in my response."},{"title":"Validate file extension before serving","prompt":"Before I serve this .webm file from my server, can you look up what MIME type it should be so I can configure the response headers correctly?"},{"title":"Map filename to media type in pipeline","prompt":"I have a file called 'report.pdf' going through my data pipeline — what MIME type should be associated with it so downstream consumers know how to handle it?"}],"resultDescription":"Returns an object containing the resolved MIME type string (e.g. 'image/png', 'application/pdf') corresponding to the provided file extension or filename. If the extension is unrecognized, may return null or a default fallback type.","failureModes":["Unknown or unrecognized file extension returns null or empty result","Missing 'input' field in request body causes validation error","Malformed input object causes 400-level error","Extension provided without leading dot may not resolve correctly","Payment failure (402) if USDC balance insufficient"],"whenToPreferThis":"Use this endpoint when you need a quick, paid, machine-readable MIME type resolution as part of an automated pipeline or agent workflow, particularly when already operating within the x402 micropayment ecosystem on PennyRail. Prefer alternatives (local npm mime package, free APIs) for high-volume lookups where per-call cost adds up.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:54:08.098Z","isFirstParty":false}