OpenWeatherデモ

取得したAPIを使った現在の天気情報

天気 気温
Clouds 16.93℃

取得したAPI

string(1250) "{
    "coord": {
        "lon": 136.7604000000000041836756281554698944091796875,
        "lat": 35.422899999999998499333742074668407440185546875
    },
    "weather": [
        {
            "id": 801,
            "main": "Clouds",
            "description": "few clouds",
            "icon": "02d"
        }
    ],
    "base": "stations",
    "main": {
        "temp": 16.92999999999999971578290569595992565155029296875,
        "feels_like": 16.1099999999999994315658113919198513031005859375,
        "temp_min": 16.92999999999999971578290569595992565155029296875,
        "temp_max": 21.64999999999999857891452847979962825775146484375,
        "pressure": 1008,
        "humidity": 55,
        "sea_level": 1008,
        "grnd_level": 1006
    },
    "visibility": 10000,
    "wind": {
        "speed": 3.859999999999999875655021241982467472553253173828125,
        "deg": 303,
        "gust": 7.55999999999999960920149533194489777088165283203125
    },
    "clouds": {
        "all": 21
    },
    "dt": 1714037268,
    "sys": {
        "type": 2,
        "id": 2035277,
        "country": "JP",
        "sunrise": 1713989284,
        "sunset": 1714037608
    },
    "timezone": 32400,
    "id": 1863641,
    "name": "Gifu City",
    "cod": 200
}"