How to call weather APIs in JavaScript?

How to call weather APIs in JavaScript?