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/aspectratio-api

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "name": "Aspect Ratio API",
        "notes": "Operates on numbers only — for layout, video frames, thumbnails and responsive planning. It does not process image files.",
        "version": "v1",
        "endpoints": [
            {
                "path": "/v1/ratio",
                "params": {
                    "width": "required",
                    "height": "required"
                },
                "returns": "simplified ratio (e.g. 16:9), decimal, common name"
            },
            {
                "path": "/v1/resize",
                "params": {
                    "width": "required",
                    "height": "required",
                    "new_width": "or",
                    "new_height": "one of these"
                },
                "returns": "the other dimension, keeping the ratio"
            },
            {
                "path": "/v1/fit",
                "params": {
                    "mode": "contain|cover",
                    "width": "required",
                    "height": "required",
                    "box_width": "required",
                    "box_height": "required"
                },
                "returns": "fitted width/height, scale and centering offset"
            },
            {
                "path": "/v1/meta",
                "params": [],
                "returns": "this document"
            }
        ],
        "description": "Aspect-ratio and resize maths on plain dimensions — no image upload. Reduce a width×height to its simplest ratio, scale a dimension while keeping the ratio, and fit a size into a box (contain/cover). Pure local, no key."
    },
    "meta": {
        "timestamp": "2026-06-02T16:51:44.988Z",
        "request_id": "677815ce-51bf-402b-93e9-d4d24337cdce"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}