{"uid":"cap_kQo37cOpOge8x3wOSXo5F","slug":"webref-mime-type-lookup-03954013","name":"WebRef MIME Type Lookup","description":"Web standards and time reference for AI agents: HTTP status codes with what the client should do, retry semantics, MIME types and content-type matching, request-method safety and idempotency, plus deadline arithmetic - time until a moment, weekday and business-day checks, duration conversion and Unix timestamps. Pay per call in USDC on Base via x402 or USDC on Tempo via MPP. No signup, no API key, no KYC.","url":"https://webref.johnaio281.workers.dev/api/web/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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":{"def":{"type":"optional","innerType":{"def":{"type":"string"},"type":"string"}},"type":"optional"},"extension":{"def":{"type":"optional","innerType":{"def":{"type":"string"},"type":"string"}},"type":"optional"}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VUu9PW0uC2MTpc0akbRMi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up MIME type information for a file extension or content-type string, returning canonical type, subtypes, and content-type matching guidance for HTTP responses","exampleAgentPrompt":"What MIME type and content-type header value should I use when serving a .wasm file over HTTP GET?","exampleUseCases":[{"title":"Correct content-type for API response","prompt":"I'm building an HTTP API that returns JSON — what exact content-type header value should I set on the response?"},{"title":"Serving static files with right headers","prompt":"My web server needs to serve .svg image files — what MIME type should I use in the Content-Type header for those GET requests?"},{"title":"Validating file upload content types","prompt":"A user is uploading a .csv file to my app via GET-based pre-signed URL — what's the canonical MIME type I should expect and validate against?"}],"resultDescription":"Returns the canonical MIME type string (e.g. 'application/wasm'), associated file extensions, content-type matching rules, and guidance on correct usage in HTTP headers for the queried extension or type.","failureModes":["Unknown or unrecognized file extension returns a 404 or empty result","Passing an unsupported HTTP method (not GET, HEAD, or DELETE) results in a validation error","Malformed or missing required fields return a schema validation error","Ambiguous extensions with multiple MIME types may return the most common match only"],"whenToPreferThis":"Use this endpoint when an AI agent needs to programmatically determine the correct MIME type or Content-Type header for a given file extension or media type without relying on local libraries or hardcoded mappings. Particularly useful in serverless or sandboxed agent environments where file-type libraries are unavailable. Prefer over generic web search when you need a structured, authoritative answer with HTTP-specific context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:40:57.162Z","isFirstParty":false,"canonicalSlug":"webref-mime-type-lookup-03954013"}