{"uid":"cap_CJ6PxWAjX56Dre0d87WAB","slug":"dev-reference-mime-type-lookup-1421df48","name":"Dev Reference MIME Type Lookup","description":"Media type (MIME) for a file extension, or extensions for a media type, with IANA registration status.","url":"https://dev-reference.x402tookit.com/mime-type?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"ext":{"type":"string","description":"File extension without the dot, for example webp"},"type":{"type":"string","description":"Media type, for example image/svg+xml"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"ext":{"type":["null","string"]},"asOf":{"type":["null","string"]},"lookup":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"fallback":{"type":["null","string"]},"mediaType":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"ianaRegistered":{"type":["boolean","null"]},"conventionalOnly":{"type":["boolean","null"]},"extensionsForType":{"type":["array","null"],"items":{"type":"string"}}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xSsifjUpiArPGOTxeE5cx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the MIME/media type for a file extension, or the extensions for a given media type, along with IANA registration status and verdict.","exampleAgentPrompt":"What is the correct MIME type for a .webp file, and is it officially registered with IANA?","exampleUseCases":[{"title":"Correct content-type for web assets","prompt":"I'm serving .avif image files from my CDN — what Content-Type header should I set, and is that media type officially registered with IANA?"},{"title":"Reverse lookup extensions for a media type","prompt":"Which file extensions are associated with the media type application/vnd.api+json?"},{"title":"Validate MIME type before upload","prompt":"I'm about to send files with Content-Type image/jxl to my API — is that a real, IANA-registered media type and what extensions use it?"}],"resultDescription":"Returns the canonical media type for a given extension (or the list of extensions for a given media type), along with IANA registration status (ianaRegistered boolean), whether the type is conventional-only, the lookup source, a human-readable summary and verdict, and optional fallback or disclaimer fields if the data is degraded or uncertain.","failureModes":["Unknown or unrecognized extension/type returns null or conventionalOnly flag with no IANA record","Ambiguous extensions (e.g. .ts which maps to both video and TypeScript) may return partial or annotated results","Degraded mode if IANA registry is unavailable, with fallback data and disclaimer","Missing required query parameter returns an error or empty result","Very new or experimental types may not yet appear in the registry"],"whenToPreferThis":"Use this endpoint when you need authoritative MIME type information with IANA registration status, not just a simple lookup table. Ideal when correctness matters (e.g. setting HTTP Content-Type headers, validating file uploads, implementing file serving logic) and you need to know whether the type is officially standardized or merely conventional.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:35:48.135Z","isFirstParty":false,"canonicalSlug":"dev-reference-mime-type-lookup-1421df48"}