Spaces:
No application file
No application file
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- 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
|
| 4 |
-
url = f'https://vpic.nhtsa.dot.gov/api/vehicles/DecodeVin/{vin}?format=json
|
| 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 |
|