In this tutorial, we use the IP2Proxy™ Web Service to detect proxy details from the visitor’s IP address. Instead of loading the full database, you can also lookup IP address via our hosted web service.
IP2Proxy™ Web API uses a single web interface to perform the lookup logic. The protocol used is HTTP GET. You can test this API as easy as using a web browser.
|key||(required) API key. Please use “demo” for evaluation.|
|ip||(optional) IP address (IPv4) for lookup purpose. If not present, the server IP address will be used for the lookup.|
|package||(optional) If not present, the web service will assume the PX1 package query. Valid value: PX1 | PX2 | PX3 | PX4|
|format||(optional) If not present, json format will be returned as the search result. Valid value: json | xml|
Below are the sample codes written in PHP to query and display user’s proxy information.