How to receive data from API in jQuery?

I want to receive weather data from openweather map api service. I don’t know PHP but my friend says you can do it with jQuery too.

Can I know how to do it?
Any sample code for it?

I have been trying to find answer of this question for days but could not get it. Please help.

You do not need jQuery,
JavaScript can do this

    fetch([url])
      .then((response) => response.json())
      .then((data) => console.log(data))

If you want to learn more about this,
google for fetch api or ajax

Well, you receive data from api via “JSON” string. You’l need a way to get this string. You could use either $.getJSON or $.ajax . You can find many examples of use of these two which you can customize to suit your needs.
So search for “JSON string” and “JSON” for javascript/jquery.