Reference list
Headers
Name
Value
Path parameters
Name
Type
Description
Request examples
curl -X GET "https://geonix.com/personal/api/v1/YOUR_API_KEY_HERE/reference/list/ipv4" \
-H "Accept: application/json"<?php
$apiKey = 'YOUR_API_KEY_HERE'; // Replace with your actual API key
$url = "https://geonix.com/personal/api/v1/$apiKey/reference/list/ipv4";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: application/json'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class FetchReferenceInfoExample {
public static void main(String[] args) {
String apiKey = "YOUR_API_KEY_HERE"; // Replace with your API key
String urlString = "https://geonix.com/personal/api/v1/" + apiKey + "/reference/list/ipv4";
try {
URL url = new URL(urlString);
HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.setRequestProperty("Accept", "application/json");
con.setRequestMethod("GET");
BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuilder response = new StringBuilder();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println("Reference Information: " + response.toString());
} catch (Exception e) {
e.printStackTrace();
}
}
}
Response examples
Last updated