OpenWeatherデモ

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

天気 気温
Clear 13.01℃

取得したAPI

string(1209) "{
    "coord": {
        "lon": 136.7604000000000041836756281554698944091796875,
        "lat": 35.422899999999998499333742074668407440185546875
    },
    "weather": [
        {
            "id": 800,
            "main": "Clear",
            "description": "clear sky",
            "icon": "01n"
        }
    ],
    "base": "stations",
    "main": {
        "temp": 13.0099999999999997868371792719699442386627197265625,
        "feels_like": 12.6099999999999994315658113919198513031005859375,
        "temp_min": 13.0099999999999997868371792719699442386627197265625,
        "temp_max": 13.0099999999999997868371792719699442386627197265625,
        "pressure": 1018,
        "humidity": 86,
        "sea_level": 1018,
        "grnd_level": 1013
    },
    "visibility": 10000,
    "wind": {
        "speed": 1.5800000000000000710542735760100185871124267578125,
        "deg": 322,
        "gust": 2.45000000000000017763568394002504646778106689453125
    },
    "clouds": {
        "all": 0
    },
    "dt": 1793652968,
    "sys": {
        "country": "JP",
        "sunrise": 1793654152,
        "sunset": 1793692625
    },
    "timezone": 32400,
    "id": 1863641,
    "name": "Gifu City",
    "cod": 200
}"