Content-Length: 57004 | pFad | http://www.ip2location.com/documentation/ip2proxy-libraries/dart/get-started

HX IP2Location IP Geolocation Dart Module | IP2Location

Get Started With IP2Proxy Dart Package

Dependencies

This library requires IP2Proxy BIN database to function. You may download the BIN database at


Installation

dart pub add ip2proxy

Sample Codes

Query proxy information from BIN database

You can query the proxy information from the IP2Proxy BIN database as below:

import 'package:ip2proxy/ip2proxy.dart';
import 'package:ip2proxy/src/proxy_result.dart';

Future<void> main() async {
 var dbFile =
 r'C:\your_folder\IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP-DOMAIN-USAGETYPE-ASN-LASTSEEN-THREAT-RESIDENTIAL-PROVIDER-FRAUDSCORE.BIN';
 IP2Proxy ipx = IP2Proxy(databasePath: dbFile);
 var ip = '8.8.8.8';

 ProxyResult result = await ipx.getAll(ip);

 print('version: ${IP2Proxy.apiVersion()}');
 print('packageVersion: ${ipx.packageVersion()}');
 print('databaseVersion: ${ipx.databaseVersion()}');
 print('ipAddress: ${result.ipAddress}');
 print('isProxy: ${result.isProxy}');
 print('proxyType: ${result.proxyType}');
 print('countryShort: ${result.countryShort}');
 print('countryLong: ${result.countryLong}');
 print('region: ${result.region}');
 print('city: ${result.city}');
 print('isp: ${result.isp}');
 print('domain: ${result.domain}');
 print('usageType: ${result.usageType}');
 print('asn: ${result.asn}');
 print('asName: ${result.asName}');
 print('lastSeen: ${result.lastSeen}');
 print('threat: ${result.threat}');
 print('provider: ${result.provider}');
 print('fraudScore: ${result.fraudScore}');
}

IP2Proxy Sample Database (BIN)

Sample Packages - BIN File IPv4 + IPv6
IP2Proxy PX1 Download (447.98 kB)
IP2Proxy PX2 Download (471.66 kB)
IP2Proxy PX3 Download (513.64 kB)
IP2Proxy PX4 Download (557.44 kB)
IP2Proxy PX5 Download (582.40 kB)
IP2Proxy PX6 Download (586.94 kB)
IP2Proxy PX7 Download (642.02 kB)
IP2Proxy PX8 Download (651.54 kB)
IP2Proxy PX9 Download (651.66 kB)
IP2Proxy PX10 Download (915.74 kB)
IP2Proxy PX11 Download (925.17 kB)
IP2Proxy PX12 Download (929.83 kB)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://www.ip2location.com/documentation/ip2proxy-libraries/dart/get-started

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy