Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ip2location/ip2proxy-php-api
IP2Proxy PHP module provides an easy way to call the IP2Proxy API to query proxy IP address and its country, region, city, ISP name and proxy types.
https://github.com/ip2location/ip2proxy-php-api
ip2location ip2proxy-api ip2proxy-php proxy-api proxy-checker proxy-database proxy-information
Last synced: 24 days ago
JSON representation
IP2Proxy PHP module provides an easy way to call the IP2Proxy API to query proxy IP address and its country, region, city, ISP name and proxy types.
- Host: GitHub
- URL: https://github.com/ip2location/ip2proxy-php-api
- Owner: ip2location
- License: mit
- Created: 2017-11-16T08:25:36.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-19T01:37:46.000Z (10 months ago)
- Last Synced: 2024-11-06T11:12:27.272Z (about 2 months ago)
- Topics: ip2location, ip2proxy-api, ip2proxy-php, proxy-api, proxy-checker, proxy-database, proxy-information
- Language: PHP
- Size: 8.79 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.TXT
Awesome Lists containing this project
README
# IP2Proxy PHP API
> This project has been merged into [IP2Proxy-PHP-Module](https://github.com/ip2location/ip2proxy-php). We will no longer maintain and support this project. Please visit [IP2Proxy-PHP-Module](https://github.com/ip2location/ip2proxy-php) for latest updates or enhancements.
This module allows user to query an IP address if it was being used as VPN anonymizer, open proxies, web proxies, Tor exits, data center, web hosting (DCH) range, search engine robots (SES), residential proxies (RES), consumer privacy networks (CPN), and enterprise private networks (EPN). It lookup the proxy IP address using **IP2Proxy API**.
## Getting Started
To begin, an API key is required for this module to function. Find further information at https://www.ip2location.com/ip2proxy-web-service## Installation
Add the following to your composer.json file:```json
{
"require": {
"ip2location/ip2proxy-php-api": "1.*"
}
}
```## Usage
```php
query('1.2.3.4')) {
echo 'Country Code: ' . $api->countryCode . '
';
echo 'Country Name: ' . $api->countryName . '
';
echo 'Region: ' . $api->regionName . '
';
echo 'City: ' . $api->cityName . '
';
echo 'ISP: ' . $api->isp . '
';
echo 'Domain: ' . $api->domain . '
';
echo 'Usage Type: ' . $api->usageType . '
';
echo 'ASN: ' . $api->asn . '
';
echo 'AS: ' . $api->as . '
';
echo 'Last Seen: ' . $api->lastSeen . '
';
echo 'Proxy Type: ' . $api->proxyType . '
';
echo 'Is Proxy: ' . $api->isProxy . '
';
echo 'Threat: ' . $api->threat . '
';
}
```## Response message
| Name | Description |
| ---------- | ------------- |
| response | OK if success, otherwise failed. |
| countryCode | 2 digits country code. |
| countryName | Country name. |
| regionName | Region or state name. |
| cityName | City name. |
| isp | The service provider name. |
| isProxy | YES if the IP is a Proxy. NO if the IP is not a proxy. DCH if the IP belongs to Hosting Provider, Data Center or Content Delivery Network. Note: DCH is only available for PX2, PX3 and PX4 query |
| proxyType | The type of proxy service. |
| domain | Internet domain name associated with IP address range. |
| usageType | Usage type classification of ISP or company. Refer **Usage Type** section. |
| asn | Autonomous system number (ASN). |
| as | Autonomous system (AS) name. |
| lastSeen | Proxy last seen in days. |
| threat | Security threat reported. |##### Usage Type
- (COM) Commercial
- (ORG) Organization
- (GOV) Government
- (MIL) Military
- (EDU) University/College/School
- (LIB) Library
- (CDN) Content Delivery Network
- (ISP) Fixed Line ISP
- (MOB) Mobile ISP
- (DCH) Data Center/Web Hosting/Transit
- (SES) Search Engine Spider
- (RSV) Reserved