The document presents a study on Indonesian language email spam detection using the n-gram method combined with the naïve bayes algorithm. The implemented spam filter achieved varying accuracy (0.615 to 0.94), precision (0.566 to 0.924), recall (0.96 to 1.00), and f-measure (0.721 to 0.942), with the 5-gram method yielding the best results. The system operates as a web service utilizing REST API architecture for effective spam detection.