{"openapi":"3.1.0","info":{"title":"Thermal Expansion API","version":"1.0.0","description":"Thermal-expansion maths as an API, computed locally and deterministically. The linear endpoint computes how much a solid grows or shrinks when its temperature changes, ΔL = α·L0·ΔT, returning the change in length and the new length from an original length, a temperature change (given directly or as an initial and final temperature) and the linear expansion coefficient α — taken from a built-in material table (steel, aluminium, copper, concrete, glass, invar and more) or supplied directly; lengths accept metres, centimetres, millimetres, feet or inches. The volume endpoint computes volumetric expansion, ΔV = β·V0·ΔT, where for a solid the volumetric coefficient is β ≈ 3α and for a liquid (water, ethanol, mercury, petrol and others) β is taken directly; volumes accept cubic metres, litres, millilitres or cubic feet. The materials endpoint lists the coefficients. A negative temperature change gives contraction. Everything is computed locally and deterministically, so it is instant and private. Ideal for civil and mechanical engineering tools, rail, pipe and bridge expansion-gap design, manufacturing-tolerance and HVAC apps, and physics education. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is thermal expansion; for heat energy and temperature change use a specific-heat API.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/thermalexpansion-api","description":"oanor gateway"}],"tags":[{"name":"Thermal"},{"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/linear":{"get":{"operationId":"get_v1_linear","tags":["Thermal"],"summary":"Linear thermal expansion","description":"","parameters":[{"name":"material","in":"query","required":false,"description":"steel|aluminium|copper|… (or coefficient)","schema":{"type":"string"},"example":"steel"},{"name":"coefficient","in":"query","required":false,"description":"Or linear coefficient α (per K)","schema":{"type":"string"}},{"name":"length","in":"query","required":true,"description":"Original length","schema":{"type":"string"},"example":"10"},{"name":"unit","in":"query","required":false,"description":"m|cm|mm|km|ft|in (default m)","schema":{"type":"string"},"example":"m"},{"name":"delta_t","in":"query","required":false,"description":"Temperature change","schema":{"type":"string"},"example":"50"},{"name":"initial_temperature","in":"query","required":false,"description":"Or initial temperature","schema":{"type":"string"}},{"name":"final_temperature","in":"query","required":false,"description":"And final temperature","schema":{"type":"string"}}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"delta_t":50,"formula":"ΔL = α·L0·ΔT; new length = L0·(1 + α·ΔT).","material":"steel","new_length":{"m":10.006,"value_in_unit":10.006},"original_length":{"m":10,"unit":"m","value":10},"change_in_length":{"m":0.006,"in":0.2362205,"mm":6,"value_in_unit":0.006},"coefficient_per_K":1.2e-5},"meta":{"timestamp":"2026-06-04T10:18:55.461Z","request_id":"52a2e6e5-b7b3-4bd5-8168-3a9c94511a7c"},"status":"ok","message":"Linear thermal expansion","success":true}}}},"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/materials":{"get":{"operationId":"get_v1_materials","tags":["Thermal"],"summary":"Expansion coefficient reference","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"note":"Linear coefficients α for solids (per K); volumetric β for liquids. For solids the volumetric coefficient is β ≈ 3α.","linear_alpha_per_K":{"pvc":5.2e-5,"gold":1.4e-5,"iron":1.2e-5,"lead":2.9e-5,"wood":5.0e-6,"zinc":3.0e-5,"brass":1.9e-5,"brick":5.5e-6,"glass":9.0e-6,"invar":1.2e-6,"pyrex":3.3e-6,"steel":1.2e-5,"bronze":1.8e-5,"copper":1.7e-5,"marble":7.0e-6,"nickel":1.3e-5,"quartz":5.9e-7,"rubber":7.7e-5,"silver":1.8e-5,"diamond":1.1e-6,"granite":8.0e-6,"aluminum":2.3e-5,"concrete":1.2e-5,"titanium":8.6e-6,"tungsten":4.5e-6,"aluminium":2.3e-5,"cast_iron":1.04e-5,"stainless_steel":1.7e-5},"volumetric_beta_per_K_liquids":{"oil":0.0007,"water":0.000207,"petrol":0.00095,"acetone":0.00143,"alcohol":0.00075,"benzene":0.0012,"ethanol":0.00075,"mercury":0.000182,"gasoline":0.00095,"glycerin":0.000485}},"meta":{"timestamp":"2026-06-04T10:18:55.563Z","request_id":"1905291c-b712-4a8f-938a-cae6dc165169"},"status":"ok","message":"Expansion coefficient reference","success":true}}}},"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/volume":{"get":{"operationId":"get_v1_volume","tags":["Thermal"],"summary":"Volumetric thermal expansion","description":"","parameters":[{"name":"material","in":"query","required":false,"description":"Solid (β=3α) or liquid (water/ethanol/…)","schema":{"type":"string"},"example":"water"},{"name":"volumetric_coefficient","in":"query","required":false,"description":"Or volumetric coefficient β","schema":{"type":"string"}},{"name":"volume","in":"query","required":true,"description":"Original volume","schema":{"type":"string"},"example":"1"},{"name":"volume_unit","in":"query","required":false,"description":"m3|l|ml|cm3|ft3 (default m3)","schema":{"type":"string"},"example":"m3"},{"name":"delta_t","in":"query","required":false,"description":"Temperature change","schema":{"type":"string"},"example":"20"},{"name":"initial_temperature","in":"query","required":false,"description":"Or initial temperature","schema":{"type":"string"}},{"name":"final_temperature","in":"query","required":false,"description":"And final temperature","schema":{"type":"string"}}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"delta_t":20,"formula":"ΔV = β·V0·ΔT; for solids β ≈ 3α.","material":"water (liquid)","new_volume":{"m3":1.00414,"value_in_unit":1.00414},"original_volume":{"m3":1,"unit":"m3","value":1},"change_in_volume":{"m3":0.00414,"litres":4.14,"value_in_unit":0.00414},"volumetric_coefficient_per_K":0.000207},"meta":{"timestamp":"2026-06-04T10:18:55.666Z","request_id":"51301295-d624-4495-84f9-85d0468fdbc7"},"status":"ok","message":"Volumetric thermal expansion","success":true}}}},"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","content":{"application/json":{"example":{"data":{"api":"thermalexpansion","note":"Thermal-expansion maths — computed locally and deterministically, no key, no third-party service.","endpoints":["/v1/linear","/v1/volume","/v1/materials","/v1/meta"],"length_units":["m","cm","mm","km","ft","in"]},"meta":{"timestamp":"2026-06-04T10:18:55.771Z","request_id":"f93fad4c-9c86-4dce-ae1b-04b3e41db9a2"},"status":"ok","message":"Meta","success":true}}}},"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":2000,"rps_limit":2,"hard_limit":true},{"slug":"starter","name":"Starter","price_cents_month":900,"monthly_call_quota":25000,"rps_limit":6,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":2400,"monthly_call_quota":150000,"rps_limit":20,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":7500,"monthly_call_quota":1024000,"rps_limit":60,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/thermalexpansion-api"}