Nudity detection - Nudity and adult-content filter for images

FREEMIUM
By sightengine
Updated 5 months ago
Social
-/10
Popularity Score
-
Latency
-
Success Rate

Nudity detection - Nudity and adult-content filter for images API Documentation

Detect nudity and porn in user-submitted photos in real-time. Our automated image filter helps you slash your moderation costs. Get a response in a matter of seconds with a confidence score.

View API Details
POSTNudity detection on local file
GETNudity detection on public URL
POSTNudity detection on local file
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
fileBINARY
REQUIREDImage to be checked
Code Snippet
unirest.post("https://sightengine-nudity-and-adult-content-detection.p.rapidapi.com/nudity.json")
.header("X-RapidAPI-Host", "sightengine-nudity-and-adult-content-detection.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://sightengine-nudity-and-adult-content-detection.p.rapidapi.com/nudity.json
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://sightengine-nudity-and-adult-content-detection.p.rapidapi.com/nudity.json")
.header("X-RapidAPI-Host", "sightengine-nudity-and-adult-content-detection.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication