OpenWeatherデモ

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

天気 気温
Clear 21.65℃

取得したAPI

string(1203) "{
    "coord": {
        "lon": 136.7604000000000041836756281554698944091796875,
        "lat": 35.422899999999998499333742074668407440185546875
    },
    "weather": [
        {
            "id": 800,
            "main": "Clear",
            "description": "clear sky",
            "icon": "01d"
        }
    ],
    "base": "stations",
    "main": {
        "temp": 21.64999999999999857891452847979962825775146484375,
        "feels_like": 21.719999999999998863131622783839702606201171875,
        "temp_min": 21.64999999999999857891452847979962825775146484375,
        "temp_max": 21.64999999999999857891452847979962825775146484375,
        "pressure": 1020,
        "humidity": 71,
        "sea_level": 1020,
        "grnd_level": 1015
    },
    "visibility": 10000,
    "wind": {
        "speed": 0.939999999999999946709294817992486059665679931640625,
        "deg": 22,
        "gust": 1.37999999999999989341858963598497211933135986328125
    },
    "clouds": {
        "all": 0
    },
    "dt": 1791673719,
    "sys": {
        "country": "JP",
        "sunrise": 1791665709,
        "sunset": 1791707053
    },
    "timezone": 32400,
    "id": 1863641,
    "name": "Gifu City",
    "cod": 200
}"