Vai al contenuto
GET /v1/points

Triangle from points

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/triangle-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "area": 6,
        "note": "Side a = |BC|, b = |CA|, c = |AB|. Area by the shoelace formula; centroid is the average of the vertices.",
        "inputs": {
            "A": [
                0,
                0
            ],
            "B": [
                4,
                0
            ],
            "C": [
                0,
                3
            ]
        },
        "side_a": 5,
        "side_b": 3,
        "side_c": 4,
        "centroid": [
            1.333333,
            1
        ],
        "perimeter": 12,
        "side_type": "scalene",
        "angle_type": "right",
        "angle_A_deg": 90,
        "angle_B_deg": 36.869898,
        "angle_C_deg": 53.130102
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:07.071Z",
        "request_id": "432f669a-2777-4c65-a6e6-4f09543db665"
    },
    "status": "ok",
    "message": "From points",
    "success": true
}