I have this example array
[{
"car": "Toyota",
"ID": "1",
"Doors": "4",
"price": "0"
}, {
"car": "Chevrolet",
"ID": "2",
"Doors": "2",
"price": "0"
}, {
"car": "Dodge",
"ID": "3",
"Doors": "2",
"price": "0"
}]
How can I do a request for all ID
in array, and the results of all ID
s return it in the array price.
request(
'http://steamcommunity.com/market/priceoverview/?currency=1&appid=730&market_hash_name='+ID,
function (e, r, body){
var req_data = JSON.parse(body);
}
)
Thank you!