This guide shows how to call the API endpoint, send an address + country code, and get standardized components and coordinates back.
Authorization: Bearer YOUR_API_KEY.Endpoint: POST https://koordex.software/api/index.php
Body: JSON with address and country (ISO code).
“Worldwide-ready” means you can send a country code. Coverage/accuracy depends on address data availability.
curl -X POST "https://koordex.software/api/index.php" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"address": "Providencia 1540, Benito Juárez, CDMX",
"country": "MX"
}'
async function koordexValidate() {
const res = await fetch("https://koordex.software/api/index.php", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
address: "1600 Amphitheatre Parkway, Mountain View, CA",
country: "US"
})
});
const data = await res.json();
console.log(data);
}
import requests
url = "https://koordex.software/api/index.php"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
payload = {
"address": "Providencia 1540, Benito Juárez, CDMX",
"country": "MX"
}
r = requests.post(url, headers=headers, json=payload, timeout=30)
print(r.status_code, r.json())
<?php
$url = "https://koordex.software/api/index.php";
$payload = json_encode([
"address" => "Providencia 1540, Benito Juárez, CDMX",
"country" => "MX"
]);
$ch = curl_init($url);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer YOUR_API_KEY",
"Content-Type: application/json"
],
CURLOPT_POSTFIELDS => $payload,
CURLOPT_TIMEOUT => 30
]);
$out = curl_exec($ch);
$err = curl_error($ch);
curl_close($ch);
if ($err) { die($err); }
echo $out;