Zum Inhalt springen
GET /v1/models

Models for a make & year

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "make": "honda",
        "year": "2022",
        "count": 108,
        "models": [
            {
                "id": 1861,
                "name": "Accord"
            },
            {
                "id": 1863,
                "name": "Civic"
            },
            {
                "id": 1864,
                "name": "Pilot"
            },
            {
                "id": 1865,
                "name": "CR-V"
            },
            {
                "id": 1866,
                "name": "Ridgeline"
            },
            {
                "id": 1869,
                "name": "Odyssey"
            },
            {
                "id": 1870,
                "name": "Insight"
            },
            {
                "id": 3234,
                "name": "PCX150"
            },
            {
                "id": 3249,
                "name": "Gold Wing"
            },
            {
                "id": 3251,
                "name": "NC700X"
            },
            {
                "id": 3253,
                "name": "NPS50 (Ruckus)"
            },
            {
                "id": 3255,
                "name": "ST1300PA"
            },
            {
                "id": 3264,
                "name": "ST1300"
            },
            {
                "id": 3618,
                "name": "Pacific Coast"
            },
            {
                "id": 3684,
                "name": "Hawk GT"
            },
            {
                "id": 3695,
                "name": "CB-1"
            },
            {
                "id": 3697,
                "name": "Tourist Trophy"
            },
            {
                "id": 3698,
                "name": "NS50F"
            },
            {
                "id": 3699,
                "name": "NX250"
            },
            {
                "id": 3700,
                "name": "NX125"
            },
            {
                "id": 3703,
                "name": "RC30"
            },
            {
                "id": 3705,
                "name": "XL600V"
            },
            {
                "id": 3776,
                "name": "Elite"
            },
            {
                "id": 5959,
                "name": "Passport"
            },
            {
                "id": 9212,
                "name": "HR-V"
            },
            {
                "id": 10791,
                "name": "FourTrax"
            },
            {
                "id": 10960,
                "name": "CR250R"
            },
            {
                "id": 11408,
                "name": "CR125R"
            },
            {
                "id": 11409,
                "name": "XR250R"
            },
            {
                "id": 11588,
                "name": "TRX90X"
            },
            {
                "id": 11589,
                "name": "XR600R"
            },
            {
                "id": 11728,
                "name": "FourT
…