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/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/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sunscreen-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sunscreen-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/sunscreen-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": "Fitzpatrick skin type 1-6; UV index 0-16. Protected time ≈ unprotected × SPF; reapply every 2 hours. ~2 mg/cm² (≈ 1 oz full body). Educational estimates — not medical advice; people with sensitive skin or conditions should be cautious.",
        "service": "sunscreen-api",
        "endpoints": {
            "GET /v1/spf": "SPF needed to stay out for a target number of minutes.",
            "GET /v1/meta": "This document.",
            "GET /v1/amount": "Sunscreen amount per application and reapplications for time outdoors.",
            "GET /v1/burntime": "Unprotected and protected time to sunburn from skin type, UV index and SPF."
        },
        "description": "Sun-safety maths: time to sunburn by skin type/UV/SPF, the SPF needed for a target time, and sunscreen amount & reapplication."
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:48.918Z",
        "request_id": "e2fbde2a-1db4-4bfb-84a1-c6f30a6e64b6"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}