https://api.lotto-haru.kr/win/number.json
지원하는 HTTP Method : GET
파라메타 정보
- chasu
- [숫자][다중] 차수를 설정
- chasuStart
- [숫자] 시작 차수를 설정 (※ chasuEnd 와 함께 사용시, chasuEnd 보다 같거나 작아야함)
- chasuEnd
- [숫자] 종료 차수를 설정 (※ chasuStart 와 함께 사용시, chasuStart 보다 같거나 커야함)
선택 1. https://api.lotto-haru.kr/win/number.json
선택 2. https://api.lotto-haru.kr/win/number/{chasu}.json
선택 3. https://api.lotto-haru.kr/win/number/0/{chasuStart}.json
선택 4. https://api.lotto-haru.kr/win/number/0/{chasuStart}/{chasuEnd}.json
[
{
"chasu": 1146,
"chasuStr": "1,146",
"win1Count": 11,
"win1CountStr": "11",
"win2Count": 72,
"win2CountStr": "72",
"win3Count": 3030,
"win3CountStr": "3,030",
"win4Count": 158146,
"win4CountStr": "158,146",
"win5Count": 2677017,
"win5CountStr": "2,677,017",
"winCountSum": 2838276,
"winCountSumStr": "2,838,276"
}
]
parseResponse({
"data": [
{
"chasu": 1146,
"chasuStr": "1,146",
"win1Count": 11,
"win1CountStr": "11",
"win2Count": 72,
"win2CountStr": "72",
"win3Count": 3030,
"win3CountStr": "3,030",
"win4Count": 158146,
"win4CountStr": "158,146",
"win5Count": 2677017,
"win5CountStr": "2,677,017",
"winCountSum": 2838276,
"winCountSumStr": "2,838,276"
}
]
});
<?xml version="1.0"?>
<response>
<item>
<chasu>1146</chasu>
<chasuStr>1,146</chasuStr>
<win1Count>11</win1Count>
<win1CountStr>11</win1CountStr>
<win2Count>72</win2Count>
<win2CountStr>72</win2CountStr>
<win3Count>3030</win3Count>
<win3CountStr>3,030</win3CountStr>
<win4Count>158146</win4Count>
<win4CountStr>158,146</win4CountStr>
<win5Count>2677017</win5Count>
<win5CountStr>2,677,017</win5CountStr>
<winCountSum>2838276</winCountSum>
<winCountSumStr>2,838,276</winCountSumStr>
</item>
</response>
리턴 정보
- chasu
- 로또 차수
- win1Count
- 1등 당첨자 수
- win2Count
- 2등 당첨자 수
- win3Count
- 3등 당첨자 수
- win4Count
- 4등 당첨자 수
- win5Count
- 5등 당첨자 수
- winCountSum
- 당첨자 수 총합