Skip to content
GET /v1/meta

Spec

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/baleweight-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/baleweight-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/baleweight-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/baleweight-api/v1/meta");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/baleweight-api/v1/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "notes": "US units (ft, in, lb/ft³, lb). round = π·r²·width·density; square = L·W·H/1728·density; bales = head·intake·days/bale weight. Dry hay ~9–12 lb/ft³, ~88 % DM. For grain storage use a grain-bin API; for rotational grazing a grazing API.",
        "service": "baleweight-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/round-bale": "Round-bale volume, weight and dry matter.",
            "GET /v1/feed-supply": "Bales needed to feed a herd for a period.",
            "GET /v1/square-bale": "Square-bale weight from length/width/height."
        },
        "description": "Hay/forage bale maths: round and square bale weight from size and density, and bales needed to feed a herd."
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:59.574Z",
        "request_id": "bd07db47-0245-4129-9cd9-0ddb1a53bb38"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}