Parameters of API respond

Parameters of API respond for current and historical weather

Example of API respond:


{"id":88319,"dt":1345284000,"name":"Benghazi",
    "coord":{"lat":32.12,"lon":20.07},
    "main":{"temp":306.15,"pressure":1013,"humidity":44,"temp_min":306,"temp_max":306},
    "wind":{"speed":1,"deg":-7},
    "weather":[
                 {"id":520,"main":"rain","description":"light intensity shower rain","icon":"09d"},
                 {"id":500,"main":"rain","description":"light rain","icon":"10d"},
                 {"id":701,"main":"mist","description":"mist","icon":"50d"}
              ],
    "clouds":{"all":90},
    "rain":{"3h":3}}

Parameters:

Parameter Description Standard Metric Imperial
id City identification - - -
dt Data receiving time unix, UTC unix, UTC unix, UTC
name City name - - -
coord
    lat City geo location, latitude - - -
    lon City geo location, longitude - - -
sys
    message System parameter, do not use it - - -
    country Country code (GB, JP etc.) - - -
    sunrise Sunrise time unix, UTC unix, UTC unix, UTC
    sunset Sunset time unix, UTC unix, UTC unix, UTC
main
    temp Temperature Kelvin Celsius Fahrenheit
    humidity Humidity % % %
    temp_min Minimum temperature at the moment. This is deviation from current temp that is possible for large cities and megalopolises geographically expanded (use these parameter optionally) Kelvin Celsius Fahrenheit
    temp_max Maximum temperature at the moment. This is deviation from current temp that is possible for large cities and megalopolises geographically expanded (use these parameter optionally) Kelvin Celsius Fahrenheit
    pressure Atmospheric pressure (on the sea level, if there is no sea_level or grnd_level data) hPa hPa hPa
    sea_level Atmospheric pressure on the sea level hPa hPa hPa
    grnd_level Atmospheric pressure on the ground level hPa hPa hPa
wind
    speed Wind speed meter/sec meter/sec miles/hour
    deg Wind direction degrees (meteorological) degrees (meteorological) degrees (meteorological)
    gust Wind gust meter/sec meter/sec miles/hour
clouds
    all Cloudiness % % %
weather (more info Weather condition codes)
    id Weather condition id - - -
    main Group of weather parameters (Rain, Snow, Extreme etc.) - - -
    description Weather condition within the group - - -
    icon Weather icon id - - -
rain
    3h Precipitation volume for last 3 hours mm mm mm
snow
    3h Snow volume for last 3 hours mm mm mm


Parameters of API respond for 5 day / 3 hour forecast

Example of API respond:


{"cod":"200","message":0.0045,
"city":{"id":1851632,"name":"Shuzenji",
"coord":{"lon":138.933334,"lat":34.966671},
"country":"JP"},
"cnt":38,
"list":[{
        "dt":1406106000,
        "main":{
            "temp":298.77,
            "temp_min":298.77,
            "temp_max":298.774,
            "pressure":1005.93,
            "sea_level":1018.18,
            "grnd_level":1005.93,
            "humidity":87},
        "weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],
        "clouds":{"all":88},
        "wind":{"speed":5.71,"deg":229.501},
        "sys":{"pod":"d"},
        "dt_txt":"2014-07-23 09:00:00"}
        ]}

Parameters:

Parameter Description Standard Metric Imperial
city
    id City identification - - -
    name City name - - -
    country Country code (GB, JP etc.) - - -
coord
    lat City geo location, latitude - - -
    lon City geo location, longitude - - -
cnt Number of lines returned by this API call - - -
dt Data receiving time unix, UTC unix, UTC unix, UTC
main
    temp Temperature Kelvin Celsius Fahrenheit
    humidity Humidity % % %
    temp_min Minimum temperature at the moment. This is deviation from current temp that is possible for large cities and megalopolises geographically expanded (use these parameter optionally) Kelvin Celsius Fahrenheit
    temp_max Maximum temperature at the moment. This is deviation from current temp that is possible for large cities and megalopolises geographically expanded (use these parameter optionally) Kelvin Celsius Fahrenheit
    pressure Atmospheric pressure (on the sea level, if there is no sea_level or grnd_level data) hPa hPa hPa
    sea_level Atmospheric pressure on the sea level hPa hPa hPa
    grnd_level Atmospheric pressure on the ground level hPa hPa hPa
wind
    speed Wind speed meter/sec meter/sec miles/hour
    deg Wind direction degrees (meteorological) degrees (meteorological) degrees (meteorological)
    gust Wind gust meter/sec meter/sec miles/hour
clouds
    all Cloudiness % % %
weather (more info Weather condition codes)
    id Weather condition id - - -
    main Group of weather parameters (Rain, Snow, Extreme etc.) - - -
    description Weather condition within the group - - -
    icon Weather icon id - - -
rain
    3h Precipitation volume for last 3 hours mm mm mm
snow
    3h Snow volume for last 3 hours mm mm mm
sys
    dt_txt Data/time UTC UTC UTC


Parameters of API respond for 16 day / daily forecast

Example of API repond:


{"cod":"200","message":0.0032,
"city":{"id":1851632,"name":"Shuzenji",
"coord":{"lon":138.933334,"lat":34.966671},
"country":"JP"},
"cnt":10,
"list":[{
    "dt":1406080800,
    "temp":{
        "day":297.77,
        "min":293.52,
        "max":297.77,
        "night":293.52,
        "eve":297.77,
        "morn":297.77},
    "pressure":925.04,
    "humidity":76,
    "weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04d"}],}
        ]}

Parameters:

Parameter Description Standard Metric Imperial
city
    id City identification - - -
    name City name - - -
    country Country code (GB, JP etc.) - - -
coord
    lat City geo location, latitude - - -
    lon City geo location, longitude - - -
cnt Number of lines returned by this API call - - -
dt Data receiving time unix, UTC unix, UTC unix, UTC
temp
    day Day temperature Kelvin Celsius Fahrenheit
    min Min daily temperature Kelvin Celsius Fahrenheit
    max Max daily temperature Kelvin Celsius Fahrenheit
    night Night temperature Kelvin Celsius Fahrenheit
    eve Evening temperature Kelvin Celsius Fahrenheit
    morn Morning temperature Kelvin Celsius Fahrenheit
humidity Humidity % % %
pressure Atmospheric pressure (on the sea level, if there is no sea_level or grnd_level data) hPa hPa hPa
wind
    speed Wind speed meter/sec meter/sec miles/hour
    deg Wind direction degrees (meteorological) degrees (meteorological) degrees (meteorological)
    gust Wind gust meter/sec meter/sec miles/hour
clouds
    all Cloudiness % % %
weather (more info Weather condition codes)
    id Weather condition id - - -
    main Group of weather parameters (Rain, Snow, Extreme etc.) - - -
    description Weather condition within the group - - -
    icon Weather icon id - - -
rain
    3h Precipitation volume for last 3 hours mm mm mm
snow
    3h Snow volume for last 3 hours mm mm mm