Show the Local Weather API Array not accessible

Show the Local Weather API Array not accessible
0

#1

Hi
I have my sheet almost complete with the weather.
I’d like to add the current outside weather
I’ve tried to reach the data.weather.description using this format but I see that the description is part of an array.
How do I access an array item in the API?

Thanks


#2

Hi CoMIYC69,

You do it by providing the index of the array, just like you would do when accesing a normal array (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array), e.g.:

data.weather[0].description

Hope this helps!


#3

Thanks I was close but Instead of correctly adding [0] I was trying [2] without the description :roll_eyes: