Adult Image Detection

FREE
By ModerateContent
Updated 2 months ago
Visual Recognition
8.6/10
Popularity Score
2070ms
Latency
100%
Success Rate

Adult Image Detection API Documentation

Detect nudity in images.

View API Details
GETAdult Image Detection
POSTAdult Image Detection - POST
GETAdult Image Detection

Detect adult image

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
urlSTRING
REQUIREDURL pointing to your image
Code Snippet
unirest.get("https://moderatecontent-adult-image-detection-v1.p.rapidapi.com/api/v2?url=https%3A%2F%2Fwww.moderatecontent.com%2Fimg%2Fsample_face_5.jpg")
.header("X-RapidAPI-Host", "moderatecontent-adult-image-detection-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://moderatecontent-adult-image-detection-v1.p.rapidapi.com/api/v2
Request Method: GET
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.get("https://moderatecontent-adult-image-detection-v1.p.rapidapi.com/api/v2?url=https%3A%2F%2Fwww.moderatecontent.com%2Fimg%2Fsample_face_5.jpg")
.header("X-RapidAPI-Host", "moderatecontent-adult-image-detection-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication