averye-duke commited on
Commit
fe34898
·
1 Parent(s): 22c3eb1

Update API call to only take vin as param. No longer requires model year, but still reutns year, make, model

Browse files
Files changed (1) hide show
  1. nhtsa_api_call.py +2 -2
nhtsa_api_call.py CHANGED
@@ -1,7 +1,7 @@
1
  import requests
2
 
3
- def get_vehicle_info(vin,year):
4
- url = f'https://vpic.nhtsa.dot.gov/api/vehicles/DecodeVin/{vin}?format=json&modelyear={year}'
5
  response = requests.get(url);
6
  data = response.json()
7
 
 
1
  import requests
2
 
3
+ def get_vehicle_info(vin):
4
+ url = f'https://vpic.nhtsa.dot.gov/api/vehicles/DecodeVin/{vin}?format=json'
5
  response = requests.get(url);
6
  data = response.json()
7