I keep getting this error message Im not a tech and dont rreally understand code, I use chatgpt but over and over again it give the code with the same error message, if anyone can help me fix this Iβll be most gracefull.
const zipCodes = [
β35111β, β35116β, β35117β, β35118β, β35209β, β35210β, β35211β,
β35211β, β35242β, β35243β, β35004β, β35243β, β35004β, β35052β,
β35112β, β35120β, β35173β, β35178β, β35953β, β35972β, β35987β,
β35137β, β35185β, β35144β, β35187β, β35143β, β35238β, β35176β,
β35078β, β35007β
];
// Loop through each zip code and make a request
zipCodes.forEach((zipCode) => {
pm.sendRequest({
url: https://api.gateway.attomdata.com/propertyapi/v1.0.0/property/detail?postalcode=${zipCode}
,
method: βGETβ,
header: {
βapikeyβ: β407c795921dcf7f963309e42fae2a78cβ
}
}, function (err, res) {
if (err) {
console.error(Error fetching data for zip code ${zipCode}:
, err);
} else {
try {
// Parse JSON response
const jsonResponse = res.json();
console.log(Data for zip code ${zipCode}:
, jsonResponse);
} catch (parseError) {
console.error(Failed to parse JSON for zip code ${zipCode}:
, parseError);
console.log(βRaw response:β, res.text());
}
}
});
});