请检查您使用的API密钥是否正确。如果您没有API密钥,请前往https://home.openweathermap.org/users/sign_up注册帐户并获取API密钥。然后,确保您在代码中提供了正确的API密钥。例如,在Python中,您可以使用以下代码提供API密钥:
import requests
api_key = "your_api_key_here"
city_name = "Paris"
url = f"https://api.openweathermap.org/data/2.5/weather?q={city_name}&appid={api_key}"
response = requests.get(url)
print(response.json())
请将“your_api_key_here”替换为您的API密钥,并将“Paris”替换为您要查询天气的城市名称。