UnifyUnitsDevelopers

Batch conversion

POST /v1/batch converts multiple independent measurements in one request (up to 100 items).

Behaviour

  • A structurally valid batch returns HTTP 200 even when items fail
  • Inspect each item's status field
  • Response order matches request order
  • One batch counts as one rate-limit request

Example

bash
curl "https://api.unifyunits.com/v1/batch" \
  -X POST \
  -H "Authorization: Bearer $UNIFYUNITS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"conversions":[{"value":"1","from":"ft","to":"m"},{"value":"32","from":"F","to":"C"}]}'