What's wrong with my code? (Weather App)

Hey folks,
I don’t understand what’s wrong with my code.
It looks like ‘api’ variable doesn’t work.
Could you help me?

Thanks a lot! It finally works.