Aller au contenu
GET /v1/amount

Sunscreen amount + reapply

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

Exemple de réponse

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

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