Zum Inhalt springen
GET /v1/amount

Sunscreen amount + reapply

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/sunscreen-api

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "note": "Use ~2 mg/cm² — about 1 oz (30 g, a shot glass) for full-body adult coverage, or a 'nickel of sunscreen' for the face. Reapply every 2 hours, and right after swimming, towelling or heavy sweat. Most people apply a quarter to a half of what they should.",
        "inputs": {
            "coverage": 1,
            "hours_outdoors": 6
        },
        "total_oz": 3.6,
        "total_grams": 102,
        "applications_needed": 3,
        "reapply_every_hours": 2,
        "grams_per_application": 34
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:48.686Z",
        "request_id": "bb54c144-e219-418d-bfea-808b28a55aee"
    },
    "status": "ok",
    "message": "Sunscreen amount",
    "success": true
}