Skip to content
OSINTtools.io

IP2Proxy API

Checks whether an IP address is a VPN, open proxy, Tor exit, data centre or residential proxy, with location and ISP.

Base URL
https://api.ip2proxy.com
Sign-in
API key
Pricing
Credits
Format
REST
Endpoints
1

Compiled by OSINTtools.io editors from ip2location.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The IP2Proxy web service tells you whether an IP address is a proxy, VPN, Tor exit node, data center, search engine robot or residential proxy. Higher packages add country, region, city, ISP, domain, usage type, ASN, last seen, threat and provider fields. Investigators use it to judge whether a connection came from anonymizing infrastructure.

Calls are HTTP or HTTPS GET requests to https://api.ip2proxy.com/ with the key in the key query parameter. The package parameter (PX1 to PX11) sets the fields returned and the credits charged (1 credit for PX1 up to 11 for PX11). The format is JSON or XML.

The docs page says new registrations are no longer accepted; existing customers keep their keys, and the vendor recommends IP2Location.io for new users. The credit-check call (?key=...&check=1) is not documented with a response shape and is left out.

Quick start

  1. Get a key

    Create an account with IP2Proxy and copy your api key. Where to get it

  2. Make your first request

    Proxy detection for an IPv4 or IPv6 address.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.ip2proxy.com/?key=YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "response": "OK",
      "countryCode": "NL",
      "countryName": "Netherlands",
      "regionName": "Example Region",
      "cityName": "Example City",
      "isp": "Example Hosting BV",
      "domain": "example.com",
      "usageType": "DCH",
      "asn": "64500",
      "as": "Example Hosting",
      "lastSeen": 1,
      "proxyType": "DCH",
      "isProxy": "YES",
      "threat": "-",
      "provider": "-",
      "creditsConsumed": 11
    }

Authentication

Send your API key in the key query parameter of every request.

New registrations are closed; existing customers only.

Get a key from IP2Proxy

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs

Pricing: credits.

Lookup

  • Takes: IP address
  • Passive: the target is not contacted
  • Cost: 1 to 11 credits depending on package

Fields returned depend on the package. If ip is omitted, the server's own IP is used. isProxy shows YES or NO; proxyType codes are VPN, TOR, DCH, PUB, WEB, SES and RES (RES only in PX10 and PX11); threat codes are SPAM, SCANNER and BOTNET.

Query parameters

ipstringtakes your ip address

IPv4 or IPv6 address to look up

Example: 203.0.113.7
packagestring

Package that sets the fields returned

Example: PX11Default: PX1One of: PX1, PX2, PX3, PX4, PX5, PX6, PX7, PX8, PX9, PX10, PX11
formatstring

Response format

Example: jsonDefault: jsonOne of: json, xml
Response fields · 16Show

responsestring

Status text, OK on success

countryCodestring

Two-character ISO 3166 country code

countryNamestring

Country name

regionNamestring

Region or state

cityNamestring

City

ispstring

ISP or company name

domainstring

Domain tied to the IP range

usageTypestring

Usage classification such as COM, DCH, ISP, MOB

asnstring

Autonomous system number

asstring

Autonomous system name

lastSeeninteger

Days since the proxy was last seen

proxyTypestring

Type of proxy

isProxystring

YES or NO

threatstring

Reported threat, or -

providerstring

VPN provider name, or -

creditsConsumedinteger

Credits used by the query

curl 'https://api.ip2proxy.com/?key=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "response": "OK",
  "countryCode": "NL",
  "countryName": "Netherlands",
  "regionName": "Example Region",
  "cityName": "Example City",
  "isp": "Example Hosting BV",
  "domain": "example.com",
  "usageType": "DCH",
  "asn": "64500",
  "as": "Example Hosting",
  "lastSeen": 1,
  "proxyType": "DCH",
  "isProxy": "YES",
  "threat": "-",
  "provider": "-",
  "creditsConsumed": 11
}