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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "notes": "1 carat = 0.2 g = 200 mg = 100 points. Round brilliant estimate: ct ≈ d²·depth·0.0061 (mm). The carat is mass, not size. For gold purity/karat use a gold-purity API.",
        "service": "gemstone-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/carat-to-grams": "Grams, milligrams and points from a carat weight.",
            "GET /v1/grams-to-carat": "Carat and points from a weight in grams.",
            "GET /v1/round-brilliant-weight": "Estimated carat of a round brilliant from diameter and depth."
        },
        "description": "Gemstone weight maths: carat to grams/points and back, and the estimated carat of a mounted round-brilliant diamond from its measurements."
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:54.401Z",
        "request_id": "ccc2971a-32af-432c-8906-a58859cd48be"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}