{"slug":"bess-x402-onrender-com-v1-util-file-type-b49326","title":"Detect a file's real format from its first bytes (magic numbers), given as base6","host":"bess-x402.onrender.com","method":"GET","resource":"https://bess-x402.onrender.com/v1/util/file-type","category":"other","description":"Detect a file's real format from its first bytes (magic numbers), given as base64 or hex: MIME type, extension and a warning when it does not match the file name. Use to validate uploads.","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":171,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:137","eip155:42161","eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"data":"iVBORw0KGgoAAAANSUhEUg==","filename":"photo.jpg"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"properties":{"data":{"description":"First bytes of the file (base64 or hex)","type":"string"},"encoding":{"description":"base64 or hex","type":"string"},"filename":{"description":"Original file name (optional)","type":"string"}},"required":["data"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":171,"error":null}],"description_full":"Detect a file's real format from its first bytes (magic numbers), given as base64 or hex: MIME type, extension and a warning when it does not match the file name. Use to validate uploads.","last_updated":"2026-10-23T09:08:41.414Z","schemes":["exact"]}