{"openapi":"3.1.0","info":{"title":"Candy Temperature API","version":"1.0.0","description":"Candy-making maths as an API, computed locally and deterministically — the sugar-syrup stage numbers a confectioner reads a thermometer by. As sugar syrup boils it passes through named stages, each a temperature window with its own texture and uses, and getting within a few degrees is the difference between fudge and toffee. The stage endpoint names the stage for a temperature: 238 °F is the soft-ball stage (fudge, fondant, pralines), 305 °F is hard-crack (toffee, brittle, lollipops), and it handles °F or °C and the off-the-chart cases — still a thin syrup below thread, or darkening to burnt past caramel. The range endpoint gives the temperature window and uses of a named stage, from thread (223–234 °F) through soft-ball, firm-ball, hard-ball, soft-crack and hard-crack to caramel (320–350 °F), in both °F and °C. The altitude endpoint applies the rule that matters in the mountains: cook to 1 °F lower for every 500 feet of elevation, since water boils cooler, so a 300 °F hard-crack recipe is done at 290 °F at 5,000 feet. Everything is computed locally and deterministically, so it is instant and private. Ideal for baking, confectionery, recipe and kitchen app developers, candy-thermometer and timer tools, and cooking-class software. Pure local computation — no key, no third-party service, instant. Use a calibrated thermometer. Live, nothing stored. 3 compute endpoints.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/candytemp-api","description":"oanor gateway"}],"tags":[{"name":"Candy"},{"name":"Meta"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/altitude":{"get":{"operationId":"get_v1_altitude","tags":["Candy"],"summary":"Altitude-adjusted target","description":"","parameters":[{"name":"sea_level_temp","in":"query","required":true,"description":"Sea-level target temperature","schema":{"type":"string"},"example":"300"},{"name":"altitude","in":"query","required":true,"description":"Altitude","schema":{"type":"string"},"example":"5000"},{"name":"unit","in":"query","required":false,"description":"temp unit f or c (default f)","schema":{"type":"string"},"example":"f"},{"name":"altitude_unit","in":"query","required":false,"description":"ft or m (default ft)","schema":{"type":"string"},"example":"ft"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/range":{"get":{"operationId":"get_v1_range","tags":["Candy"],"summary":"Temperature range of a stage","description":"","parameters":[{"name":"stage","in":"query","required":true,"description":"thread, soft-ball, firm-ball, hard-ball, soft-crack, hard-crack, caramel","schema":{"type":"string"},"example":"hard-ball"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/stage":{"get":{"operationId":"get_v1_stage","tags":["Candy"],"summary":"Stage for a temperature","description":"","parameters":[{"name":"temperature","in":"query","required":true,"description":"Syrup temperature","schema":{"type":"string"},"example":"238"},{"name":"unit","in":"query","required":false,"description":"f or c (default f)","schema":{"type":"string"},"example":"f"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/meta":{"get":{"operationId":"get_v1_meta","tags":["Meta"],"summary":"Spec","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":7080,"rps_limit":2,"hard_limit":true},{"slug":"starter","name":"Starter","price_cents_month":413,"monthly_call_quota":57100,"rps_limit":6,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":1138,"monthly_call_quota":238800,"rps_limit":15,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":3608,"monthly_call_quota":1364000,"rps_limit":40,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/candytemp-api"}