IP Intelligence API

Comprehensive IP threat intelligence with blacklist checks, Tor exit detection, proxy detection, and infrastructure classification.

Last updated Dec 1, 2024

The IP Intelligence API provides comprehensive threat analysis:

  • Blacklist Checks: Multiple spam and abuse databases
  • Tor Exit Detection: Real-time Tor exit node identification
  • Proxy Detection: Known proxy and anonymizer detection
  • Infrastructure Classification: Datacenter, cloud, mobile, residential

Endpoint

GET https://api.requestguard.com/v1/ip/intelligence

Parameters

ParameterTypeRequiredDescription
ipstringYesThe IP address to analyze (IPv4 or IPv6)

Response

{
  "success": true,
  "data": {
    "ip": "185.220.101.1",
    "threatLevel": "high",
    "threatScore": 75,
    "riskFactors": [
      "tor_exit_node",
      "blacklisted_2_lists",
      "spamhaus_zen: SBL - Direct spam source"
    ],
    "blacklists": [
      {
        "name": "Spamhaus ZEN",
        "zone": "zen.spamhaus.org",
        "listed": true,
        "category": "combined",
        "returnCode": "127.0.0.2",
        "details": "SBL - Direct spam source"
      },
      {
        "name": "Barracuda",
        "zone": "b.barracudacentral.org",
        "listed": true,
        "category": "spam"
      },
      {
        "name": "SpamCop",
        "zone": "bl.spamcop.net",
        "listed": false,
        "category": "spam"
      }
    ],
    "blacklistCount": 2,
    "isTorExit": true,
    "isProxy": false,
    "isAnonymous": true,
    "connectionType": "tor",
    "isDatacenter": true,
    "isHosting": true,
    "isMobile": false,
    "isResidential": false,
    "cloudProvider": "Hetzner",
    "isMailServer": false,
    "asn": 24940,
    "asName": "HETZNER-AS, DE",
    "bgpPrefix": "185.220.101.0/24",
    "country": "DE",
    "hostname": "tor-exit.example.org",
    "_meta": {
      "queriedAt": "2024-12-01T12:00:00.000Z",
      "responseTime": 342
    }
  }
}

Response Fields

Threat Classification

FieldTypeDescription
threatLevelstringOverall threat level: low, medium, high, critical
threatScorenumberThreat score (0-100)
riskFactorsarrayList of identified risk factors

Blacklist Results

FieldTypeDescription
blacklistsarrayIndividual DNSBL check results
blacklistCountnumberNumber of blacklists where IP is listed

Blacklist Object

FieldTypeDescription
namestringDNSBL name
zonestringDNSBL zone
listedbooleanWhether IP is listed
categorystringCategory (spam, proxy, combined)
returnCodestringDNS return code (e.g., 127.0.0.2)
detailsstringHuman-readable listing reason

Anonymity Detection

FieldTypeDescription
isTorExitbooleanIP is a Tor exit node
isProxybooleanIP is a known proxy
isAnonymousbooleanIP provides anonymity (Tor or proxy)

Infrastructure Classification

FieldTypeDescription
connectionTypestringPrimary connection type
isDatacenterbooleanIP belongs to a datacenter
isHostingbooleanIP is from a hosting provider
isMobilebooleanIP is from a mobile carrier
isResidentialbooleanIP appears to be residential
cloudProviderstringDetected cloud provider name
isMailServerbooleanHostname suggests mail server

Connection Types

TypeDescription
torTor network exit node
vpnVPN service
proxyProxy server
cloudCloud provider (AWS, GCP, Azure, etc.)
datacenterGeneric datacenter
hostingHosting provider
mobileMobile carrier
satelliteSatellite internet
residentialResidential ISP

Threat Scoring

Score RangeLevelDescription
0-39LowNo significant threats detected
40-59MediumMinor risk factors present
60-79HighMultiple risk factors or blacklist hits
80-100CriticalSevere threats (malware, Tor + blacklisted)

Score Factors

FactorPoints
Each blacklist hit+20
Tor exit node+35
Proxy detected+25
Datacenter (no cloud provider)+15
No reverse DNS+5

Example Requests

Basic Intelligence Check

curl "https://api.requestguard.com/v1/ip/intelligence?ip=8.8.8.8"

Check Known Bad IP

curl "https://api.requestguard.com/v1/ip/intelligence?ip=185.220.101.1"

Example Response (Clean IP)

{
  "success": true,
  "data": {
    "ip": "8.8.8.8",
    "threatLevel": "low",
    "threatScore": 0,
    "riskFactors": [],
    "blacklists": [
      {
        "name": "Spamhaus ZEN",
        "zone": "zen.spamhaus.org",
        "listed": false,
        "category": "combined"
      }
    ],
    "blacklistCount": 0,
    "isTorExit": false,
    "isProxy": false,
    "isAnonymous": false,
    "connectionType": "cloud",
    "isDatacenter": false,
    "isHosting": false,
    "isMobile": false,
    "isResidential": false,
    "cloudProvider": "google",
    "isMailServer": false,
    "asn": 15169,
    "asName": "GOOGLE, US",
    "bgpPrefix": "8.8.8.0/24",
    "country": "US",
    "hostname": "dns.google",
    "_meta": {
      "queriedAt": "2024-12-01T12:00:00.000Z",
      "responseTime": 156
    }
  }
}

Error Responses

Missing Parameter

{
  "success": false,
  "error": {
    "code": "MISSING_PARAMETER",
    "message": "Missing required parameter: ip"
  }
}

Invalid IP

{
  "success": false,
  "error": {
    "code": "INVALID_IP",
    "message": "Invalid IP address format"
  }
}

Private IP

{
  "success": false,
  "error": {
    "code": "PRIVATE_IP",
    "message": "Cannot lookup private IP address"
  }
}

Rate Limits

PlanRequests per minute
Free10
Pro100
EnterpriseUnlimited

Use Cases

  • Fraud Prevention: Block high-risk IPs from transactions
  • Bot Detection: Identify datacenter/proxy traffic
  • Abuse Prevention: Check IPs against blacklists
  • Security Monitoring: Alert on Tor/VPN usage
  • Email Security: Verify sender IP reputation
  • Access Control: Block anonymous traffic