Traditional Culture Encyclopedia - Weather forecast - How to call weather interface with java web

How to call weather interface with java web

First of all, you need to find a company that provides free weather interface calls, such as Baidu's and China Meteorological Bureau's. They have a good example of multilingual interface in the api.

For example, this interface returns data in json format, and some return xml files, so you have to parse them yourself.

The final conclusion is that

Find a company that provides a free weather interface.

They have their own request criteria, some are get methods and some are post methods. Some are php, some are java, and some are pyphon. Pay attention to check for yourself.

Choose according to your own needs