List variables
curl --request POST \
--url https://api.aisa.one/apis/v1/vpic-nhtsa-dot-gov/vehicles/list-variables \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"variable": "Error Code"
}
'import requests
url = "https://api.aisa.one/apis/v1/vpic-nhtsa-dot-gov/vehicles/list-variables"
payload = { "variable": "Error Code" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({variable: 'Error Code'})
};
fetch('https://api.aisa.one/apis/v1/vpic-nhtsa-dot-gov/vehicles/list-variables', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/vpic-nhtsa-dot-gov/vehicles/list-variables",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'variable' => 'Error Code'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/vpic-nhtsa-dot-gov/vehicles/list-variables"
payload := strings.NewReader("{\n \"variable\": \"Error Code\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/vpic-nhtsa-dot-gov/vehicles/list-variables")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"variable\": \"Error Code\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/vpic-nhtsa-dot-gov/vehicles/list-variables")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"variable\": \"Error Code\"\n}"
response = http.request(request)
puts response.read_body{
"api_url": "https://vpic.nhtsa.dot.gov/api/vehicles/GetVehicleVariableValuesList/Error%20Code?format=json",
"count": 15,
"observed_at_ms": 1790269245162,
"values": [
{
"element_name": "Error Code",
"id": 0,
"name": "0 - VIN decoded clean. Check Digit (9th position) is correct"
},
{
"element_name": "Error Code",
"id": 1,
"name": "1 - Check Digit (9th position) does not calculate properly"
},
{
"element_name": "Error Code",
"id": 2,
"name": "2 - VIN corrected, error in one position"
},
{
"element_name": "Error Code",
"id": 3,
"name": "3 - VIN corrected, error in one position (assuming Check Digit is correct)"
},
{
"element_name": "Error Code",
"id": 4,
"name": "4 - VIN corrected, error in one position only (indicated by ! in Suggested VIN), multiple matches found"
},
{
"element_name": "Error Code",
"id": 5,
"name": "5 - VIN has errors in few positions"
},
{
"element_name": "Error Code",
"id": 6,
"name": "6 - Incomplete VIN"
},
{
"element_name": "Error Code",
"id": 7,
"name": "7 - Manufacturer is not registered with NHTSA for sale or importation in the U.S. for use on U.S roads; Please contact the manufacturer directly for more information"
},
{
"element_name": "Error Code",
"id": 8,
"name": "8 - No detailed data available currently"
},
{
"element_name": "Error Code",
"id": 9,
"name": "9 - Glider Warning - A \"Glider\" is not a \"motor vehicle\", as defined in 49 U.S.C. 30102(a)(6), and cannot be assigned a VIN that meets 49 CFR Part 565 requirements"
},
{
"element_name": "Error Code",
"id": 10,
"name": "10 - Off-Road Vehicle Warning – This is not a Vehicle Identification Number (VIN) for a motor vehicle. This indicates that the manufacturer did not certify this product as complying with the Federal Motor Vehicle Safety Standards that are applicable to motor vehicles as defined in 49 U.S.C. 30102."
},
{
"element_name": "Error Code",
"id": 11,
"name": "11 - Incorrect Model Year - Position 10 does not match valid model year codes (I, O, Q, U, Z, 0). Decoded data may not be accurate."
},
{
"element_name": "Error Code",
"id": 12,
"name": "12 - Model Year Warning - Model Year entered for decoding with VIN does not match the model year based on the 10th position in VIN."
},
{
"element_name": "Error Code",
"id": 14,
"name": "14 - Unable to provide information for some of the characters in the VIN, based on the manufacturer submission."
},
{
"element_name": "Error Code",
"id": 400,
"name": "400 - Invalid Characters Present"
}
],
"variable": "Error Code",
"variables": null
}
NHTSA vPIC vehicle decoder
List variables
Interpret decode_vin attributes and error codes, or enumerate the allowed values of a lookup variable.
POST
https://api.aisa.one
/
apis
/
v1
/
vpic-nhtsa-dot-gov
/
vehicles
/
list-variables
List variables
curl --request POST \
--url https://api.aisa.one/apis/v1/vpic-nhtsa-dot-gov/vehicles/list-variables \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"variable": "Error Code"
}
'import requests
url = "https://api.aisa.one/apis/v1/vpic-nhtsa-dot-gov/vehicles/list-variables"
payload = { "variable": "Error Code" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({variable: 'Error Code'})
};
fetch('https://api.aisa.one/apis/v1/vpic-nhtsa-dot-gov/vehicles/list-variables', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/vpic-nhtsa-dot-gov/vehicles/list-variables",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'variable' => 'Error Code'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/vpic-nhtsa-dot-gov/vehicles/list-variables"
payload := strings.NewReader("{\n \"variable\": \"Error Code\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/vpic-nhtsa-dot-gov/vehicles/list-variables")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"variable\": \"Error Code\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/vpic-nhtsa-dot-gov/vehicles/list-variables")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"variable\": \"Error Code\"\n}"
response = http.request(request)
puts response.read_body{
"api_url": "https://vpic.nhtsa.dot.gov/api/vehicles/GetVehicleVariableValuesList/Error%20Code?format=json",
"count": 15,
"observed_at_ms": 1790269245162,
"values": [
{
"element_name": "Error Code",
"id": 0,
"name": "0 - VIN decoded clean. Check Digit (9th position) is correct"
},
{
"element_name": "Error Code",
"id": 1,
"name": "1 - Check Digit (9th position) does not calculate properly"
},
{
"element_name": "Error Code",
"id": 2,
"name": "2 - VIN corrected, error in one position"
},
{
"element_name": "Error Code",
"id": 3,
"name": "3 - VIN corrected, error in one position (assuming Check Digit is correct)"
},
{
"element_name": "Error Code",
"id": 4,
"name": "4 - VIN corrected, error in one position only (indicated by ! in Suggested VIN), multiple matches found"
},
{
"element_name": "Error Code",
"id": 5,
"name": "5 - VIN has errors in few positions"
},
{
"element_name": "Error Code",
"id": 6,
"name": "6 - Incomplete VIN"
},
{
"element_name": "Error Code",
"id": 7,
"name": "7 - Manufacturer is not registered with NHTSA for sale or importation in the U.S. for use on U.S roads; Please contact the manufacturer directly for more information"
},
{
"element_name": "Error Code",
"id": 8,
"name": "8 - No detailed data available currently"
},
{
"element_name": "Error Code",
"id": 9,
"name": "9 - Glider Warning - A \"Glider\" is not a \"motor vehicle\", as defined in 49 U.S.C. 30102(a)(6), and cannot be assigned a VIN that meets 49 CFR Part 565 requirements"
},
{
"element_name": "Error Code",
"id": 10,
"name": "10 - Off-Road Vehicle Warning – This is not a Vehicle Identification Number (VIN) for a motor vehicle. This indicates that the manufacturer did not certify this product as complying with the Federal Motor Vehicle Safety Standards that are applicable to motor vehicles as defined in 49 U.S.C. 30102."
},
{
"element_name": "Error Code",
"id": 11,
"name": "11 - Incorrect Model Year - Position 10 does not match valid model year codes (I, O, Q, U, Z, 0). Decoded data may not be accurate."
},
{
"element_name": "Error Code",
"id": 12,
"name": "12 - Model Year Warning - Model Year entered for decoding with VIN does not match the model year based on the 10th position in VIN."
},
{
"element_name": "Error Code",
"id": 14,
"name": "14 - Unable to provide information for some of the characters in the VIN, based on the manufacturer submission."
},
{
"element_name": "Error Code",
"id": 400,
"name": "400 - Invalid Characters Present"
}
],
"variable": "Error Code",
"variables": null
}
Request contract
- Method and path: POST /apis/v1/vpic-nhtsa-dot-gov/vehicles/list-variables
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/vpic-nhtsa-dot-gov/vehicles/list-variables
{
"operationId": "vpic-nhtsa-dot-gov.vehicles.list-variables",
"method": "POST",
"path": "/apis/v1/vpic-nhtsa-dot-gov/vehicles/list-variables",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"variable": "Error Code"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"variable": {
"description": "Variable ID (`143`) or exact name (`Error Code`). Omit for the full dictionary.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"type": "object"
}
}
},
"required": false
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
Response
The vPIC decode dictionary: without variable, every variable (ID, name, group, data type, description) that decode_vin can populate; with variable (ID or exact name such as Error Code or Body Class), the lookup values vPIC allows for it.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
api_url | string | |
count | number | |
observed_at_ms | number | |
values | object[] | Allowed values of variable; null when no variable was given. |
variable | string | |
variables | object[] | The dictionary; null when variable was given. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.