OpenWeatherデモ

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

天気 気温
Clouds 21.32℃

取得したAPI

string(1218) "{
    "coord": {
        "lon": 136.7604000000000041836756281554698944091796875,
        "lat": 35.422899999999998499333742074668407440185546875
    },
    "weather": [
        {
            "id": 804,
            "main": "Clouds",
            "description": "overcast clouds",
            "icon": "04n"
        }
    ],
    "base": "stations",
    "main": {
        "temp": 21.32000000000000028421709430404007434844970703125,
        "feels_like": 21.940000000000001278976924368180334568023681640625,
        "temp_min": 21.32000000000000028421709430404007434844970703125,
        "temp_max": 21.32000000000000028421709430404007434844970703125,
        "pressure": 1014,
        "humidity": 93,
        "sea_level": 1014,
        "grnd_level": 1009
    },
    "visibility": 10000,
    "wind": {
        "speed": 1.3600000000000000976996261670137755572795867919921875,
        "deg": 321,
        "gust": 1.689999999999999946709294817992486059665679931640625
    },
    "clouds": {
        "all": 100
    },
    "dt": 1789498851,
    "sys": {
        "country": "JP",
        "sunrise": 1789504562,
        "sunset": 1789549216
    },
    "timezone": 32400,
    "id": 1863641,
    "name": "Gifu City",
    "cod": 200
}"