IP2Proxy Zig API
Database
Member |
Description |
|---|---|
|
Memory-maps a BIN file read-only. |
|
Releases the mapping and closes the file. |
|
Looks up one address in IPv4 or IPv6 notation and returns a |
|
Returns the package type, column count, build date and row counts. |
|
Whether the file carries IPv4 ranges. |
|
Whether the file carries IPv6 ranges. |
|
Returns one field as |
Proxy status
record.is_proxy is a ProxyStatus:
Value |
Number |
Meaning |
|---|---|---|
|
0 |
The range is not a proxy. |
|
1 |
VPN, Tor, public, web, residential, consumer privacy or enterprise private network. |
|
2 |
Data center, search engine or AI crawler ( |
Record fields
Field Name |
Type |
Description |
|---|---|---|
|
|
Computed verdict. |
|
|
Proxy type: |
|
|
Two-character country code based on ISO 3166. |
|
|
Country name based on ISO 3166. |
|
|
Region or state name. |
|
|
City name. |
|
|
Internet Service Provider or company’s name. |
|
|
Internet domain name associated with IP address range. |
|
|
Usage type classification of the ISP or company. |
|
|
Autonomous system number (ASN). |
|
|
Autonomous system (AS) name. |
|
|
Proxy last seen, in days. |
|
|
Security threat reported for the address. |
|
|
VPN provider name, when available. |
|
|
IP2Proxy fraud score from 0 to 99. |
A field is null when the database does not carry it or the record has no value for it. A dash stored in the file stays a dash.
Errors
Error |
Meaning |
|---|---|
|
The text is not an IPv4 or IPv6 address. |
|
No range in the database contains the address. |
|
An IPv6 address was given to an IPv4-only database. |
|
The header or a record points outside the file, or the file is not an IP2Proxy database. |
Database.open also returns the usual file and memory-map errors.