Catalog/data-transform-filetype

Data Transform

Magic-byte file type API

Infer file type from a small encoded payload using magic bytes and lightweight filename hints.

Price$0.01per request
MethodPOST
Route/v1/data-transform/filetype
StatusLive
MIME typeapplication/json
Rate limit180/minute
CacheNo cache
data-transformfiletypemagic-bytesforensics
API URLhttps://x402.hexl.dev/v1/data-transform/filetype
Integration docs
Example request
{
  "content": "JVBERi0=",
  "encoding": "base64"
}
Example response
{
  "mimeType": "application/pdf",
  "extension": "pdf",
  "provider": "local-magic-bytes"
}
Input schema
{
  "type": "object",
  "required": [
    "content"
  ],
  "properties": {
    "content": {
      "type": "string",
      "minLength": 1
    },
    "encoding": {
      "type": "string",
      "enum": [
        "base64",
        "hex",
        "utf8"
      ],
      "default": "base64"
    },
    "filename": {
      "type": "string"
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}