### NHTSA VPIC Manufacturer PartInfo XML Schema Example
Source: https://vpic.nhtsa.dot.gov/api/vehicles/GetParts
An example of the XML structure for a single PartInfo record, detailing attributes such as Name, URL, LetterDate, Type, ManufacturerId, ManufacturerName, ModelYearFrom, ModelYearTo, and CoverLetterURL. This format is used in responses from the NHTSA VPIC API to convey manufacturer-submitted vehicle information. Note the use of 'xsi:nil="true"' for potentially null fields.
```XML
ORG23818
http://vpic.nhtsa.dot.gov/mid/home/displayfile/6e076213-e47a-4aef-b36f-d9c8ee1fe8d9
11/23/2024
565
22879
QINGDAO ROAD ON OUTDOOR PRODUCTS CO., LTD
2024
https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/9c1c4f65-5a98-47fe-af1a-c0868f327ea5
```
--------------------------------
### Example XML Response for WMI Lookup
Source: https://vpic.nhtsa.dot.gov/api/vehicles/decodewmi/1FD
An example XML response demonstrating the data structure returned by the VPIC NHTSA API when querying for a World Manufacturer Identifier (WMI). The response includes details such as vehicle type, make, manufacturer name, and associated URLs.
```XML
1Results returned successfullyWMI:1FDIncomplete VehicleFORDFORD MOTOR COMPANYFordhttp://www.ford.com/2015-03-232015-01-01
```
--------------------------------
### Example XML API Response: Vehicle Models for Make
Source: https://vpic.nhtsa.dot.gov/api/vehicles/getmodelsformake/honda
This snippet illustrates the XML structure used by an API to return lists of vehicle models for a given make. Each element contains the , , , and for a specific vehicle model. This particular example focuses on Honda models.
```XML
474Honda14792SE50H474Honda14793SE50PH474Honda14794NQ50474Honda14795CMX450C474Honda14796VT700C (Shadow)474Honda14797VR700FII474Honda14799XL250R474Honda14800XL600R474Honda14801TLR200474Honda14803CN250474Honda14804NB50474Honda14805VF1000R474Honda14806VF500F474Honda14807CB450474Honda14808TG50474Honda14809CB700474Honda14810VF1100C474Honda14811VT500474Honda14813NB50M474Honda14822XL80474Honda14823XL100S474Honda14825VF1100S474Honda14826VF1000F474Honda14827XL350R474Honda14828NH80474Honda14865CB125474Honda14866VF700C (Magna)474Honda14867NN50MD474Honda15210XL125474Honda15831CMX300 (Rebel 300)474Honda15835CMX500 (Rebel 500)7351Sundiro Honda Motorcycle Co. Ltd19706A1474Honda23307NCW50/Metropolitan474Honda24319CRF1000 (Africa Twin)474Honda24766CBF300474Honda25272CRF450
```
--------------------------------
### Example XML Response for PartInfo List
Source: https://vpic.nhtsa.dot.gov/api/vehicles/GetParts
This snippet displays a sample XML response from the NHTSA VPIC API, containing a list of 'PartInfo' entries. Each 'PartInfo' element provides details such as the part name, associated URLs, letter dates, manufacturer information, and model year ranges. This structure is typical for data retrieval operations from the API.
```XML
1000Results returned successfullyType: n/a | From Date: n/a | To Date: n/a | manufacturer: n/aORG24534http://vpic.nhtsa.dot.gov/mid/home/displayfile/d6d0abf4-cbea-4328-87e2-f59e27667f7d6/30/202556524461SPECIALTY TRAILERS PTY LTDhttps://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/dd1ade2c-34c6-4049-81d9-c813c2b5e120ORG24530http://vpic.nhtsa.dot.gov/mid/home/displayfile/01e6046d-721e-459f-85cd-0eb9e71606a56/30/20255651027MACK TRUCKS INC.20262026https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/59a6bb75-2eb3-4f84-8cd6-85311bf1b17fORG24531http://vpic.nhtsa.dot.gov/mid/home/displayfile/3e8ab065-4c6f-4ed9-b270-897209b93ee76/30/20255653729LANDOLL COMPANY, LLChttps://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/8acc1801-2ef7-40d8-baf5-287d2d9ce17bORG24529http://vpic.nhtsa.dot.gov/mid/home/displayfile/b58cb51c-2b46-4414-b881-e735e0ee91a86/28/202556613756TAISHAN DCENTI WHEEL INTELLIGENT MANUFACTURE LIMITED COMPANYORG24527http://vpic.nhtsa.dot.gov/mid/home/displayfile/f51939d8-1a8e-4f31-9ea3-314c0fda96956/27/202556515098SERVICIOS INDUSTRIALES GONZALEZ S.A. DE C.V.20252038https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/ec65c5ba-c889-47b5-b734-0179e14b3aecORG24528http://vpic.nhtsa.dot.gov/mid/home/displayfile/559c1679-d8ff-436f-a666-458e43b1d8a26/27/202556524461SPECIALTY TRAILERS PTY LTD20252031https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/49aabc29-7e59-41df-9543-be287db8ab61ORG24520http://vpic.nhtsa.dot.gov/mid/home/displayfile/10d78d98-e81a-4f09-943c-7db23347b05e6/27/202556524509LUOYANG NORTH DAHE THREE-WHEELED MOTORCYCLE CO., LTD2025https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/6e3d4a68-801c-42cb-992b-bb6b79f85b49ORG24523http://vpic.nhtsa.dot.gov/mid/home/displayfile/2d3af9f3-3072-44cb-9643-1aa9f0018a0a6/27/202556524582GEMILANG COACHWORK SDN. BDH2024https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/7ec6b930-f158-488f-a390-4f621441eecdORG24521http://vpic.nhtsa.dot.gov/mid/home/displayfile/71475311-3d42-4260-a831-cd5e8362cc766/27/202556524588SWFL TRAILER SALES AND REPAIRS LLC.2025https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/f2666762-be0b-4000-9304-4cb283bc7ca1ORG24524http://vpic.nhtsa.dot.gov/mid/home/displayfile/5286ad75-21b2-4b83-b5e6-807410e463d16/27/20255651149AUDI AG20252025https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/05c078bf-d818-4c45-b73b-b67a18868960
```
```APIDOC
Response:
Count: integer
Description: Total number of results returned.
Message: string
Description: Status message indicating the success or failure of the request.
SearchCriteria: string
Description: A string detailing the criteria used for the search query.
Results:
Description: Container for a list of PartInfo objects.
PartInfo[]:
Description: An array of PartInfo objects.
PartInfo:
Name: string
Description: The name or identifier of the part.
URL: string
Description: A URL pointing to the display file for the part.
LetterDate: string (MM/DD/YYYY)
Description: The date associated with the part's letter.
Type: string
Description: The type identifier of the part (e.g., '565', '566').
ManufacturerId: integer
Description: Unique identifier for the manufacturer.
ManufacturerName: string
Description: The full name of the manufacturer.
ModelYearFrom: integer or null
Description: The starting model year for the part, or null if not applicable.
ModelYearTo: integer or null
Description: The ending model year for the part, or null if not applicable.
CoverLetterURL: string or null
Description: A URL pointing to the cover letter for the part, or null if not available.
```
--------------------------------
### Example XML Data for Manufacturer Part Information
Source: https://vpic.nhtsa.dot.gov/api/vehicles/GetParts
A sample XML snippet demonstrating the structure of manufacturer part information entries returned by the NHTSA VPIC API. Each `PartInfo` element contains details such as manufacturer name, ID, associated URLs, and model year ranges.
```XML
ORG23825http://vpic.nhtsa.dot.gov/mid/home/displayfile/2df1fc7f-054d-4371-a92c-9e4dab9a058612/4/202456523906GOAT TRAILERS LLChttps://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/f4b10ab4-0311-45ea-9401-10d99b1b473dORG23832http://vpic.nhtsa.dot.gov/mid/home/displayfile/614b4923-121a-4bd8-b11d-a9a60743d0a512/4/202456523892GEAUX PULL TRAILERS AND RENTALS, LLChttps://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/0791c8a3-8a36-4377-847f-2cfaf3afaa6cORG23822http://vpic.nhtsa.dot.gov/mid/home/displayfile/d18ff19c-dde7-4d94-b344-19474ef27ebd12/4/202456523314HYUNDAI MOTOR GROUP METAPLANT AMERICA20262026https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/d579e0a2-22a8-4b4f-b3ef-a5101f3e71bfORG23831http://vpic.nhtsa.dot.gov/mid/home/displayfile/35531f77-e6a2-4a25-b121-141522e9197012/4/202456521746RYVID INC20252026https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/b83d93de-6833-49f2-9d4e-e93cbeba1861ORG23830http://vpic.nhtsa.dot.gov/mid/home/displayfile/33293831-b936-44e3-b359-d4c47ea50d9a12/4/202456521871SUZUKI MOTOR CORPORATION20252025https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/86dad69c-ada1-40c6-aca2-e82381a3ab1aORG23821http://vpic.nhtsa.dot.gov/mid/home/displayfile/d6a5c298-81fd-4648-885c-996c7281ae0212/4/202456515984HYUNDAI MOTOR CO20262026https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/2186a661-8df0-48c6-bf32-2d1f3341843eORG23829http://vpic.nhtsa.dot.gov/mid/home/displayfile/78f9a1e7-b33f-4550-b06c-a0b00b19a85f12/4/2024565997NISSAN NORTH AMERICA, INC.20252025https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/442ea40a-4947-4d1d-9bcc-8a428935949bORG23826http://vpic.nhtsa.dot.gov/mid/home/displayfile/991eb861-f00e-458a-b7f6-b5afda1b93d312/4/2024565987HONDA MOTOR CO., LTD.20252025https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/d14a0c16-3516-4a5f-8317-d0adbb9fa087ORG23824http://vpic.nhtsa.dot.gov/mid/home/displayfile/69c5ca57-9af9-4d77-9814-ca4a39645c7812/4/20245651132POLARIS INDUSTRIES INC.20252025https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/49a2a656-e6fa-4b8e-ab60-fdb04f87dfc3ORG23819http://vpic.nhtsa.dot.gov/mid/home/displayfile/78b3aee3-5c35-494f-bbc6-bd42afc1baad12/3/202456518507F&S FABRICATION AND WELDING SOLUTIONS S.A DE C.V.20242030https://vpic.nhtsa.dot.gov/mfrportal/home/cove
```
--------------------------------
### NHTSA VPIC API PartInfo XML Response Structure and Example
Source: https://vpic.nhtsa.dot.gov/api/vehicles/GetParts
This snippet provides both a structured definition and an example XML fragment for the 'PartInfo' elements returned by the NHTSA VPIC API. It details various attributes such as manufacturer ID, name, model year ranges, and associated document URLs.
```APIDOC
Response:
Results:
PartInfo[]:
Name: string (e.g., "ORG23508")
URL: string (URL to file, e.g., "http://vpic.nhtsa.dot.gov/mid/home/displayfile/...")
LetterDate: string (MM/DD/YYYY, e.g., "9/2/2024")
Type: string (e.g., "566", "565")
ManufacturerId: integer (e.g., 13836)
ManufacturerName: string (e.g., "CENNTRO AUTOMOTIVE CORPORATION")
ModelYearFrom: integer | null (xsi:nil="true" if null, e.g., 2023)
ModelYearTo: integer | null (xsi:nil="true" if null, e.g., 2027)
CoverLetterURL: string (URL to cover letter, can be empty string if not available)
```
```XML
13836CENNTRO AUTOMOTIVE CORPORATION20232027https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/445b3498-63e7-471b-9ed8-f6c1ed7c3feeORG23508http://vpic.nhtsa.dot.gov/mid/home/displayfile/85765dec-04c8-4af3-bb47-75c693576bfc9/2/202456618406BRUDER EXPEDITION PTY LTDORG23498http://vpic.nhtsa.dot.gov/mid/home/displayfile/04a81c52-8248-401a-b0c5-a2ec5277265e9/2/202456523687LIUZHOU WULING AUTOMOBILE INDUSTRY CO.,LTD20242027https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/e282355c-6f50-4d92-8bfb-8af4aa50ef8cORG23493http://vpic.nhtsa.dot.gov/mid/home/displayfile/3a23b811-f5b6-4aa4-8141-6262e0469a189/2/202456623698DONGGUAN DAYOUFA HARDWARE PRODUCTS CO.,LTD.ORG23494http://vpic.nhtsa.dot.gov/mid/home/displayfile/a3cb7007-9712-45b5-8782-26fca6bb816e9/2/202456623523NINGBO MOTAI ELECTRONIC TECH CO., LTD.
```
--------------------------------
### Retrieve Vehicle Models by Make ID (GET)
Source: https://vpic.nhtsa.dot.gov/api/Home/Index/LanguageExamples
These snippets demonstrate how to make GET requests to the NHTSA API's `GetModelsForMakeId` endpoint to retrieve vehicle models for a specified make ID. Examples are provided in PHP, Python, Ruby, and R, showing how to construct the URL and fetch the data.
```php
array(
'method' => 'GET',
'content' => $postdata
)
);
$apiURL = "https://vpic.nhtsa.dot.gov/api/vehicles/GetModelsForMakeId/440?format=json";
$context = stream_context_create($opts);
$fp = fopen($apiURL, 'rb', false, $context);
if(!$fp)
{
echo "in first if";
}
$response = @stream_get_contents($fp);
if($response == false)
{
echo "in second if";
}
echo $response;
?>
```
```python
import requests,json;
url = 'https://vpic.nhtsa.dot.gov/api/vehicles/GetModelsForMakeId/440?format=json';
r = requests.get(url);
print(r.text);
```
```ruby
require 'certified'
require 'net/http'
require 'json'
url = 'https://vpic.nhtsa.dot.gov/api/vehicles/GetModelsForMakeId/440?format=json'
uri = URI(url)
response = Net::HTTP.get(uri)
puts response
```
```r
require(RJSONIO)
```
--------------------------------
### Example Empty XML API Response
Source: https://vpic.nhtsa.dot.gov/api/vehicles/getmanufacturerdetails/989
This XML snippet illustrates a typical successful response from the VPIC NHTSA API when no matching results are found. It includes a count of zero, a success message, and an empty results element.
```XML
0Response returned successfully
```
--------------------------------
### Example XML Response for Vehicle Types by Make ID
Source: https://vpic.nhtsa.dot.gov/api/vehicles/GetVehicleTypesForMakeId/450
This XML snippet illustrates a successful API response from the NHTSA vPIC service. It shows the structure and content returned when querying vehicle types for a specific Make ID (e.g., ID 450), including a count of results, a success message, the search criteria, and a list of vehicle types with their respective IDs and names.
```XML
4Response returned successfullyMake ID: 4503Truck5Bus7Multipurpose Passenger Vehicle (MPV)10Incomplete Vehicle
```
--------------------------------
### Example XML Response for PartInfo Data
Source: https://vpic.nhtsa.dot.gov/api/vehicles/GetParts
This XML snippet illustrates the structure of a typical response containing `PartInfo` elements from the NHTSA Manufacturer Portal API. Each `PartInfo` entry includes details such as a unique name, associated URLs, letter dates, type, manufacturer identification, manufacturer name, and applicable model year ranges. Model year fields (`ModelYearFrom`, `ModelYearTo`) can be null, indicated by `xsi:nil="true"`.
```XML
rName>20252027https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/42eb3981-6921-4274-955b-5e5073c268a8ORG24395http://vpic.nhtsa.dot.gov/mid/home/displayfile/1fed71f4-0222-42c5-b409-f793242fb23c5/27/202556524440HANGZHOU LEISHEN MOTORCYCLE CO.,LTD.https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/5bb0697c-b8fb-400b-ba3f-a4f881042338ORG24394http://vpic.nhtsa.dot.gov/mid/home/displayfile/101cdb63-34f6-4e4b-9096-7be3525db3bd5/23/202556524085U.S. HEAVY DUTY REPAIRS, LLC20252025https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/19d22e7b-db02-468e-adc7-7162f0939bafORG24393http://vpic.nhtsa.dot.gov/mid/home/displayfile/8853998d-46e0-4a3f-a2d6-f10c2a3b0e6d5/23/20255651023MERCEDES-BENZ, AG20262026https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/6e123fc0-bc42-45c4-8252-8c03379c22c7ORG24387http://vpic.nhtsa.dot.gov/mid/home/displayfile/2d8cd99a-66f4-46c8-81ac-2facdb03b5215/22/202556510550ZHEJIANG QIANJIANG MOTORCYCLE CO., LTD.2025https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/1a7d5554-f774-4bff-b1ac-0d089ab2cf80ORG24386http://vpic.nhtsa.dot.gov/mid/home/displayfile/5a6338b4-092f-47a2-92f7-ed3e872bc9795/22/202556524429TOW SMART TRAILERS LLChttps://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/22990a6d-c7b9-445b-8fbe-9cd30668784fORG24388http://vpic.nhtsa.dot.gov/mid/home/displayfile/f8aaa10e-fff1-469b-90cd-5326b552d25f5/22/202556524432PLAINSCRAFT LLC2025https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/772345b0-5648-4341-b619-7a1145ae90d9ORG24389http://vpic.nhtsa.dot.gov/mid/home/displayfile/10759918-a305-42b2-80c4-a49444ec01a05/22/2025565987HONDA MOTOR CO., LTD.20262026https://vpic.nhtsa.dot.gov/mfrportal/home/coverletter/e0d42085-a4d3-4909-9f82-b37adfd5bbbdORG24391http://vpic.nhtsa.dot.gov/mid/home/displayfile/90b893a8
```
--------------------------------
### Example XML Response for Makes by Manufacturer
Source: https://vpic.nhtsa.dot.gov/api/vehicles/GetMakeForManufacturer/honda
This XML snippet illustrates the structure of a successful response from the NHTSA vPIC API when querying vehicle makes associated with a manufacturer (e.g., 'honda'). It includes a count of results, a message, the search criteria, and a list of 'MakesForMfg' elements, each containing manufacturer name, make ID, and make name.
```XML
16Results returned successfullyManufacturer:hondaHONDA MOTOR CO., LTD.474HONDAAMERICAN HONDA MOTOR CO., INC.474HONDAHONDA OF CANADA MFG., A DIVISION OF HONDA CANADA INC.474HONDAHONDA OF THE U.K. MFG., LTD.474HONDAHONDA DE MEXICO, S.A. DE C.V.474HONDATHAI HONDA CO., LTD.474HONDAHONDA VIETNAM CO., LTD.474HONDAMOTO HONDA DA AMAZONIA LTDA.474HONDASUNDIRO HONDA MOTORCYCLE CO., LTD.474HONDAMONTESA HONDA SA474HONDAHONDA MOTOR CO., LTD.475ACURAAMERICAN HONDA MOTOR CO., INC.475ACURAHONDA OF CANADA MFG., A DIVISION OF HONDA CANADA INC.475ACURAHONDA DE MEXICO, S.A. DE C.V.475ACURAHONDA MOTOR CO., LTD.542ISUZUSUNDIRO HONDA MOTORCYCLE CO., LTD.7351SUNDIRO HONDA MOTORCYCLE CO. LTD
```