android – Problem when retrieving data with a GET request

I make an Android application with Android Studio and I have to recover a series of data via a GET request addressed to the AccuWeather API, but I do not succeed, it always returns an empty string. I'm asking on the AccuWeather website and returning the following string:

curl -X GET "{apikey}"

I use the URL ({apikey}) and the "GET" method in my application to retrieve the data but that does not send me anything back. . Does anyone know what can be done?

The application works because if I use a URL that accesses, for example, the Google Books API, the data is retrieved.