Download proxies
Headers
Name
Value
Path parameters
Name
Type
Description
Query parameters
Name
Type
Description
Request examples
curl -X GET "https://geonix.com/personal/api/v1/YOUR_API_KEY_HERE/proxy/download/ipv4" -o proxies_ipv4.csv
<?php
$apiKey = 'YOUR_API_KEY_HERE'; // Replace this with your actual API key
$url = "https://geonix.com/personal/api/v1/$apiKey/proxy/download/ipv4";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);
// Save the result to a file
file_put_contents('proxies_ipv4.csv', $result);
?>
import java.io.BufferedInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
public class DownloadProxyListExample {
public static void main(String[] args) {
String apiKey = "YOUR_API_KEY_HERE"; // Replace with your actual API key
String urlString = "https://geonix.com/personal/api/v1/" + apiKey + "/proxy/download/ipv4";
try (BufferedInputStream in = new BufferedInputStream(new URL(urlString).openStream());
FileOutputStream fileOutputStream = new FileOutputStream("proxies_ipv4.csv")) {
byte dataBuffer[] = new byte[1024];
int bytesRead;
while ((bytesRead = in.read(dataBuffer, 0, 1024)) != -1) {
fileOutputStream.write(dataBuffer, 0, bytesRead);
}
} catch (IOException e) {
// Handle exceptions
e.printStackTrace();
}
}
}Response examples
Last updated