Skip to main content

IPDetective Client

IPDetective is an API that focuses on bot and non-human IP detection to quickly identify if an IP address comes from a datacenter, VPN or proxy. You can signup to the free API by simply signing in to access your API key. IPDetective tracks over 1000 ASNs and detects over 250 million IP addresses as non-human users from +100 different origins, ranging from data centers, botnets, proxies and vpns.

Features

  • IP Bot Detection
  • IP Geolocation
  • IP ASN

Usage

import os
from ipdetective import IPDetective

def main():
    api_key = os.getenv('IPDETECTIVE_API_KEY')
    ip_client = IPDetective(api_key)
    
    # Get information about a singular IP address
    ip_info = ip_client.GetIpInfo('8.8.8.8')
    print(ip_info)
    # {'ip': '8.8.8.8', 'bot': True, 'type': 'bot', 'asn': 15169, 'asn_description': 'GOOGLE', 'country_code': 'US', 'country_name': 'United States of America'}

    # Get information about build IP addresses
    bulk_ip_info = ip_client.GetBulkIpInfo(['8.8.8.8', '1.1.1.1'])
    print(bulk_ip_info)
    # [{'ip': '1.1.1.1', 'bot': True, 'type': 'bot', 'asn': 13335, 'asn_description': 'CLOUDFLARENET', 'country_code': 'US', 'country_name': 'United States of America'}, {'ip': '8.8.8.8', 'bot': True, 'type': 'bot', 'asn': 15169, 'asn_description': 'GOOGLE', 'country_code': 'US', 'country_name': 'United States of America'}]

if __name__ == "__main__":
    main()

Check out our website

Metadata

Release files for ipdetective 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ipdetective 1.0.2
File Size Uploaded
ipdetective-1.0.2.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ipdetective 1.0.2
File Interpreter ABI Platform
ipdetective-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.1 kB

Release files / ipdetective-1.0.2.tar.gz

Download URL ipdetective-1.0.2.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
521330aef0f7b732403ba9bb6ea698811aed82147d483f017f1e14e0bb0e7d27
BLAKE2b-256 checksum
How to use checksums
8c15955740e93d6a6079c2bb01c81134e3cc0f3cae85f7cdc319a2fc1b6e627b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / ipdetective-1.0.2-py3-none-any.whl

Download URL ipdetective-1.0.2-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
16246185bdc8ea81a85fd684fc55f5c35a2ad83c92a27bd8d103d5b2d6111bd5
BLAKE2b-256 checksum
How to use checksums
d18e414565ad72a12146f5858ec88576884b1b8488faee977af3de0892dbe5d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page