Aller au contenu
GET /v1/meta

Spec

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/gemstone-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}