{"success":true,"data":{"ext":"anpa","name":"ANPA","description":"ANPA is a legacy plain-text newswire file format developed by the American Newspaper Publishers Association and later used by Associated Press systems for electronic news transmission. It was used to distribute headlines, articles, and other editorial copy to newspapers and broadcast outlets, and may still appear in archival publishing workflows. The format is generally safe to process because it is text-based, though older files can contain outdated encodings or control characters that require careful parsing.","mime":["text/vnd.iptc.anpa"],"risk_level":"Safe","signatures":[{"hex":"16 16 01","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_anpa(file_path: str) -> bool:\n    \"\"\"Check if file is a valid ANPA by magic bytes.\"\"\"\n    signature = bytes([0x16, 0x16, 0x01])\n    with open(file_path, \"rb\") as f:\n        return f.read(3) == signature","node":"function isANPA(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x16, 0x16, 0x01]);\n  return buffer.subarray(0, 3).equals(signature);\n}","go":"func IsANPA(data []byte) bool {\n    signature := []byte{0x16, 0x16, 0x01}\n    if len(data) < 3 {\n        return false\n    }\n    return bytes.Equal(data[:3], signature)\n}"}}}