<script>
var url = "https://api.bridgedataoutput.com/api/v2/zestimates?access_token=3c8b83bd020d7edb2083adccb0670b37&address=";
var path = url + avmaddr;
var my_script = document.createElement('script');
my_script.setAttribute('src',path);
document.head.appendChild(my_script);
</script>
avmaddr is being pulled from a form and passed to this page. As an example, when I put in an address in the form, path = https://api.bridgedataoutput.com/api/v2/zestimates?access_token=3c8b83bd020d7edb2083adccb0670b37&address=1021%20Fortrose%20Dr%2C%20Gallatin%2C%20TN%2037066
If you click on that URL, you’ll get this back…
{
"success": true,
"status": 200,
"bundle": [{
"id": "133926112",
"zpid": "99342382",
"address": " 1021 Fortrose Dr Gallatin TN 37066",
"coordinates": [-86.526053, 36.371459],
**
"zestimate": 471752,
"upper": 508096,
"lower": 443027 ** ,
"date": "2020-02-19T00:00:00.000Z",
"rental": {
"zestimate": 2599,
"upper": 2989,
"lower": 2209,
"date": "2020-02-18T00:00:00.000Z"
},
"foreclosureZestimate": null,
"forecastStandardDeviation": 0.09985694289207458,
"zillowUrl": "https://www.zillow.com/homedetails/99342382_zpid",
"url": "api.bridgedataoutput.com/api/v2/zestimates/zestimates/133926112"
}],
"total": 1
}
I want to display the value for “zestimate”, as well as “upper” and “lower”. Any advice would be appreciated! I'm not a developer, so I really have no clue what to do next!