Vai al contenuto
GET /v1/altitude

Altitude-adjusted target

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/candytemp-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/candytemp-api/v1/altitude" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/candytemp-api/v1/altitude", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/candytemp-api/v1/altitude");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/candytemp-api/v1/altitude",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "Cook candy to 1 °F lower for every 500 ft of elevation (water boils cooler, so sugar concentrates at a lower reading). At 5,000 ft a 300 °F hard-crack recipe is done at 290 °F. Or test the syrup in cold water instead of trusting the thermometer alone.",
        "inputs": {
            "unit": "f",
            "altitude_ft": 5000,
            "sea_level_temp": 300
        },
        "adjustment_f": -10,
        "adjusted_temp_c": 143.3,
        "adjusted_temp_f": 290
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:52.743Z",
        "request_id": "667a2ed0-2599-4e39-9caf-d71e127e06fe"
    },
    "status": "ok",
    "message": "Altitude adjust",
    "success": true
}