• Your shopping cart is empty!

C Library

This library is the C programming language library to support all IP2Proxy™ BIN database products to query proxy IP address and its country, region, city, ISP name and proxy types. It has been optimized for speed and memory utilization.

Installation
Unix/Linux
  1. Decompress the archive.
  2. Navigate to working directory.
    cd ip2proxy-c-master
  3. Run the following commands:
    autoreconf -i -v --force
    ./configure
    make
    make install
  4. To test it, go to test folder.
    cd test
  5. And run the sample application
    test-IP2Proxy


Windows
  1. Decompress the archive.
  2. Open command prompt and navigate to Microsoft Visual Studio Visual C directory and execute vcvarsall.bat or vcvars32.bat. (Alternatively, open Visual Studio Command Prompt located in the start menu under Microsoft Visual Studio\Visual Studio Tools)
  3. Navigate to working directory.
    cd ip2proxy-c-master
  4. Run the following commands:
    nmake Makefile.win
  5. To test it, go to test folder.
    cd test
  6. And run the sample application
    test-IP2Proxy


MacOS
  1. Decompress the archive.
  2. Navigate to working directory.
    cd ip2proxy-c-master
  3. Run the following commands:
    autoreconf -i -v --force
    export CFLAGS=-I/usr/include/malloc
    ./configure
    make
    make install
  4. To test it, go to test folder.
    cd test
  5. And run the sample application
    test-IP2Proxy
Sample Codes
#include "IP2Proxy.h"

IP2Proxy *IP2ProxyObj = IP2Proxy_open("../data/IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP.SAMPLE.BIN");
IP2ProxyRecord *record = IP2Proxy_get_all(IP2ProxyObj, "161.11.12.13");
printf("%s %s %s %s %s %f %f %s %s %s %s %s %s %s %s %s %s %s %s %s\n",
   record->country_short,
   record->country_long,
   record->region,
   record->city,
   record->isp,
   record->is_proxy,
   record->proxy_type);
IP2Proxy_free_record(record);
IP2Proxy_close(IP2ProxyObj);
Sample IP2Proxy Databases (BIN)
Sample Packages IPv4 + IPv6
IP2Proxy PX1 Sample BIN File Download (14.37 MB)
IP2Proxy PX2 Sample BIN File Download (16.19 MB)
IP2Proxy PX3 Sample BIN File Download (20.54 MB)
IP2Proxy PX4 Sample BIN File Download (27.30 MB)
IP2Proxy PX5 Sample BIN File Download (29.24 MB)
IP2Proxy PX6 Sample BIN File Download (29.91 MB)
IP2Proxy PX7 Sample BIN File Download (32.20 MB)
IP2Proxy PX8 Sample BIN File Download (32.81 MB)