Zum Inhalt springen
GET /v1/altitude

Altitude-adjusted target

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/candytemp-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}