Naar de inhoud
GET /v1/meta

Spec

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/goldpurity-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "notes": "Karat = 24ths pure gold; fineness = karat/24·1000 ‰. pure = total·karat/24; total = pure·24/target_karat. Grams. Metal-value and refining context only — for a metal's weight from its dimensions use a metal-weight API.",
        "service": "goldpurity-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/alloy-mix": "Alloy to add to fine gold to reach a target karat.",
            "GET /v1/pure-gold-weight": "Pure gold and alloy weight from total weight and karat.",
            "GET /v1/karat-to-fineness": "Fineness (per mille) and gold percent from a karat."
        },
        "description": "Gold purity / karat maths: karat to fineness and percent, pure-gold weight in a piece, and alloy mix to a target karat."
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:54.776Z",
        "request_id": "ed6bd1f3-96e5-4e85-8126-cdff5fa53165"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}