{"slug":"convert-guru-api-x402-v1-detect-file-type-621ff2","title":"Detects the likely real file format from filename, file creation time, file size","host":"convert.guru","method":"POST","resource":"https://convert.guru/api/x402/v1/detect-file-type","category":"other","description":"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.","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":375,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:137","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"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":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"properties":{"body":{"properties":{"created_at":{"description":"File creation timestamp in ISO 8601 format","type":"string"},"filename":{"description":"Original filename, e.g. document.pdf, report.docx, data.csv, image.png","type":"string"},"header_first_200_bytes_base64":{"description":"Base64 encoded first 200 bytes of the file","type":"string"},"size_bytes":{"description":"Total size of the file in bytes","type":"integer"}},"required":["filename","header_first_200_bytes_base64","size_bytes"],"type":"object"},"bodyType":{"const":"json","type":"string"},"method":{"const":"POST","type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"convert_file_compatibility":{"properties":{"confidence":{"type":"number"},"reason":{"type":"string"},"status":{"type":"string"}},"required":["status","confidence","reason"],"type":"object"},"convertible_to":{"items":{"type":"string"},"type":"array"},"detected":{"type":"boolean"},"detected_format":{"properties":{"canonical_extension":{"type":"string"},"confidence":{"type":"number"},"confidence_percent":{"type":"integer"},"description":{"type":"string"},"format":{"description":"Canonical format e.g. pdf, docx, xlsx, csv, png, jpg, webp, txt, html","type":"string"}},"required":["format","description","confidence","confidence_percent","canonical_extension"],"type":["object","null"]},"input_filename":{"type":"string"},"payment":{"type":"object"},"suggested_filename":{"type":["string","null"]}},"required":["detected","input_filename","suggested_filename","detected_format","convertible_to","convert_file_compatibility","payment"],"type":"object"},"type":{"const":"json","type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-03","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":375,"error":null}],"description_full":"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.","last_updated":"2026-10-03T09:15:49.185Z","schemes":["exact"]}