Reference
MIME type / extension cross-walk API
Look up by file extension ('.pdf') or MIME type ('application/pdf') and get the canonical MIME, extensions, a coarse category, whether the format is binary vs text, and common aliases — the bidirectional cross-walk agents need for content-type handling. Answers 'MIME type for .png', 'extension for application/json', 'is image/jpeg binary', 'category of text/csv'.
Price$0.01per request
MethodPOST
Route/v1/ref/mime
StatusLive
MIME typeapplication/json
Rate limit60/minute
CacheNo cache
refmimemedia-typecontent-typeextensionfile-typeianabinary
API URL
Integration docshttps://x402.hexl.dev/v1/ref/mimeExample request
{
"query": ".png"
}Example response
{
"query": ".png",
"found": true,
"mime": "image/png",
"extensions": [
"png"
],
"category": "image",
"binary": true,
"aliases": []
}Input schema
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"examples": [
".png",
"application/json"
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}