OpenWeatherデモ

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

天気 気温
Clear 9.68℃

取得したAPI

string(1207) "{
    "coord": {
        "lon": 136.7604000000000041836756281554698944091796875,
        "lat": 35.422899999999998499333742074668407440185546875
    },
    "weather": [
        {
            "id": 800,
            "main": "Clear",
            "description": "clear sky",
            "icon": "01d"
        }
    ],
    "base": "stations",
    "main": {
        "temp": 9.67999999999999971578290569595992565155029296875,
        "feels_like": 9.67999999999999971578290569595992565155029296875,
        "temp_min": 9.67999999999999971578290569595992565155029296875,
        "temp_max": 9.67999999999999971578290569595992565155029296875,
        "pressure": 1031,
        "humidity": 54,
        "sea_level": 1031,
        "grnd_level": 1025
    },
    "visibility": 10000,
    "wind": {
        "speed": 0.2800000000000000266453525910037569701671600341796875,
        "deg": 190,
        "gust": 0.330000000000000015543122344752191565930843353271484375
    },
    "clouds": {
        "all": 0
    },
    "dt": 1795397456,
    "sys": {
        "country": "JP",
        "sunrise": 1795383343,
        "sunset": 1795419783
    },
    "timezone": 32400,
    "id": 1863641,
    "name": "Gifu City",
    "cod": 200
}"