Zum Inhalt springen
GET /v1/meta

Spec

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/rebar-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/rebar-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/rebar-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/rebar-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/rebar-api/v1/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "notes": "Diameters, widths and depths in mm, areas in mm², mass in kg/m. Steel density 7850 kg/m³. Geometry/quantity helper — not a coded structural design.",
        "service": "rebar-api",
        "formulae": {
            "count": "n = floor((b − 2·cover − d)/spacing) + 1",
            "ratio": "ρ = As/(b·d)",
            "bar_area": "a = π/4·d²",
            "bar_mass": "m = a·7850/1e6 (kg/m)"
        },
        "endpoints": {
            "GET /v1/area": "Single-bar area, total area and mass for N bars, or bars needed for a required area.",
            "GET /v1/meta": "This document.",
            "GET /v1/ratio": "Reinforcement ratio ρ = As/(b·d) for a section, as a fraction and a percentage.",
            "GET /v1/spacing": "Bars across a section width: spacing→count or count→spacing, with area per metre."
        },
        "description": "Reinforcement-steel (rebar) calculator: bar area and mass, bars needed for a required area, section spacing layout and reinforcement ratio."
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:25.294Z",
        "request_id": "fed56c9a-a432-4f4e-90a8-d76ff4ce65f9"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}