{"openapi":"3.1.0","info":{"title":"File Format Inspector","version":"1.0.0","description":"Identify and inspect files from their first bytes: magic numbers, PNG, JPEG, GIF, WebP, ZIP, gzip and PDF headers. One call, one computed answer, no accounts or API keys. Machine-payable over x402.","x-guidance":"File Format Inspector: Identify and inspect files from their first bytes: magic numbers, PNG, JPEG, GIF, WebP, ZIP, gzip and PDF headers. Use /magic-bytes to identify a file type from its first bytes, /extension-vs-content to compare a filename to its content, /png-header /jpeg-info /gif-header /webp-info for image size and format, /zip-entry for the first ZIP entry and path-traversal flags, /gzip-header and /pdf-header for those formats. Each paid GET returns a computed verdict with the reasons, the source and what was NOT checked. A verdict of UNVERIFIED means a lookup failed: treat it as unknown. No account or key: pay per call in USDC over x402."},"servers":[{"url":"https://file-formats.x402tookit.com"}],"paths":{"/extension-vs-content":{"get":{"operationId":"extension_vs_content","summary":"Compare a file name's extension with its real type from the first bytes; flags executables disguised as documents or images.","description":"Compare a file name's extension with its real type from the first bytes; flags executables disguised as documents or images.","tags":["file-type","extension","spoofing","security"],"parameters":[{"name":"filename","in":"query","required":true,"description":"The file name as supplied, for example invoice.pdf or photo.jpg","schema":{"type":"string"}},{"name":"hex","in":"query","required":true,"description":"First bytes of the file as hex, up to 512 bytes","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"filename":{"type":["null","string"]},"extension":{"type":["null","string"]},"detectedType":{"type":["null","string"]},"detectedMime":{"type":["null","string"]},"detectedCategory":{"type":["null","string"]},"doubleExtension":{"type":["boolean","null"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"EXECUTABLE_DISGUISED","summary":"Mismatch: .pdf versus Windows PE executable (MZ).","reasons":["The content is Windows PE executable (MZ) but the name says .pdf: an executable disguised under a harmless-looking extension."],"filename":"invoice.pdf","extension":"pdf","detectedType":"Windows PE executable (MZ)","detectedMime":"application/vnd.microsoft.portable-executable","detectedCategory":"executable","doubleExtension":false,"degraded":false,"notChecked":["anything beyond the header bytes","double extensions are judged by the last one only","…2 more"],"source":"computed locally (published file signatures)","asOf":"2026-10-11T23:43:20.979Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/extension-vs-content"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/extension-vs-content"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/extension-vs-content"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/extension-vs-content"}}]}}},"/gif-header":{"get":{"operationId":"gif_header","summary":"Read a GIF's version, width, height and global colour table size from its first 13 bytes.","description":"Read a GIF's version, width, height and global colour table size from its first 13 bytes.","tags":["gif","image","dimensions","header"],"parameters":[{"name":"hex","in":"query","required":true,"description":"First 13 or more bytes of the GIF as hex (up to 512 bytes)","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"]},"bytesExamined":{"type":["null","number"]},"version":{"type":["null","string"]},"width":{"type":["null","number"]},"height":{"type":["null","number"]},"globalColorTable":{"type":["boolean","null"]},"globalColors":{"type":["null","number"]},"colorResolutionBits":{"type":["null","number"]},"sorted":{"type":["boolean","null"]},"backgroundIndex":{"type":["null","number"]},"pixelAspectByte":{"type":["null","number"]},"pixelAspectRatio":{},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"VALID_HEADER","summary":"GIF89a, 1 x 1 px, 2 global colours.","reasons":[],"bytesExamined":22,"version":"89a","width":1,"height":1,"globalColorTable":true,"globalColors":2,"colorResolutionBits":1,"sorted":false,"backgroundIndex":0,"pixelAspectByte":0,"pixelAspectRatio":null,"degraded":false,"notChecked":["frame count or animation (frames come after the header)","image data validity","…1 more"],"source":"computed locally (GIF89a specification)","asOf":"2026-10-11T23:43:21.243Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/gif-header"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/gif-header"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/gif-header"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/gif-header"}}]}}},"/gzip-header":{"get":{"operationId":"gzip_header","summary":"Parse a gzip header: method, flags, modification time, original file name, OS and compression hint.","description":"Parse a gzip header: method, flags, modification time, original file name, OS and compression hint.","tags":["gzip","archive","rfc1952","header"],"parameters":[{"name":"hex","in":"query","required":true,"description":"First bytes of the gzip file as hex, at least 10 (up to 512 bytes)","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"]},"bytesExamined":{"type":["null","number"]},"method":{"type":["null","string"]},"flags":{"type":["null","object"],"properties":{"text":{"type":["boolean","null"]},"headerCrc":{"type":["boolean","null"]},"extra":{"type":["boolean","null"]},"name":{"type":["boolean","null"]},"comment":{"type":["boolean","null"]}}},"reservedFlagBits":{"type":["null","number"]},"modified":{"type":["null","string"]},"mtime":{"type":["null","number"]},"compressionHint":{"type":["null","string"]},"os":{"type":["null","string"]},"name":{"type":["null","string"]},"comment":{},"extraBytes":{"type":["null","number"]},"complete":{"type":["boolean","null"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"VALID_HEADER","summary":"gzip (deflate), original name \"host.txt\", from Unix, modified 2023-02-06T02:48:32.000Z.","reasons":[],"bytesExamined":19,"method":"deflate","flags":{"text":false,"headerCrc":false,"extra":false,"name":true,"comment":false},"reservedFlagBits":0,"modified":"2023-02-06T02:48:32.000Z","mtime":1675651712,"compressionHint":"default","os":"Unix","name":"host.txt","comment":null,"extraBytes":0,"complete":true,"degraded":false,"notChecked":["the compressed stream, CRC32 or uncompressed size (stored at the end of the file)","concatenated members","…1 more"],"source":"computed locally (RFC 1952)","asOf":"2026-10-11T23:43:21.508Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/gzip-header"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/gzip-header"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/gzip-header"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/gzip-header"}}]}}},"/jpeg-info":{"get":{"operationId":"jpeg_info","summary":"Read a JPEG's width, height, components and baseline/progressive mode by walking its markers; flags JFIF and Exif.","description":"Read a JPEG's width, height, components and baseline/progressive mode by walking its markers; flags JFIF and Exif.","tags":["jpeg","image","dimensions","exif"],"parameters":[{"name":"hex","in":"query","required":true,"description":"First bytes of the JPEG as hex, up to 512 bytes; the frame header usually appears within the first few hundred","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"]},"bytesExamined":{"type":["null","number"]},"width":{"type":["null","number"]},"height":{"type":["null","number"]},"precisionBits":{"type":["null","number"]},"components":{"type":["null","number"]},"mode":{"type":["null","string"]},"progressive":{"type":["boolean","null"]},"frameMarker":{"type":["null","string"]},"hasJfif":{"type":["boolean","null"]},"hasExif":{"type":["boolean","null"]},"hasAdobe":{"type":["boolean","null"]},"markersSeen":{"type":["array","null"],"items":{"type":"string"}},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"VALID_HEADER","summary":"40 x 30 px JPEG, baseline DCT, 3 component(s), 8-bit.","reasons":[],"bytesExamined":39,"width":40,"height":30,"precisionBits":8,"components":3,"mode":"baseline DCT","progressive":false,"frameMarker":"FFC0","hasJfif":true,"hasExif":false,"hasAdobe":false,"markersSeen":["E0","C0"],"degraded":false,"notChecked":["entropy-coded image data validity","EXIF contents (GPS, camera, orientation) are not read","…2 more"],"source":"computed locally (ITU-T T.81 / JFIF)","asOf":"2026-10-11T23:43:21.772Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/jpeg-info"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/jpeg-info"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/jpeg-info"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/jpeg-info"}}]}}},"/magic-bytes":{"get":{"operationId":"magic_bytes","summary":"Identify a file type from the first bytes (hex): PNG, JPEG, PDF, ZIP, ELF, EXE, MP4, SQLite and 40+ more signatures.","description":"Identify a file type from the first bytes (hex): PNG, JPEG, PDF, ZIP, ELF, EXE, MP4, SQLite and 40+ more signatures.","tags":["file-type","magic-bytes","signature","forensics"],"parameters":[{"name":"hex","in":"query","required":true,"description":"First bytes of the file as hex, up to 512 bytes (1024 hex digits); spaces, colons and hyphens allowed","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"]},"bytesExamined":{"type":["null","number"]},"firstBytesHex":{"type":["null","string"]},"type":{"type":["null","string"]},"mime":{"type":["null","string"]},"category":{"type":["null","string"]},"usualExtensions":{"type":["array","null"],"items":{"type":"string"}},"matches":{"type":["array","null"],"items":{"type":"object","properties":{"type":{"type":["null","string"]},"mime":{"type":["null","string"]},"category":{"type":["null","string"]}}}},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"IDENTIFIED","summary":"PNG image (image/png).","reasons":[],"bytesExamined":16,"firstBytesHex":"89504e470d0a1a0a0000000d49484452","type":"PNG image","mime":"image/png","category":"image","usualExtensions":["png"],"matches":[{"type":"PNG image","mime":"image/png","category":"image"}],"degraded":false,"notChecked":["anything beyond the bytes sent: a valid header does not prove the file is intact or safe","malware or embedded-content scanning","…2 more"],"source":"computed locally (published file signatures)","asOf":"2026-10-11T23:43:22.038Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/magic-bytes"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/magic-bytes"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/magic-bytes"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/magic-bytes"}}]}}},"/pdf-header":{"get":{"operationId":"pdf_header","summary":"Read a PDF's version and header position from its first bytes; flags junk before %PDF- and an invalid version.","description":"Read a PDF's version and header position from its first bytes; flags junk before %PDF- and an invalid version.","tags":["pdf","document","header","polyglot"],"parameters":[{"name":"hex","in":"query","required":true,"description":"First bytes of the PDF as hex, up to 512 bytes","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"]},"bytesExamined":{"type":["null","number"]},"version":{"type":["null","string"]},"major":{"type":["null","number"]},"minor":{"type":["null","number"]},"headerOffset":{"type":["null","number"]},"validVersion":{"type":["boolean","null"]},"binaryMarker":{"type":["boolean","null"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"VALID_HEADER","summary":"PDF version 1.7, header at byte 0, binary marker present.","reasons":[],"bytesExamined":22,"version":"1.7","major":1,"minor":7,"headerOffset":0,"validVersion":true,"binaryMarker":true,"degraded":false,"notChecked":["the cross-reference table, trailer or objects","embedded JavaScript, launch actions or attachments","…2 more"],"source":"computed locally (ISO 32000 file header)","asOf":"2026-10-11T23:43:22.290Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/pdf-header"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/pdf-header"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/pdf-header"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/pdf-header"}}]}}},"/png-header":{"get":{"operationId":"png_header","summary":"Read a PNG's width, height, bit depth, colour type and interlace from its first 33 bytes, and verify the IHDR CRC.","description":"Read a PNG's width, height, bit depth, colour type and interlace from its first 33 bytes, and verify the IHDR CRC.","tags":["png","image","dimensions","header"],"parameters":[{"name":"hex","in":"query","required":true,"description":"First 33 or more bytes of the PNG as hex (up to 512 bytes)","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"]},"bytesExamined":{"type":["null","number"]},"width":{"type":["null","number"]},"height":{"type":["null","number"]},"bitDepth":{"type":["null","number"]},"colorType":{"type":["null","number"]},"colorTypeName":{"type":["null","string"]},"interlace":{"type":["null","string"]},"bitsPerPixel":{"type":["null","number"]},"megapixels":{"type":["null","number"]},"rawBytesEstimate":{"type":["null","number"]},"ihdrCrcValid":{"type":["boolean","null"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"VALID_HEADER","summary":"1 x 1 px, truecolor with alpha (RGBA), 8-bit.","reasons":[],"bytesExamined":33,"width":1,"height":1,"bitDepth":8,"colorType":6,"colorTypeName":"truecolor with alpha (RGBA)","interlace":"none","bitsPerPixel":32,"megapixels":0,"rawBytesEstimate":4,"ihdrCrcValid":true,"degraded":false,"notChecked":["image data (IDAT) validity or decompression","later chunks, palette, text or ICC profile contents","…2 more"],"source":"computed locally (PNG specification, ISO/IEC 15948)","asOf":"2026-10-11T23:43:22.542Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/png-header"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/png-header"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/png-header"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/png-header"}}]}}},"/webp-info":{"get":{"operationId":"webp_info","summary":"Read a WebP's width, height, lossy/lossless/extended format, alpha and animation flags from its first 30 bytes.","description":"Read a WebP's width, height, lossy/lossless/extended format, alpha and animation flags from its first 30 bytes.","tags":["webp","image","dimensions","riff"],"parameters":[{"name":"hex","in":"query","required":true,"description":"First 30 or more bytes of the WebP as hex (up to 512 bytes)","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"]},"bytesExamined":{"type":["null","number"]},"format":{"type":["null","string"]},"width":{"type":["null","number"]},"height":{"type":["null","number"]},"alpha":{"type":["boolean","null"]},"animation":{"type":["boolean","null"]},"riffSize":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"VALID_HEADER","summary":"1 x 1 px WebP, lossy (VP8).","reasons":[],"bytesExamined":39,"format":"lossy (VP8)","width":1,"height":1,"alpha":false,"animation":false,"riffSize":36,"degraded":false,"notChecked":["bitstream validity","frame count of animations","…2 more"],"source":"computed locally (WebP container specification)","asOf":"2026-10-11T23:43:22.807Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/webp-info"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/webp-info"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/webp-info"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/webp-info"}}]}}},"/zip-entry":{"get":{"operationId":"zip_entry","summary":"Parse a ZIP's first entry header: name, method, sizes, CRC, encryption, and zip-slip path or executable-name risks.","description":"Parse a ZIP's first entry header: name, method, sizes, CRC, encryption, and zip-slip path or executable-name risks.","tags":["zip","archive","zip-slip","security"],"parameters":[{"name":"hex","in":"query","required":true,"description":"First 30 + name length bytes of the ZIP as hex (up to 512 bytes)","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"]},"bytesExamined":{"type":["null","number"]},"versionNeeded":{"type":["null","number"]},"flags":{"type":["null","number"]},"encrypted":{"type":["boolean","null"]},"dataDescriptor":{"type":["boolean","null"]},"utf8Name":{"type":["boolean","null"]},"method":{"type":["null","number"]},"methodName":{"type":["null","string"]},"modified":{"type":["null","string"]},"crc32":{"type":["null","string"]},"compressedSize":{"type":["null","number"]},"uncompressedSize":{"type":["null","number"]},"nameLength":{"type":["null","number"]},"extraLength":{"type":["null","number"]},"name":{"type":["null","string"]},"nameComplete":{"type":["boolean","null"]},"containerGuess":{},"pathRisks":{"type":["array","null"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"ENTRY_PARSED","summary":"First entry \"a/bc.txt\", deflate, 10 bytes.","reasons":[],"bytesExamined":38,"versionNeeded":2,"flags":0,"encrypted":false,"dataDescriptor":false,"utf8Name":false,"method":8,"methodName":"deflate","modified":"1980-01-01 00:00:00","crc32":"ddccbbaa","compressedSize":10,"uncompressedSize":10,"nameLength":8,"extraLength":0,"name":"a/bc.txt","nameComplete":true,"containerGuess":null,"pathRisks":[],"degraded":false,"notChecked":["entries after the first (a ZIP can hide a malicious entry later)","the central directory","…2 more"],"source":"computed locally (PKWARE APPNOTE local file header)","asOf":"2026-10-11T23:43:23.072Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/zip-entry"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/zip-entry"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/zip-entry"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://file-formats.x402tookit.com/zip-entry"}}]}}}}}