{"success":true,"data":{"ext":"warc","name":"WARC","description":"Web ARChive (WARC) is a standardized archival file format for storing web crawl content, developed by the International Internet Preservation Consortium and standardized as ISO 28500. It is used by web archives, libraries, and preservation systems to record HTML pages, images, metadata, and HTTP transactions for long-term access and replay. WARC files are generally safe, but they may contain large embedded resources or active web content captured from untrusted sites.","mime":["application/warc"],"risk_level":"Safe","signatures":[{"hex":"57 41 52 43 2F","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":[],"usage":{"python":"def is_warc(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WARC by magic bytes.\"\"\"\n    signature = bytes([0x57, 0x41, 0x52, 0x43, 0x2F])\n    with open(file_path, \"rb\") as f:\n        return f.read(5) == signature","node":"function isWARC(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x57, 0x41, 0x52, 0x43, 0x2F]);\n  return buffer.subarray(0, 5).equals(signature);\n}","go":"func IsWARC(data []byte) bool {\n    signature := []byte{0x57, 0x41, 0x52, 0x43, 0x2F}\n    if len(data) < 5 {\n        return false\n    }\n    return bytes.Equal(data[:5], signature)\n}"}}}