Pricing
from $1.00 / 1,000 results
Go to Apify Store
Unit Converter Input
A versatile tool to **convert numeric values between different units**, with support for **single and batch conversions**. Works for length, weight, temperature, volume, and more.
Pricing
from $1.00 / 1,000 results
Rating
0.0
(0)
Developer
Actor stats
0
Bookmarked
2
Total users
2
Monthly active users
2 months ago
Last modified
Categories
Share
โ๏ธ Unit Converter
A versatile tool to convert numeric values between different units, with support for single and batch conversions. Works for length, weight, temperature, volume, and more.
๐ Features
- Convert a single value from one unit to another
- Supports batch conversions for multiple values in one request
- Flexible unit types: length (km, miles), weight (lb, kg), volume (liter, gallon), temperature (C, F), and more
- Easy to integrate into web apps, scripts, or automation pipelines
- Clear and structured JSON output
๐ฅ Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
value | number | โ Yes | โ | Numeric value to convert. Must be non-negative. |
fromUnit | string | โ Yes | โ | Source unit (e.g., km, lb, celsius, liter). |
toUnit | string | โ Yes | โ | Target unit (e.g., miles, kg, fahrenheit, gallon). |
batchConversions | array | โ No | [] | Optional array of {value, fromUnit, toUnit} objects for batch conversion. Overrides single conversion if provided. |
โ๏ธ How It Works
-
Single Conversion
- Converts
valuefromfromUnittotoUnitusing standard conversion formulas.
- Converts
-
Batch Conversion
- If
batchConversionsis provided, converts all items in the array. - Each object must have
value,fromUnit, andtoUnit.
- If
-
Supported Units
- Length: km, miles, m, cm, inches, ft
- Weight: kg, lb, g, oz
- Volume: liter, gallon, ml, cup
- Temperature: celsius, fahrenheit, kelvin
๐งฎ Examples
Single Conversion
Input
{"value":10,"fromUnit":"km","toUnit":"miles"}
Output
{"value":10,"fromUnit":"km","toUnit":"miles","convertedValue":6.2137}
Batch Conversion
Input
{"batchConversions":[{"value":10,"fromUnit":"km","toUnit":"miles"},{"value":5,"fromUnit":"lb","toUnit":"kg"}]}
Output
[{"value":10,"fromUnit":"km","toUnit":"miles","convertedValue":6.2137},{"value":5,"fromUnit":"lb","toUnit":"kg","convertedValue":2.26796}]
๐๏ธ Use Cases
- Quick unit conversions for engineering, science, or personal use
- Integration into web applications or dashboards
- Batch processing for spreadsheets or data pipelines
โก Notes
valuemust be non-negativebatchConversionsoverrides the singlevalue/fromUnit/toUnitinput- Output is always in JSON for easy parsing and automation
๐ License
MIT License
