GET
/provincias
🔒 Requiere clave de API
Ejemplo
curl -X GET "https://fenix.kalkulusapp.com/api/provincias" \
-H "X-API-KEY: TU_API_KEY"
const respuesta = await fetch("https://fenix.kalkulusapp.com/api/provincias", {
method: "GET",
headers: {
"X-API-KEY": "TU_API_KEY"
}
});
const datos = await respuesta.json();
import requests
respuesta = requests.request(
"GET",
"https://fenix.kalkulusapp.com/api/provincias",
headers={
"X-API-KEY": "TU_API_KEY"
},
)
print(respuesta.json())
<?php
$ch = curl_init("https://fenix.kalkulusapp.com/api/provincias");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"X-API-KEY: TU_API_KEY",
],
]);
$respuesta = json_decode(curl_exec($ch), true);
curl_close($ch);
Respuestas
200Mapa código-nombre
Provincias de Costa Rica
{
"1": "SAN JOSE"
}