API Docs

Version:  v1.1

GET/v1.1/domain_whitelist

Return a list of domains added to your domain whitelist, and whether the domain whitelist is currently being enforced.


Endpoint

https://api.sharedcount.com/v1.1/domain_whitelist


Parameters

NameTypeDescription Required
apikeystringYour API Key.true

Code Examples

Curl
Node.js
Python
Php
curl 'https://api.sharedcount.com/v1.1/domain_whitelist?apikey=YOUR_API_KEY'
npm i sharedcount-sdk

const SharedCountApi = require('sharedcount-sdk');
let sharedCountApiInstance = new SharedCountApi('YOUR_API_KEY');
 
//Return a list of domains added to your domain whitelist, and whether the domain whitelist is currently being enforced.
var domainWhiteList = sharedCountApiInstance.getWhiteListedDomains();
pip install sharedcountsdk

from sharedcountsdk import SharedCountApi
sharedCountApiInstance = SharedCountApi('YOUR_API_KEY')
 
#Return a list of domains added to your domain whitelist, and whether the domain whitelist is currently being enforced.
domainWhiteList = sharedCountApiInstance.getDomainWhiteList()
 
composer require sharedcount/sharedcount-sdk

require __DIR__ . '/vendor/sharedcount/sharedcount-sdk/lib/api.php';
$sharedcountApiInstance = new SharedcountApi('YOUR_API_KEY');
 
//Return a list of domains added to your domain whitelist, and whether the domain whitelist is currently being enforced.
$domainWhiteList = $sharedcountApiInstance->getWhiteListedDomains();

Result Format

Success
Failure
For users with the whitelist enabled
{
    "domains": [],
    "whitelist_domains_enabled": false
}
Unauthorized
{
    "domains": ["yourdomain.com"],
    "whitelist_domains_enabled": true
}