Docs/Format Utils/GET /v1/temperature

GET /v1/temperatureTemperature scale converter

Format Utils lf-format-utils

Converts a temperature from one scale to another. Temperature scale converter

Query Parameters

ParameterTypeRequiredDescription
valuenumberYesTemperature value
fromstringNoC, F, K, Re, Ro, N, or De
tostringNoTarget scale

Response Schema

input (number): Input value
input_unit (string): Source scale
output (number): Converted value
output_unit (string): Target scale

cURL Example

curl 'https://lf-format-utils.laminarforge.dev/v1/temperature?value=<value>' -H 'Authorization: Bearer lf_YourApiKey'

Python Example

import requests
url = 'https://lf-format-utils.laminarforge.dev/v1/temperature'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'value': '<value>'}
response = requests.get(url, headers=headers, params=params)
print(response.json())