Examples

Url

    https://www.moderatecontent.com/api/v2?
    key=[Your_Key]&
    url=https://www.moderatecontent.com/img/sample.png
    
jQuery

    $.ajax('https://www.moderatecontent.com/api/v2', {
        method: "GET",
        dataType: 'json',
        data: {
            key: '[Your_Key]',
            url: 'https://www.moderatecontent.com/img/sample.png'
        },
        success: function (response) {
            console.log(response);
        }
    });
    
jQuery JSONP

    $.ajax('https://www.moderatecontent.com/api/v2', {
        method: "GET",
        jsonp: "callback",
        dataType: "jsonp",
        data: {
            key: '[Your_Key]',
            url: 'https://www.moderatecontent.com/img/sample.png'
        },
        success: function (response) {
            console.log(response);
        }
    });
    
Javascript

    var ajax_url = "https://www.moderatecontent.com/api/v2";
    var image_url = "https://www.moderatecontent.com/img/sample.png"; 
    var xhttp = new XMLHttpRequest();
    xhttp.onreadystatechange = function() {
        if (xhttp.readyState == 4 && xhttp.status == 200) {
            alert(xhttp.responseText);
        }
    };
    xhttp.open("GET", ajax_url + "?key=[Your_Key]&url=" + image_url, true);
    xhttp.send();
    

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