In an increasingly interconnected world, measuring proxy performance across different regions is critical. Our global infrastructure spans the United States, Europe, and Asia, allowing you to test your proxies from multiple vantage points. This way, you gain a clear understanding of real-world latency and reliability, ensuring that your users experience consistently high performance, no matter where they are located.Below you can see how the Ping Proxies API distributes proxy tests across multiple servers and returns combined results.
The Python script example shows how to simply create a test run for a single proxy.
import requestsimport sys# API credentialsAPI_PRIVATE_KEY = "your_private_key"API_PUBLIC_KEY = "your_public_key"BASE_URL = "https://api.pingproxies.com/1.0/public/user"# Headersheaders = { "X-API-Public-Key": API_PUBLIC_KEY, "X-API-Private-Key": API_PRIVATE_KEY, "Content-Type": "application/json"}# Hardcoded proxy and test configurationPROXY_STRING = "192.168.1.100:8080:username:password" # Replace with your actual proxyTARGET_URL = "https://pingproxies.com"TEST_SERVER_ID = "newyork-3-digitalocean-proxytester-1" # Replace with actual server ID# Create the test payloadpayload = { "proxies": [{"proxy_string": PROXY_STRING}], "proxy_tester_server_id": [TEST_SERVER_ID], "urls": [TARGET_URL],}try: response = requests.post(f"{BASE_URL}/proxy_test_run/create", json=payload, headers=headers) if response.status_code != 200: print(f"❌ Error: {response.status_code}") print(f"Response: {response.text}") sys.exit(1) result = response.json() print("\n✅ Proxy test created successfully!") print(f"Response: {result}") # Extract and display key results if "data" in result: for run_id, test_data in result["data"].items(): if "results" in test_data: for test_result in test_data["results"]: status_code = test_result.get("proxy_test_result_status_code", "N/A") response_time = test_result.get("proxy_test_result_response_time", "N/A") city = test_result.get("proxy_tester_proxy_city_name", "N/A") country = test_result.get("proxy_tester_proxy_country_id", "N/A") print(f"\nTest Results:") print(f"Status Code: {status_code}") print(f"Response Time: {response_time}ms") print(f"Location: {city}, {country}")except Exception as e: print(f"❌ Unexpected error: {e}")
Rate Limit API users can create a maximum of 5000 proxy_test_run sessions per day through the API by standard. Contact our support team with justification if you would like to test more proxies than this.