DNS blacklists check

This API checks if an IP address is listed in various DNS blacklists and returns the result in plain text or JSON format
800ms

About

The API accepts an IP address as input and checks its presence in a predefined list of DNS blacklists. It sends requests to a third-party service to perform the checks and collects the results. The response can be returned in plain text or JSON format, indicating which blacklists (if any) the IP address is listed in DNSBL
by GLOBUS.studio

Endpoint

				
					/**
 * DNSBL Blacklist Check API
 * GET https://api.globus.studio/v2/dnsbl?ip=209.85.161.176&format=json
 * Response (json): { "dnsbl.sorbs.net": "127.0.0.6", ... }
 * Response (plain): dnsbl.sorbs.net: 127.0.0.6
 */

async function checkDnsbl(ip) {
    const res = await fetch(`https://api.globus.studio/v2/dnsbl?ip=${encodeURIComponent(ip)}&format=json`);
    return res.json();
}

// Check IP against blacklists
checkDnsbl('209.85.161.176').then(lists => {
    for (const [list, code] of Object.entries(lists)) console.log(`${list}: ${code}`);
});