/v1/meta
Spec
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
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_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}