Perform spam check analysis on a given text in seconds.
import { JigsawStack } from "jigsawstack"; const jigsaw = JigsawStack({ apiKey: "your-api-key" }); const response = await jigsaw.validate.spam_check({ "text": "Congratulations! You've won a free iPhone! Click here to claim now!" })
{ "success": true, "check": { "score": 0.95, "is_spam": true }, "_usage": { "input_tokens": 20, "output_tokens": 14, "inference_time_tokens": 958, "total_tokens": 992 } }
text
string
{"text":"Your text here"}
Array<string>
{"text":["Text 1", "Text 2"]}
Hide Toggle object
Was this page helpful?