Muestras de código para los principales idiomas | Reverse WHOIS API | WhoisXML API

Muestras de código para los principales idiomas

Javascript Java C# NodeJS Perl PHP PowerShell Python Ruby
var url = "https://reverse-whois.whoisxmlapi.com/api/v2";
var apiKey = "Your reverse whois api key";
var post_data_basic = {
    "apiKey": apiKey,
    "sinceDate": "2018-07-15",
    "mode": "purchase",
    "basicSearchTerms": {
        "include": [
            "cinema",
        ],
        "exclude": [
            "online"
        ]
    }
};
var post_data_advanced = {
    "apiKey": apiKey,
    "sinceDate": "2018-07-15",
    "mode": "purchase",
    "advancedSearchTerms": [{
        "field": "RegistrantContact.Name",
        "term": "Test"
    }]
};
$(function() {
    $.post(
        url,
        JSON.stringify(post_data_basic),
        function(data) {
            $("body").append("Basic:<br>" +
                "<pre>" + JSON.stringify(data, null, 2) + "</pre>");
        }
    );
    $.post(
        url,
        JSON.stringify(post_data_advanced),
        function(data) {
            $("body").append("Advanced:<br>" +
                "<pre>" + JSON.stringify(data, null, 2) + "</pre>");
        }
    );
});