Requests
Scam Detection
Detects current messages as strings and images.
JavaScript Examples
Text Classification
const fetch = require("node-fetch");
(async () => {
const response = await fetch("https://development.scams.rip/api/scan", {
method: "POST",
headers: {
"apikey": "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX",
"Content-Type": "application/json"
},
body: JSON.stringify({
category: "scam",
type: "text",
content: "Hi, how are you friend.",
})
});
const data = await response.json();
console.log(data);
})();Images Classification
const fetch = require("node-fetch");
(async () => {
const response = await fetch("https://development.scams.rip/api/scan", {
method: "POST",
headers: {
"apikey": "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX",
"Content-Type": "application/json"
},
body: JSON.stringify({
category: "scam",
type: "image",
url: "https://example.com/image.png",
})
});
const data = await response.json();
console.log(data);
})();Reponses
Correct
{
"probability": 0,
"output": "This message is for successful requests"
}Bad
{
"error": "This message is for bad requests"
}