crash_query = {
let queryJSON = {
states: 8,
fromYear: 2022,
toYear: 2022,
minNumOfVehicles: 1,
maxNumOfVehicles: 6,
format: "json",
}
let queryurl = 'https://crashviewer.nhtsa.dot.gov/CrashAPI/crashes/GetCaseList'
let hosturl = 'https://corsproxy.io/'
let fullquery = hosturl +'?'+queryurl +'?' + jq.param(queryJSON)
return (await fetch(fullquery)).json()
}