API Documentation

Get list of flows

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
date_ranges String No Date range for filtering in DD.MM.YYYY - DD.MM.YYYY format. Example: 01.01.2023 - 31.12.2023.
status String No Filter by flow status: active, pause, deleted.
search String No Search string by flow name or fields.
per_page Number No Number of records per page (from 10 to 200). Default: 10.
page Number No Page number, starting from 1. Default: 1.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
total Number Total number of flows matching the query.
per_page Number Number of records per page.
page Number Current page number in pagination.
data Array Array containing flow data matching the query.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/flows');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'       => 'YOUR_API_KEY',
        
'date_ranges'   => '01.01.2023 - 31.12.2023',
        
'status'        => 'active',
        
'search'        => '84b593db13ccd6acf79ec7287d5da586',
        
'per_page'      => 10,
        
'page'          => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Create flow

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
name String Yes Flow name (3-32 characters).
url_white_page String Yes White page URL (5-1024 characters).
url_offer_page String Yes Offer page URL (5-1024 characters).
mode_white_page String Yes White page display mode: loading or redirect.
mode_offer_page String Yes Offer page display mode: loading, redirect, iframe.
filter_countries Array Yes List of country IDs for filtering.
filter_devices Array Yes List of device IDs for filtering.
filter_os Array Yes List of OS IDs for filtering.
filter_browsers Array Yes List of browser IDs for filtering.
filter_langs Array No List of language IDs for filtering.
filter_time_zones Array No List of timezone IDs for filtering.
filter_connections Array No List of connection type IDs for filtering.
filter_tags Array No List of GET parameters that must be present in the request (e.g. clickid, utm_source). Maximum 10 parameters.
filter_cloaking_flag Number Yes Bot filtering flag (1 – enabled, 0 – disabled).
filter_vpn_proxy_flag Number Yes VPN/Proxy filtering flag (1 – enabled, 0 – disabled).
filter_ip_v6_flag Number Yes IPv6 filtering flag (1 – enabled, 0 – disabled).
filter_referer_flag Number Yes Referer filtering flag (1 – enabled, 0 – disabled).
filter_isp_flag Number Yes ISP filtering flag (1 – enabled, 0 – disabled).
filter_black_ip_flag Number Yes IP blacklist filtering flag (1 – enabled, 0 – disabled).
filter_tag_flag Number Yes Flag enabling GET parameter filtering (1 – enabled, 0 – disabled).
filter_ip_clicks_per_day Number Yes Maximum clicks from a single IP per day. Default: 0 (filter inactive).
filter_clicks_before_filtering Number Yes Number of clicks before filters are applied. Default: 0 (filter inactive).
mode_list_country Number Yes Country filtering mode (1 - allow list, 0 - deny list).
mode_list_device Number Yes Device filtering mode (1 - allow list, 0 - deny list).
mode_list_os Number Yes Operating system filtering mode (1 - allow list, 0 - deny list).
mode_list_browser Number Yes Browser filtering mode (1 - allow list, 0 - deny list).
mode_list_lang Number Yes Language filtering mode (1 - allow list, 0 - deny list).
mode_list_time_zone Number Yes Timezone filtering mode (1 - allow list, 0 - deny list).
mode_list_connection Number Yes Connection type filtering mode (1 - allow list, 0 - deny list).
filter_id Number No Filter list ID to apply to the flow. Default: 0 (not applied).
allowed_ips Array No List of allowed IP addresses (IPv4 or IPv6 format).
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
flow_id Number Unique flow identifier.
label String System flow identifier.

<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/flows/create');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'                           => 'YOUR_API_KEY',
        
'name'                              => 'Test flow',
        
'url_white_page'                    => 'https://google.com',
        
'url_offer_page'                    => 'https://google.com',
        
'mode_white_page'                   => 'redirect',
        
'mode_offer_page'                   => 'redirect',
        
'filter_countries'                  => [1075555],
        
'filter_devices'                    => [2],
        
'filter_os'                         => [6],
        
'filter_browsers'                   => [2],
        
'filter_langs'                      => [1],
        
'filter_time_zones'                 => [123],
        
'filter_connections'                => [12],
        
'filter_tags'                       => ['clickid''gclid''fbclid''ttclid'],
        
'filter_cloaking_flag'              => 1,
        
'filter_vpn_proxy_flag'             => 1,
        
'filter_referer_flag'               => 1,
        
'filter_isp_flag'                   => 1,
        
'filter_ip_clicks_per_day'          => 10,
        
'filter_clicks_before_filtering'    => 10,
        
'filter_black_ip_flag'              => 1,
        
'filter_tag_flag'                   => 1,
        
'mode_list_country'                 => 1,
        
'mode_list_device'                  => 1,
        
'mode_list_os'                      => 1,
        
'mode_list_browser'                 => 1,
        
'mode_list_lang'                    => 1,
        
'mode_list_time_zone'               => 1,
        
'mode_list_connection'              => 1,
        
'status'                            => 'pause',
        
'filter_id'                         => 0,
        
'allowed_ips'                       => ['66.249.64.104''5.133.192.168']
    ];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Update flow

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
flow_id Number Yes Unique flow identifier.
name String Yes Flow name (3-32 characters).
url_white_page String Yes White page URL (5-1024 characters).
url_offer_page String Yes Offer page URL (5-1024 characters).
mode_white_page String Yes White page display mode: loading or redirect.
mode_offer_page String Yes Offer page display mode: loading, redirect, iframe.
filter_countries Array Yes List of country IDs for filtering.
filter_devices Array Yes List of device IDs for filtering.
filter_os Array Yes List of OS IDs for filtering.
filter_browsers Array Yes List of browser IDs for filtering.
filter_langs Array No List of language IDs for filtering.
filter_time_zones Array No List of timezone IDs for filtering.
filter_connections Array No List of connection type IDs for filtering.
filter_tags Array No List of GET parameters that must be present in the request (e.g. clickid, utm_source). Maximum 10 parameters.
filter_cloaking_flag Number Yes Bot filtering flag (1 – enabled, 0 – disabled).
filter_vpn_proxy_flag Number Yes VPN/Proxy filtering flag (1 – enabled, 0 – disabled).
filter_ip_v6_flag Number Yes IPv6 filtering flag (1 – enabled, 0 – disabled).
filter_referer_flag Number Yes Referer filtering flag (1 – enabled, 0 – disabled).
filter_isp_flag Number Yes ISP filtering flag (1 – enabled, 0 – disabled).
filter_black_ip_flag Number Yes IP blacklist filtering flag (1 – enabled, 0 – disabled).
filter_tag_flag Number Yes Flag enabling GET parameter filtering (1 – enabled, 0 – disabled).
filter_ip_clicks_per_day Number Yes Maximum clicks from a single IP per day. Default: 0 (filter inactive).
filter_clicks_before_filtering Number Yes Number of clicks before filters are applied. Default: 0 (filter inactive).
mode_list_country Number Yes Country filtering mode (1 - allow list, 0 - deny list).
mode_list_device Number Yes Device filtering mode (1 - allow list, 0 - deny list).
mode_list_os Number Yes Operating system filtering mode (1 - allow list, 0 - deny list).
mode_list_browser Number Yes Browser filtering mode (1 - allow list, 0 - deny list).
mode_list_lang Number Yes Language filtering mode (1 - allow list, 0 - deny list).
mode_list_time_zone Number Yes Timezone filtering mode (1 - allow list, 0 - deny list).
mode_list_connection Number Yes Connection type filtering mode (1 - allow list, 0 - deny list).
filter_id Number No Filter list ID to apply to the flow. Default: 0 (not applied).
allowed_ips Array No List of allowed IP addresses (IPv4 or IPv6 format).
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
flow_id Number Unique flow identifier.
label String System flow identifier.

<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/flows/update');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'                           => 'YOUR_API_KEY',
        
'flow_id'                           => 1,
        
'name'                              => 'Test flow',
        
'url_white_page'                    => 'https://google.com',
        
'url_offer_page'                    => 'https://google.com',
        
'mode_white_page'                   => 'redirect',
        
'mode_offer_page'                   => 'redirect',
        
'filter_countries'                  => [1075555],
        
'filter_devices'                    => [2],
        
'filter_os'                         => [6],
        
'filter_browsers'                   => [2],
        
'filter_langs'                      => [1],
        
'filter_time_zones'                 => [123],
        
'filter_connections'                => [12],
        
'filter_tags'                       => ['clickid''gclid''fbclid''ttclid'],
        
'filter_cloaking_flag'              => 1,
        
'filter_vpn_proxy_flag'             => 1,
        
'filter_referer_flag'               => 1,
        
'filter_isp_flag'                   => 1,
        
'filter_ip_clicks_per_day'          => 10,
        
'filter_clicks_before_filtering'    => 10,
        
'filter_black_ip_flag'              => 1,
        
'filter_tag_flag'                   => 1,
        
'mode_list_country'                 => 1,
        
'mode_list_device'                  => 1,
        
'mode_list_os'                      => 1,
        
'mode_list_browser'                 => 1,
        
'mode_list_lang'                    => 1,
        
'mode_list_time_zone'               => 1,
        
'mode_list_connection'              => 1,
        
'status'                            => 'pause',
        
'filter_id'                         => 0,
        
'allowed_ips'                       => ['66.249.64.104''5.133.192.168']
    ];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get flow details

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
flow_id Number Yes Unique flow identifier.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
data Array Array containing flow details, including parameters and settings.
└─ flow_id Number Unique flow identifier.
└─ name String Flow name.
└─ status String Flow status: active, pause, deleted.
└─ label String System flow identifier.
└─ time_created Number Flow creation time in Unix timestamp format.
└─ date_created String Flow creation date (YYYY-MM-DD).
└─ url_white_page String Flow white page URL.
└─ url_offer_page String Flow offer page URL.
└─ mode_white_page String White page display mode: loading or redirect.
└─ mode_offer_page String Offer page display mode: loading, redirect, iframe.
└─ filter_cloaking_flag Number Bot filtering flag (1 – enabled, 0 – disabled).
└─ filter_vpn_proxy_flag Number VPN/Proxy filtering flag (1 – enabled, 0 – disabled).
└─ filter_ip_v6_flag Number IPv6 filtering flag (1 – enabled, 0 – disabled).
└─ filter_referer_flag Number Referer filtering flag (1 – enabled, 0 – disabled).
└─ filter_isp_flag Number ISP filtering flag (1 – enabled, 0 – disabled).
└─ filter_black_ip_flag Number IP blacklist filtering flag (1 – enabled, 0 – disabled).
└─ filter_ip_clicks_per_day Number Maximum clicks from a single IP per day. Default: 0 (filter inactive).
└─ filter_clicks_before_filtering Number Number of clicks before filters are applied. Default: 0 (filter inactive).
└─ mode_list_country Number Country filtering mode (1 - allow list, 0 - deny list).
└─ mode_list_device Number Device filtering mode (1 - allow list, 0 - deny list).
└─ mode_list_os Number Operating system filtering mode (1 - allow list, 0 - deny list).
└─ mode_list_browser Number Browser filtering mode (1 - allow list, 0 - deny list).
└─ mode_list_lang Number Language filtering mode (1 - allow list, 0 - deny list).
└─ mode_list_time_zone Number Timezone filtering mode (1 - allow list, 0 - deny list).
└─ mode_list_connection Number Connection type filtering mode (1 - allow list, 0 - deny list).
└─ filter_id Number Filter list ID to apply to the flow. Default: 0 (not applied).
└─ allowed_ips Array List of allowed IP addresses for the whitelist.
└─ country_ids Array List of country IDs for filtering.
└─ device_ids Array List of device IDs for filtering.
└─ os_ids Array List of OS IDs for filtering.
└─ browser_ids Array List of browser IDs for filtering.
└─ language_ids Array List of language IDs for filtering.
└─ time_zone_ids Array List of timezone IDs for filtering.
└─ connection_ids Array List of connection type IDs for filtering.
└─ hosts Number Number of unique requests from IP addresses.
└─ hits Number Total number of requests from IP addresses.
└─ filtered Number Number of requests that passed filtering.
└─ ctr Number Click-through rate (CTR) as a percentage.

<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/flows/details');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key' => 'YOUR_API_KEY',
        
'flow_id' => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Delete flow

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
flow_id Yes Yes Unique flow identifier.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Yes Response code, e.g. 200 for a successful request.
flow_id Yes Unique flow identifier.
label String System flow identifier.

<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/flows/delete');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key' => 'YOUR_API_KEY',
        
'flow_id' => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Restore flow

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
flow_id Number Yes Unique flow identifier.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
flow_id Number Unique flow identifier.
label String System flow identifier.

<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/flows/restore');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key' => 'YOUR_API_KEY',
        
'flow_id' => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Activate flow

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
flow_id Number Yes Unique flow identifier.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
flow_id Number Unique flow identifier.
label String System flow identifier.

<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/flows/activate');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key' => 'YOUR_API_KEY',
        
'flow_id' => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Pause flow

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
flow_id Number Yes Unique flow identifier.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
flow_id Number Unique flow identifier.
label String System flow identifier.

<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/flows/pause');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key' => 'YOUR_API_KEY',
        
'flow_id' => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Download integration file

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
flow_id Number Yes Unique flow identifier.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
flow_id Number Unique flow identifier.
label String System flow identifier.
download_url String URL for downloading the zip file.

<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/flows/download');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key' => 'YOUR_API_KEY',
        
'flow_id' => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get filter lists

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
date_ranges String No Date range for filtering in DD.MM.YYYY - DD.MM.YYYY format. Example: 01.01.2023 - 31.12.2023.
status String No Filter status. Allowed values: active, deleted.
list_type String No List type: white — whitelist, black — blacklist.
search String No Search string by filter name or fields.
per_page Number No Number of records per page (from 10 to 200). Default: 10.
page Number No Page number, starting from 1. Default: 1.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
total Number Number of filters matching the query.
per_page Number Number of records per page.
page Number Current page number in pagination.
data Array Array containing filter data matching the query.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/filters');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'       => 'YOUR_API_KEY',
        
'date_ranges'   => '01.01.2023 - 31.12.2023',
        
'status'        => 'active',
        
'list_type'     => 'black',
        
'search'        => '84b593db13ccd6acf79ec7287d5da586',
        
'per_page'      => 10,
        
'page'          => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Create filter list

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
name String Yes Filter name (3-32 characters).
list_type String Yes List type: white — whitelist, black — blacklist.
list_ips Array No List of IP addresses to filter (no more than 5000 unique entries).
list_agents Array No List of User-Agent values to filter (no more than 5000 unique entries).
list_providers Array No List of internet service providers to filter (no more than 5000 unique entries).
list_referers Array No List of Referer header values to filter (no more than 5000 unique entries).
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
filter_id Number Unique filter identifier.
label String System filter identifier.

<?php


    
function api_request($data = [])
    {
        
        
$ch curl_init('https://cloaking.house/api/filters/create');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'   => 'YOUR_API_KEY',
        
'name'      => 'Test filter',
        
'list_type' => 'black',
        
'list_ips'  => [
            
'14.215.163.132'
            
'103.145.72.0'
            
'103.142.100.0'
            
'198.11.149.0'
        
],
        
'list_agents' => [
            
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 OPR/96.0.0.0'
        
],
        
'list_providers' => [
            
'Google CWB private VPN P1P',
            
'Google CWB private VPN P2P',
            
'Google CWB private VPN P3P',
            
'Google CWB private VPN P4P'
        
],
        
'list_referers' => [
            
'https://example.com/*',
            
'https://test.com/*',
            
'https://*.example.com/*',
            
'https://*.test.com/*'
        
]
    ];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Update filter list

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
filter_id Number Yes Unique filter identifier.
name String Yes Filter name (3-32 characters).
list_ips Array No List of IP addresses to filter (no more than 5000 unique entries).
list_agents Array No List of User-Agent values to filter (no more than 5000 unique entries).
list_providers Array No List of internet service providers to filter (no more than 5000 unique entries).
list_referers Array No List of Referer header values to filter (no more than 5000 unique entries).
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
filter_id Number Unique filter identifier.
label String System filter identifier.

<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/filters/update');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'   => 'YOUR_API_KEY',
        
'filter_id' => 1,
        
'name'      => 'Test filter',
        
'list_ips'  => [
            
'14.215.163.132'
            
'103.145.72.0'
            
'103.142.100.0'
            
'198.11.149.0'
        
],
        
'list_agents' => [
            
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 OPR/96.0.0.0'
        
],
        
'list_providers' => [
            
'Google CWB private VPN P1P',
            
'Google CWB private VPN P2P',
            
'Google CWB private VPN P3P',
            
'Google CWB private VPN P4P'
        
],
        
'list_referers' => [
            
'https://example.com/*',
            
'https://test.com/*',
            
'https://*.example.com/*',
            
'https://*.test.com/*'
        
]
    ];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get filter list details

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
filter_id Number Yes Unique filter identifier.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
data Array Array containing filter list details.
└─ filter_id Number Unique filter identifier.
└─ name String Filter name.
└─ label String System filter identifier.
└─ status String Filter status: "active" or "deleted".
└─ list_type String List type: white — whitelist, black — blacklist.
└─ date_created String Filter creation date (YYYY-MM-DD).
└─ time_created Number Filter creation time in Unix timestamp format.
└─ count_ips Number Number of IP addresses associated with the filter.
└─ count_agents Number Number of User-Agent values associated with the filter.
└─ count_providers Number Number of providers associated with the filter.
└─ list_ips Array List of IP addresses associated with the filter.
└─ list_agents Array List of User-Agent values associated with the filter.
└─ list_providers Array List of providers associated with the filter.
└─ list_referers Array List of Referer header values associated with the filter.

<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/filters/details');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'   => 'YOUR_API_KEY',
        
'filter_id' => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Delete filter list

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
filter_id Number Yes Unique filter identifier.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
filter_id Number Unique filter identifier.
label String System filter identifier.

<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/filters/delete');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'   => 'YOUR_API_KEY',
        
'filter_id' => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Restore filter list

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
filter_id Number Yes Unique filter identifier.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
filter_id Number Unique filter identifier.
label String System filter identifier.

<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/filters/restore');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'   => 'YOUR_API_KEY',
        
'filter_id' => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get list of domains

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
date_ranges String No Date range for filtering in DD.MM.YYYY - DD.MM.YYYY format. Example: 01.01.2023 - 31.12.2023.
status String No Current domain status: connected, waiting, not_connected, infected, deleted.
search String No Search string by domain name or attributes.
per_page Number No Number of records per page (from 10 to 200). Default: 10.
page Number No Page number, starting from 1. Default: 1.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
total Number Number of domains matching the query.
per_page Number Number of records per page.
page Number Current page number in pagination.
data Array Array containing domain data matching the query.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/domains');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'       => 'YOUR_API_KEY',
        
'date_ranges'   => '01.01.2023 - 31.12.2023',
        
'status'        => 'connected',
        
'search'        => 'domain.com',
        
'per_page'      => 10,
        
'page'          => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Attach domain

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
host_name String Yes Full domain name to attach, e.g. example.com.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
domain_id Number Unique domain identifier.
host_name String Attached domain name in URL format, e.g. https://example.com.
dns_servers Array List of DNS servers for configuring the domain.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/domains/bind');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'   => 'YOUR_API_KEY',
        
'host_name' => 'domain.com'
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get domain details

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
domain_id Number Yes Unique domain identifier.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
data Array Array containing domain details.
└─ domain_id Number Unique domain identifier.
└─ host_name String Domain name in URL format, e.g. https://example.com.
└─ status String Domain status: connected, waiting, not_connected, infected, deleted.
└─ time_created Number Domain creation time in Unix timestamp format.
└─ date_created String Domain attachment date in YYYY-MM-DD format.
└─ dns_servers Array List of the domain's DNS servers.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/domains/details');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'   => 'YOUR_API_KEY',
        
'domain_id' => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Delete domain

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
domain_id Number Yes Unique domain identifier.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
domain_id Number Unique domain identifier.
host_name String Attached domain name in URL format, e.g. https://example.com.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/domains/delete');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'   => 'YOUR_API_KEY',
        
'domain_id' => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Restore domain

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
domain_id Number Yes Unique domain identifier.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
domain_id Number Unique domain identifier.
host_name String Attached domain name in URL format, e.g. https://example.com.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/domains/restore');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'   => 'YOUR_API_KEY',
        
'domain_id' => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get domain status

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
domain_id Number Yes Unique domain identifier.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
domain_id Number Unique domain identifier.
host_name String Attached domain name in URL format, e.g. https://example.com.
status String Current domain status: connected, waiting, not_connected, infected, deleted.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/domains/status');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'   => 'YOUR_API_KEY',
        
'domain_id' => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get list of browsers

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
data Array Array of available browsers.
└─ browser_id Number Unique browser identifier.
└─ name String Browser name, e.g. "Google Chrome".
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/browsers');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = ['api_key' => 'YOUR_API_KEY'];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get list of devices

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
data Array Array of device types.
└─ device_id Number Unique device type identifier.
└─ name String Device type name, e.g. "Desktop".
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/devices');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = ['api_key' => 'YOUR_API_KEY'];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get list of countries

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
data Array Array of available countries.
└─ country_id Number Unique country identifier.
└─ name String Country name in English.
└─ iso_code String ISO country code (e.g. "US" for the United States, "FR" for France).
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/countries');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = ['api_key' => 'YOUR_API_KEY'];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get list of operating systems

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
data Array Array of available operating systems.
└─ os_id Number Unique operating system identifier.
└─ name String Operating system name, e.g. "Windows".
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/operating_systems');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = ['api_key' => 'YOUR_API_KEY'];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get list of languages

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
data Array Array of available languages.
└─ lang_id Number Unique language identifier.
└─ name String Language name in English.
└─ iso_code String ISO language code (e.g. "en" for English, "ru" for Russian).
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/languages');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = ['api_key' => 'YOUR_API_KEY'];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get list of timezones

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
data Array Array of available operating systems.
└─ zone_id Number Unique timezone identifier.
└─ name String Timezone name (city and country), e.g.: "Egypt, Cairo" or "Ghana, Accra".
└─ gmt_offset String Offset relative to GMT, e.g.: +03:00.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/time_zones');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = ['api_key' => 'YOUR_API_KEY'];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get list of connection types

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
data Array Array of available operating systems.
└─ connection_id Number Unique connection type identifier.
└─ name String Connection type name in English.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/connection_types');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = ['api_key' => 'YOUR_API_KEY'];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get statistics

Request URL

Parameter Data type Обязательный Description
api_key String Yes Unique API key used to authenticate the request.
group_by String Yes

Parameter for grouping statistics.

Allowed values: date, hour, day_week, flow, country, city, device, operating_system, browser, brand.

date_ranges String No Date range for filtering in DD.MM.YYYY - DD.MM.YYYY format. Example: 01.01.2023 - 31.12.2023.
filter_countries Array No Array of country IDs for filtering statistics.
filter_statistics Array No Array of flow IDs for filtering statistics.
filter_devices Array No Array of device IDs for filtering statistics.
filter_os Array No Array of OS IDs for filtering statistics.
filter_browsers Array No Array of browser IDs for filtering statistics.
filter_langs Array No Array of language IDs for filtering statistics.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
data Array Array containing statistics data.
└─ group_by String Grouping parameter used to compile the statistics, e.g. "date" or "country".
└─ value String Group value indicating which category the data belongs to (e.g. a date or a country).
└─ hosts Number Number of unique visitors over the given period.
└─ hits Number Total number of visits from clients over the given period.
└─ filtered Number Number of filtered requests over the given period.
└─ ctr Number Click-through rate (CTR), expressed as a percentage.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/statistics');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'           => 'YOUR_API_KEY',
        
'group_by'          => 'browser',
        
'date_ranges'       => '20.10.2024 - 20.10.2024',
        
'filter_countries'  => [107],
        
'filter_flows'      => [6798813897],
        
'filter_devices'    => [2],
        
'filter_os'         => [7],
        
'filter_browsers'   => [2],
        
'filter_langs'      => [1],
    ];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get click data

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
date_ranges String No Date range for filtering in DD.MM.YYYY - DD.MM.YYYY format. Example: 01.01.2023 - 31.12.2023.
filter_countries Array No Array of country IDs for retrieving click data.
filter_flows Array No Array of flow IDs for retrieving click data.
filter_devices Array No Array of device IDs for retrieving click data.
filter_os Array No Array of OS IDs for retrieving click data.
filter_browsers Array No Array of browser IDs for retrieving click data.
filter_filters Array No

Array of filter types for filtering clicks.

Allowed values: success, status, ip_clicks_per_day, clicks_before_filtering, bot, ip_v6, referer, isp, country, device, os, browser, black_ip, vpn_proxy, black_list, white_list.

filter_langs Array No Array of language IDs for filtering clicks.
filter_pages Array No Array of page types. Allowed values: "white" or "offer".
per_page Number No Number of records per page (from 10 to 200). Default: 10.
page Number No Page number, starting from 1. Default: 1.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
data Array Array of click data, each element contains information about a click.
└─ click_id String Unique click identifier.
└─ flow_id Number ID of the flow the click belongs to.
└─ time_created Number Click creation time in Unix timestamp format..
└─ date_created String Click creation date in YYYY-MM-DD format.
└─ country_code String ISO country code (e.g. "US" for the United States, "FR" for France).
└─ ip_address String User IP address.
└─ isp String Internet service provider name.
└─ referer String Referral source URL.
└─ user_agent String Browser User Agent.
└─ device String Device type (e.g. Desktop, Mobile).
└─ brand String Device brand.
└─ os String Operating system.
└─ browser String User browser.
└─ filter_type String Filter type applied to the click.
└─ filter_page String Filtering page type (white or offer).
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/clicks');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'           => 'YOUR_API_KEY',
        
'date_ranges'       => '20.10.2024 - 20.10.2024',
        
'filter_countries'  => [107],
        
'filter_flows'      => [6798813897],
        
'filter_devices'    => [2],
        
'filter_os'         => [6],
        
'filter_browsers'   => [2],
        
'filter_langs'      => [1],
        
'filter_filters'    => ['browser'],
        
'filter_pages'      => ['offer'],
        
'per_page'          => 100,
        
'page'              => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Transfer funds

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
amount Number Yes Transfer amount (minimum 10 USD).
email String Yes Recipient email address for the transfer. The address must be valid.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
transaction_number String Unique transaction number associated with the transfer.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/accounts/transfer_funds');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'   => 'YOUR_API_KEY',
        
'email'     => '[email protected]',
        
'amount'    => 10
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get account balance

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
balance Number Current user account balance.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/accounts/balance');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = ['api_key' => 'YOUR_API_KEY'];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get list of white pages

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
date_ranges String No Date range for filtering in DD.MM.YYYY - DD.MM.YYYY format. Example: 01.01.2023 - 31.12.2023.
status String No Filter by white page status: new, in_progress, completed, failed, canceled, deleted.
search String No Search string by white page name or identifier.
per_page Number No Number of records per page (from 10 to 200). Default: 10.
page Number No Page number, starting from 1. Default: 1.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
total Number Total number of white pages matching the query.
per_page Number Number of records per page.
page Number Current page number in pagination.
data Array Array containing white page data matching the query.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/white_pages');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'       => 'YOUR_API_KEY',
        
'date_ranges'   => '01.01.2023 - 31.12.2023',
        
'status'        => 'active',
        
'search'        => '84b593db13ccd6acf79ec7287d5da586',
        
'per_page'      => 10,
        
'page'          => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Generate white page

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
generator_id Number Yes Unique identifier of the AI generator used to create the white page.
category_id Number Yes Unique identifier of the category used to generate the white page.
vertical_id Number Yes Unique identifier of the vertical used to generate the white page.
language_id Number Yes Unique identifier of the language used to generate the white page.
wp_name String Yes White page name (3 to 64 characters).
wp_domain String No Domain that will be shown on the generated white page, e.g. example.com.
wp_company String No Company name to be shown on the generated white page.
wp_phone String No Phone number to be shown on the generated white page.
wp_email String No Email address to be shown on the generated white page.
wp_keywords String No

Keywords for generating the white page content.

Comma-separated, total length from 3 to 255 characters.

Letters, digits, spaces, hyphens, and underscores are allowed.

Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
white_page_id Number Unique white page identifier.
label String System white page identifier.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/white_pages/generate');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'       => 'YOUR_API_KEY',
        
'generator_id'  => 1,
        
'category_id'   => 1,
        
'vertical_id'   => 1,
        
'language_id'   => 1,
        
'wp_name'       => 'Test white page',
        
'wp_domain'     => 'example.com',
        
'wp_company'    => 'Test company',
        
'wp_phone'      => '+1234567890',
        
'wp_email'      => '[email protected]',
        
'wp_keywords'   => 'keyword1, keyword2, keyword3',
    ];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Regenerate white page

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
white_page_id Number Yes Unique white page identifier.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/white_pages/regenerate');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'       => 'YOUR_API_KEY',
        
'white_page_id' => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get white page details

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
white_page_id Number Yes Unique white page identifier.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
data Array Array containing white page data.
└─ white_page_id Number Unique white page identifier.
└─ generator_id Number Unique identifier of the AI generator used to create the white page.
└─ category_id Number Unique identifier of the category used to generate the white page.
└─ language_id Number Unique identifier of the language used to generate the white page.
└─ vertical_id Number Unique identifier of the vertical used to generate the white page.
└─ name String White page name.
└─ status String Current white page status: new, in_progress, completed, failed, canceled, deleted.
└─ label String System white page identifier.
└─ time_created Number Flow creation time in Unix timestamp format.
└─ date_created String Flow creation date (YYYY-MM-DD).
└─ download_url String URL for downloading the generated white page as a ZIP file.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/white_pages/details');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'       => 'YOUR_API_KEY',
        
'white_page_id' => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Delete white page

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
white_page_id Number Yes Unique white page identifier.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/white_pages/delete');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'       => 'YOUR_API_KEY',
        
'white_page_id' => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get list of AI generators

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
total Number Total number of available AI generators.
data Array Array containing data on the available AI generators.
└─ generator_id Number Unique AI generator identifier.
└─ title String AI generator name.
└─ status String Current AI generator status: active — active, not_active — inactive.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/white_pages/generators');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = ['api_key' => 'YOUR_API_KEY'];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get list of white page categories

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
generator_id Number No Unique AI generator identifier.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
total Number Total number of available categories.
data Array Array containing data on the available categories.
└─ generator_id Number Unique AI generator identifier.
└─ category_id Number Unique category identifier.
└─ title String Category name.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/white_pages/categories');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = [
        
'api_key'       => 'YOUR_API_KEY',
        
'generator_id'  => 1
    
];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get list of generation languages

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
total Number Total number of available languages.
data Array Array containing data on the available languages.
└─ language_id Number Unique language identifier.
└─ title String Language name.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/white_pages/languages');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = ['api_key' => 'YOUR_API_KEY'];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }

Get list of verticals

Request URL

Parameter Data type Required Description
api_key String Yes Unique API key used to authenticate the request.
Parameter Data type Description
status String Field indicating whether the request succeeded ("success") or failed ("error").
msg String Error message or additional information about the request.
code Number Response code, e.g. 200 for a successful request.
total Number Total number of available verticals.
data Array Array containing data on the available verticals.
└─ vertical_id Number Unique vertical identifier.
└─ title String Vertical name.
<?php


    
function api_request($data = [])
    {
        
$ch curl_init('https://cloaking.house/api/white_pages/verticals');

        
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST'POST');
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
        
curl_setopt($chCURLOPT_IPRESOLVECURL_IPRESOLVE_V4);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));

        
$body curl_exec($ch);
        
$info curl_getinfo($ch);

        
curl_close($ch);

        if ( ! empty(
$info['http_code']) && $info['http_code'] == 200) {
            return 
json_decode($bodyTRUE);
        }
    }


    
$body_request = ['api_key' => 'YOUR_API_KEY'];


    
$api_request api_request($body_request);
    if ( ! empty(
$api_request['status'])) {
        echo 
'<pre>';
        
print_r($api_request);
        echo 
'</pre>';
    }