Pallet Weight API
Total shipment weight from case count, per-case weight, and optional empty pallet tare. Returns total case weight, total with pallets, and per-pallet weight. JSON in, JSON out. CORS open. Free for 60 requests per hour without a key.
30-second start
POST your inputs. Get back the answer in JSON. No signup. No key required for the first 60 calls per hour per IP.
curl
curl -X POST https://www.wearewarp.com/api/v1/tools/pallet-weight \
-H "Content-Type: application/json" \
-d '{"cases":40,"weight_per_case":25,"pallet_tare_lb":45,"pallets":2}'Or use GET with query params for one-liners:
curl GET
curl "https://www.wearewarp.com/api/v1/tools/pallet-weight?cases=40&weight_per_case=25&pallet_tare_lb=45&pallets=2"
Request
POST /api/v1/tools/pallet-weight
Plastic pallet example (tare 30 lb):
curl
curl -X POST https://www.wearewarp.com/api/v1/tools/pallet-weight \
-H "Content-Type: application/json" \
-d '{"cases":50,"weight_per_case":18,"pallet_tare_lb":30,"pallets":3}'Response
Every response has a data envelope (the computed result) and a meta envelope (rate limits, docs, upgrade path, attribution).
200 OK
{
"data": {
"total_case_weight_lb": 1000,
"pallet_tare_total_lb": 90,
"total_with_pallets_lb": 1090,
"per_pallet_weight_lb": 545,
"cases": 40,
"pallets": 2,
"pallet_tare_lb": 45
},
"meta": {
"request_id": "req_lzgk2zo_a1b2c3d4",
"tier": "anon",
"rate_limit": { "limit": 60, "remaining": 59, "reset_at": "2026-05-15T19:00:00.000Z" },
"docs": "https://www.wearewarp.com/developers/tools-api/pallet-weight",
"attribution": "Powered by Warp — https://www.wearewarp.com"
}
}Code samples
JavaScript (fetch)
const res = await fetch('https://www.wearewarp.com/api/v1/tools/pallet-weight', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({"cases":40,"weight_per_case":25,"pallet_tare_lb":45,"pallets":2}),
});
const { data, meta } = await res.json();
console.log(data.cases);Python (requests)
import requests
res = requests.post(
"https://www.wearewarp.com/api/v1/tools/pallet-weight",
json={"cases":40,"weight_per_case":25,"pallet_tare_lb":45,"pallets":2},
)
data = res.json()["data"]
print(data["cases"])curl with sandbox key
curl -X POST https://www.wearewarp.com/api/v1/tools/pallet-weight \
-H "Content-Type: application/json" \
-H "Authorization: Bearer wak_test_YOUR_KEY" \
-d '{"cases":40,"weight_per_case":25,"pallet_tare_lb":45,"pallets":2}'Rate limits and tiers
No tier blocks access. Hit the limit and the response includes an upgradeURL with the next tier's signup flow.
Every response includes X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset headers. The meta.rate_limit object mirrors the same values in JSON.
Rate-limited response:
429 Too Many Requests
{
"error": "Anonymous rate limit reached (60/hr). Get a free sandbox key for 1000/hr at https://www.wearewarp.com/agents/account.",
"code": "RATE_LIMITED",
"meta": { "tier": "anon", "rate_limit": { "limit": 60, "remaining": 0 }, "upgrade": "..." }
}Errors
Bad input example:
400 Bad Request
{
"error": "cases and weight_per_case must be greater than zero.",
"code": "BAD_INPUT",
"meta": { "request_id": "req_...", "docs": "https://www.wearewarp.com/developers/tools-api/pallet-weight" }
}Attribution
The free tier carries an attribution request: link back to wearewarp.com from any surface that displays results from this API. A “Powered by Warp” link in your footer is enough. Live keys remove the attribution request.
Every API response includes meta.attribution so you can render the link programmatically.
How pallet weight is calculated
- Total case weight. cases × weight_per_case.
- Pallet tare total. pallet_tare_lb × pallets. Empty pallets carry their own weight too.
- Total with pallets. total case weight + pallet tare total.
- Per pallet weight. total with pallets ÷ pallets.
Typical empty pallet weights: 48x40 hardwood is 37 to 60 lb (default 45); 48x40 plastic is ~30 lb; 48x40 paper is ~10 lb. The pallet tare matters because LTL carriers bill by total shipment weight including the pallet, and parcel carriers may flag overweight pallets that exceed terminal handling limits.
Related
Get a free sandbox key
Sandbox keys take 30 seconds. No card. 1,000 calls per hour across every Warp tool API.