Sensitive Image Detection

FREE
By Purelabs
Updated 4 months ago
Media
7.5/10
Popularity Score
329ms
Latency
-
Success Rate

Sensitive Image Detection API Documentation

Our real-time API provides science-backed high accuracy detection of sensitive images (pornography, nudity, sexuality, violence). We are constantly improving our API. Keywords: adult, porn, moderation, image validation, explicit, detection, NSFW. Any questions: contact@octopale.com

View API Details
GETValidate image by URL
GETValidate image by URL
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
urlSTRING
OPTIONALUrl of the image to be validated. Supported image formats: TIF, JPG, JPEG, PNG, GIF.
Code Snippet
unirest.get("https://purelabs-sensitive-image-detection-v1.p.rapidapi.com/?url=https%3A%2F%2Fwww.wikipedia.org%2Fportal%2Fwikipedia.org%2Fassets%2Fimg%2FWikipedia-logo-v2.png")
.header("X-RapidAPI-Host", "purelabs-sensitive-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://purelabs-sensitive-image-detection-v1.p.rapidapi.com/
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://purelabs-sensitive-image-detection-v1.p.rapidapi.com/?url=https%3A%2F%2Fwww.wikipedia.org%2Fportal%2Fwikipedia.org%2Fassets%2Fimg%2FWikipedia-logo-v2.png")
.header("X-RapidAPI-Host", "purelabs-sensitive-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