/v1/amount
Sunscreen amount + reapply
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}