South Star

Dimensions Extractor LxWxH Weights Volumes Freight API

Free tier included · Logistics
Extract dimensions, weights & volumes from free text, normalize units, calculate volumetric weight and convert measurements instantly.

Dimensions Extractor API transforms messy, unstructured product descriptions, shipping manifests, and catalog specs into clean, normalized JSON data. It parses complex length, width, and height strings (such as "30x20x10 cm", "10 x 20 x 30 cm", "4x6x2 in", or "W 60cm x D 40cm x H 75cm"), physical weights (kg, g, lb, oz), and liquid volumes (L, ml, gal, fl oz), automatically normalizing them into centimeters, kilograms, and liters.

In addition to text extraction, the API features dedicated endpoints for calculating dimensional (volumetric) freight weight using standard airline and shipping divisors (e.g., 5000), as well as converting individual metric and imperial units on the fly. It covers all the heavy lifting performed by leading extraction and OCR tools at a fraction of the cost, making it ideal for four key use cases: 1. **E-commerce & Marketplace Listings**: Automatically extract dimensions and weights from supplier descriptions to populate product attributes and shipping calculators. 2. **Logistics & Freight Quote Automation**: Instantly compute volumetric weights for shipping rate estimation from raw warehouse manifests. 3. **ETL & Data Cleaning Pipelines**: Process batches of up to 100 unstructured text entries per request to clean legacy product catalogs. 4. **Multi-Unit Checkout Flows**: Convert customer-entered measurements between metric and imperial systems seamlessly.

The service is built for speed and privacy: it relies on optimized regex pattern matching, runs entirely offline with zero external network calls, and stores no request logs or user state. Honest limits apply: text extraction supports strings up to 10,000 characters (20,000 characters for batch items), batch requests are capped at 100 texts per call, volumetric weight divisors must be between 1,000 and 10,000, and unsupported unit strings will return null fields.

Endpoints

MethodPathWhat it does
GET/API root endpoint returning basic metadata and availability info.
GET/healthLiveness probe checking system health and process uptime.
GET/extractExtract dimensions, weights, and volumes from a single free-text string (up to 10,000 characters).
POST/extract-batchExtract dimensions, weights, and volumes from an array of 1 to 100 free-text strings in a single request.
POST/volumetric-weightCalculate volumetric (dimensional) weight from centimeter dimensions using standard freight divisors.
POST/convert-unitConvert individual measurements between metric and imperial length or weight units.

Quick start

curl -X GET "https://dimextract.p.rapidapi.com/extract?text=Box%2030x20x10%20cm%2C%20weight%205%20kg%2C%20volume%202%20L" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: dimextract.p.rapidapi.com"

FAQ

What text formats and dimensions patterns are supported?

The API recognizes standard LxWxH patterns like "30x20x10 cm", "10 x 20 x 30 cm", "4x6x2 in", "W 60cm x D 40cm x H 75cm", weights such as "5 kg" or "10 lbs", and volumes like "5 L" or "2 gal".

Are my texts or extracted data logged or stored anywhere?

No. The API is entirely stateless and offline. No request payloads, texts, or extracted measurements are saved to any database or log file.

What is the maximum text length and batch size allowed?

Single-text extraction (`/extract`) accepts up to 10,000 characters. Batch requests (`/extract-batch`) support arrays of 1 to 100 strings, with each string up to 20,000 characters.

How is volumetric weight calculated?

Volumetric weight is computed using the formula $(Length \times Width \times Height) / Divisor$. You can supply standard freight divisors between 1,000 and 10,000 (default is 5,000 for standard air freight).

Try Dimensions Extractor LxWxH Weights Volumes Freight free

Free tier on every plan. Get an API key and start calling in under a minute.

Open on RapidAPI

Related APIs