API - Inappropriate Content

REQUEST

Analyze an image and rate it for the appropriatenes of it's content for a type of audience - adult, teen, everyone.

        https://www.moderatecontent.com/api/v2?
        key=your_api_key&
        url=https://www.moderatecontent.com/img/sample.png
    
ARGUMENTS

key
string
The api key used to reference your account within the system.
f96f44847704d2291b2967536afe8898

url
string
The url pointing at an image accessible over the internet, no larger than 10mb and with a format of either .jpg .png .bmp .gif.
https://www.moderatecontent.com/img/sample.jpg
RESPONSE

    {
        "url_classified": "https://www.moderatecontent.com/img/sample.png",
        "rating_index": 1,
        "rating_letter": "e",
        "predictions": {
            "teen": 0.11751182222118,
            "everyone": 99.823732266668,
            "adult": 0.05875591111059
        },
        "rating_label": "everyone",
        "error_code": 0,
        "frame": 1
    }
    

url_classified
string
The url pointing at an image accessible over the internet, no larger than 10mb and with a format of either .jpg .png .bmp .gif.
https://www.moderatecontent.com/img/sample.jpg

rating_index
int
A numeric representation of the content rating (1 = everyone, 2 = teen, 3 = adult).
1

rating_letter
string
A single char representing the content rating (e = everyone, t = teen, a = adult).
a

predictions
object
The classification scores created by the computer vision model for each classification.
{ "teen": 0.11751182222118, "everyone": 99.823732266668, "adult": 0.05875591111059 }

teen
double
The score by the computer vision model for the teen classification.
Parent: predictions
0.11751182222118

everyone
double
The score by the computer vision model for the everyone classification.
Parent: predictions
99.823732266668

adult
double
The score by the computer vision model for the adult classification.
Parent: predictions
0.05875591111059

rating_label
string
A label representing the content rating (everyone, teen, adult).
a

error_code
integer
A code representing the type of error returned. The value 0 means no error was found.
1024

error
integer
Optional
A message representing the type of error returned. This occurs when the error_code is not 0.
No url specified in querystring

frame
integer
The index of the frame where the rating originated. Animated gifs have 1..n frames, the API returns the frame with the highest prediction for adult.
1

Need some support?


Send us an email and we will get back to you as soon as possible!

info@moderatecontent.com

Terms of Service and Privacy Policy