{"id":21945873,"url":"https://github.com/ip2location/ip2proxy-php-api","last_synced_at":"2025-06-21T15:06:42.975Z","repository":{"id":56993104,"uuid":"110943983","full_name":"ip2location/ip2proxy-php-api","owner":"ip2location","description":"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.","archived":false,"fork":false,"pushed_at":"2024-02-19T01:37:46.000Z","size":9,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-20T15:10:59.821Z","etag":null,"topics":["ip2location","ip2proxy-api","ip2proxy-php","proxy-api","proxy-checker","proxy-database","proxy-information"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ip2location.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.TXT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-11-16T08:25:36.000Z","updated_at":"2024-01-03T01:17:47.000Z","dependencies_parsed_at":"2024-02-19T02:38:31.886Z","dependency_job_id":"da8c8b91-288e-4bfe-bd7c-fedc721d2599","html_url":"https://github.com/ip2location/ip2proxy-php-api","commit_stats":{"total_commits":7,"total_committers":3,"mean_commits":"2.3333333333333335","dds":0.4285714285714286,"last_synced_commit":"60ec12915f93e9618995ee3539c540fff35bfc23"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ip2location/ip2proxy-php-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fip2proxy-php-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fip2proxy-php-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fip2proxy-php-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fip2proxy-php-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ip2location","download_url":"https://codeload.github.com/ip2location/ip2proxy-php-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fip2proxy-php-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261143148,"owners_count":23115674,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ip2location","ip2proxy-api","ip2proxy-php","proxy-api","proxy-checker","proxy-database","proxy-information"],"created_at":"2024-11-29T04:19:56.276Z","updated_at":"2025-06-21T15:06:37.965Z","avatar_url":"https://github.com/ip2location.png","language":"PHP","readme":"# IP2Proxy PHP API\n\n\u003e 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.\n\nThis 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**. \n\n\n## Getting Started\nTo begin, an API key is required for this module to function. Find further information at https://www.ip2location.com/ip2proxy-web-service\n\n## Installation\nAdd the following to your composer.json file:\n\n```json\n{\n  \"require\": {\n\t\"ip2location/ip2proxy-php-api\": \"1.*\"\n  }\n}\n```\n\n## Usage\n\n```php\n\u003c?php\n\nrequire 'class.IP2ProxyAPI.php';\n\n// Second parameter supports PX1 to PX10\n$api = new IP2ProxyAPI('YOUR_API_KEY', 'PX8');\n\nif ($api-\u003equery('1.2.3.4')) {\n\techo '\u003cstrong\u003eCountry Code\u003c/strong\u003e: ' . $api-\u003ecountryCode . '\u003cbr\u003e';\n\techo '\u003cstrong\u003eCountry Name\u003c/strong\u003e: ' . $api-\u003ecountryName . '\u003cbr\u003e';\n\techo '\u003cstrong\u003eRegion\u003c/strong\u003e: ' . $api-\u003eregionName . '\u003cbr\u003e';\n\techo '\u003cstrong\u003eCity\u003c/strong\u003e: ' . $api-\u003ecityName . '\u003cbr\u003e';\n\techo '\u003cstrong\u003eISP\u003c/strong\u003e: ' . $api-\u003eisp . '\u003cbr\u003e';\n\techo '\u003cstrong\u003eDomain\u003c/strong\u003e: ' . $api-\u003edomain . '\u003cbr\u003e';\n\techo '\u003cstrong\u003eUsage Type\u003c/strong\u003e: ' . $api-\u003eusageType . '\u003cbr\u003e';\n\techo '\u003cstrong\u003eASN\u003c/strong\u003e: ' . $api-\u003easn . '\u003cbr\u003e';\n\techo '\u003cstrong\u003eAS\u003c/strong\u003e: ' . $api-\u003eas . '\u003cbr\u003e';\n\techo '\u003cstrong\u003eLast Seen\u003c/strong\u003e: ' . $api-\u003elastSeen . '\u003cbr\u003e';\n\techo '\u003cstrong\u003eProxy Type\u003c/strong\u003e: ' . $api-\u003eproxyType . '\u003cbr\u003e';\n\techo '\u003cstrong\u003eIs Proxy\u003c/strong\u003e: ' . $api-\u003eisProxy . '\u003cbr\u003e';\n    echo '\u003cstrong\u003eThreat\u003c/strong\u003e: ' . $api-\u003ethreat . '\u003cbr\u003e';\n}\n```\n\n\n## Response message\n\n| Name | Description |\n| ---------- | ------------- |\n| response | OK if success, otherwise failed. |\n| countryCode | 2 digits country code. |\n| countryName | Country name. |\n| regionName | Region or state name. |\n| cityName | City name. |\n| isp | The service provider name. |\n| 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 |\n| proxyType | The type of proxy service. |\n| domain | Internet domain name associated with IP address range. |\n| usageType | Usage type classification of ISP or company. Refer **Usage Type** section. |\n| asn | Autonomous system number (ASN).                              |\n| as | Autonomous system (AS) name. |\n| lastSeen | Proxy last seen in days. |\n| threat | Security threat reported. |\n\n\n\n##### Usage Type\n\n- (COM) Commercial\n- (ORG) Organization\n- (GOV) Government\n- (MIL) Military\n- (EDU) University/College/School\n- (LIB) Library\n- (CDN) Content Delivery Network\n- (ISP) Fixed Line ISP\n- (MOB) Mobile ISP\n- (DCH) Data Center/Web Hosting/Transit\n- (SES) Search Engine Spider\n- (RSV) Reserved","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fip2location%2Fip2proxy-php-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fip2location%2Fip2proxy-php-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fip2location%2Fip2proxy-php-api/lists"}