GET /v1/temperatureTemperature scale converter
Format Utils lf-format-utils
Converts a temperature from one scale to another. Temperature scale converter
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
value | number | Yes | Temperature value |
from | string | No | C, F, K, Re, Ro, N, or De |
to | string | No | Target 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())