시간대별 날씨 페이지
시간대별 기온, 시간대별 강수량, ootd 정보를 반환하는 api
1) URL
GET /weather/time
Request Parameter1
parameter
requirement
description
lat
N
위도
lon
N
경도
GET /weather/time?lat=37.5145963013281&lon=126.9754626313914
Request Parameter 2
parameter
requirement
description
code
N
행정 구역 코드
GET /weather/time?code=2824510700
* 검색 시 해당 파라미터를 이용하여 호출할 수 있습니다.
2) RESPONSE BODY
Success http status code
HTTP Status code: 200 OK
Description

tempInfo
tempInfo.resultCode: 응답 코드 (200 = SUCCESS, 500 = ERROR)
tempInfo.errorMessage: 에러 메세지 (성공 시 SUCCESS 반환)
tempInfo.document
tempInfo.document.time: 시간
tempInfo.document.temperature: 기온
tempInfo.document.icon: 날씨 icon URL

rainInfo
rainInfo.resultCode: 응답 코드 (200 = SUCCESS, 500 = ERROR)
rainInfo.errorMessage: 에러 메세지 (성공 시 SUCCESS 반환)
rainInfo.document
rainInfo.document.time: 시간
rainInfo.document.rain: 강수량
rainInfo.document.percent: 강수 확률
rainInfo.document.icon: 물방울 icon URL
Example
{
"tempInfo": {
"resultCode": 200,
"errorMessage": "SUCCESS",
"document": [
{
"time": "현재",
"temperature": "25°",
"icon": "png60.png"
},
{
"time": "18시",
"temperature": "24°",
"icon": "png60.png"
},
{
"time": "19시",
"temperature": "23°",
"icon": "png60.png"
},
{
"time": "20시",
"temperature": "22°",
"icon": "png60.png"
}
]
},
"rainInfo": {
"resultCode": 200,
"errorMessage": "SUCCESS",
"document": [
{
"time": "현재",
"rain": 0,
"percent": 0,
"icon": "https://seeme-icon.s3.ap-northeast-2.amazonaws.com/icon/weather/rain/0.png"
},
{
"time": "18시",
"rain": 30,
"percent": 60,
"icon": "https://seeme-icon.s3.ap-northeast-2.amazonaws.com/icon/weather/rain/60.png"
},
{
"time": "19시",
"rain": 40,
"percent": 90,
"icon": "https://seeme-icon.s3.ap-northeast-2.amazonaws.com/icon/weather/rain/90.png"
},
{
"time": "20시",
"rain": 10,
"percent": 10,
"icon": "https://seeme-icon.s3.ap-northeast-2.amazonaws.com/icon/weather/rain/10.png"
}
]
}
}
3) ERROR CODE
error code
error message
description
500
JSON_PARSING_ERROR
api의 잘못된 응답으로 인한 json 문서 파싱 에러
500
UNKNOWN_ERROR
이 외
Last updated
Was this helpful?