← Back to directory

Detects the likely real file format from filename, file creation time, file size...

https://convert.guru/api/x402/v1/detect-file-type

Overview

Detects the likely real file format from filename, file creation time, file size, and the first 200 bytes of the file. Identifies common formats such as PDF, DOCX, XLSX, CSV, JPG/JPEG, PNG, WEBP, HEIC, TXT, HTML, MP3, WAV, MP4, AVI, MPEG, and WEBM, as well as about 15,000 other file types.

Protocol x402 (POST)
Price $0.0020
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider Convert Guru File Type Detection
Source bazaar
Indexed 2026-06-08 08:18:12

Health

Status healthy
Latency (p50) 750ms
Uptime (30d) 95.5%
Reliability Score 87.7/100
Last Checked 2026-10-31 07:08:33
Last Healthy 2026-10-31 07:08:33
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "body": { "created_at": "2026-05-21T14:30:00Z", "filename": "document.001", "header_first_200_bytes_base64": "JVBERi0xLjQKJcTl8uXrp...", "size_bytes": 184221 }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "convert_file_compatibility": { "confidence": 0.8, "reason": "The header matches PDF, but only the first 200 bytes were inspected.", "status": "likely" }, "convertible_to": [ "docx", "txt", "png", "jpg", "html" ], "detected": true, "detected_format": { "canonical_extension": "pdf", "confidence": 0.99, "confidence_percent": 99, "description": "PDF document", "format": "pdf" }, "input_filename": "document.001", "payment": { "amount": { "amount": "0.002000", "atomic_units": "2000", "currency": "USDC", "decimals": 6 }, "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "network": "eip155:8453", "payTo": "0x222c4F009c63E24cE9176C0f7f3b64E7Da0f0699", "protocol": "x402", "scheme": "exact", "settlement_status": "settled", "transaction_id": "0x...", "tx_hash": "0x..." }, "suggested_filename": "document.pdf" }, "type": "json" }