Aller au contenu
GET /v1/ratings

NCAP crash-test star ratings

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/nhtsa-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/nhtsa-api/v1/ratings" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/nhtsa-api/v1/ratings", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/nhtsa-api/v1/ratings");
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/nhtsa-api/v1/ratings",
    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": {
        "make": "honda",
        "year": "2022",
        "count": 1,
        "model": "accord",
        "ratings": [
            {
                "overall": "5",
                "rollover": "5",
                "side_crash": "5",
                "vehicle_id": 16835,
                "description": "2022 Honda ACCORD 4 DR FWD",
                "side_driver": "5",
                "front_driver": "5",
                "frontal_crash": "5",
                "side_passenger": "5",
                "front_passenger": "5"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-08T01:19:45.531Z",
        "request_id": "7653c2a1-f742-4db8-a597-a9edeef2c837"
    },
    "status": "ok",
    "message": "Ratings retrieved successfully",
    "success": true
}