LotteryResultsService


Click here for a complete list of operations.

GetResults

Returns specified last number of DrawResults for specified draw type. Draws will be returned in descending date order with most recent being first.

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
drawType:
lastNumberOfDraws:

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /ResultsService.asmx HTTP/1.1
Host: resultsservice.lottery.ie
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.lottery.ie/resultsservice/GetResults"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetResults xmlns="http://www.lottery.ie/resultsservice">
      <drawType>All or Lotto or Lotto_54321 or LottoPlus1 or LottoPlus2 or LottoPlus1_54321 or LottoPlus2_54321 or EuroMillions or EuroMillionsPlus or EuroMillionsPlusExtra or MondayMillion or MondayMillionExtra or MondayMillionPlus or AllOrNothing or DailyMillion or DailyMillionPlus</drawType>
      <lastNumberOfDraws>int</lastNumberOfDraws>
    </GetResults>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetResultsResponse xmlns="http://www.lottery.ie/resultsservice">
      <GetResultsResult>
        <DrawResult>
          <DrawName>string</DrawName>
          <DrawDate>dateTime</DrawDate>
          <DrawNumber>int</DrawNumber>
          <Message>string</Message>
          <PromoMessage1>string</PromoMessage1>
          <PromoMessage2>string</PromoMessage2>
          <TopPrize>int</TopPrize>
          <NextDrawDate>dateTime</NextDrawDate>
          <Structure>
            <Tier xsi:nil="true" />
            <Tier xsi:nil="true" />
          </Structure>
          <Numbers>
            <DrawNumber xsi:nil="true" />
            <DrawNumber xsi:nil="true" />
          </Numbers>
        </DrawResult>
        <DrawResult>
          <DrawName>string</DrawName>
          <DrawDate>dateTime</DrawDate>
          <DrawNumber>int</DrawNumber>
          <Message>string</Message>
          <PromoMessage1>string</PromoMessage1>
          <PromoMessage2>string</PromoMessage2>
          <TopPrize>int</TopPrize>
          <NextDrawDate>dateTime</NextDrawDate>
          <Structure>
            <Tier xsi:nil="true" />
            <Tier xsi:nil="true" />
          </Structure>
          <Numbers>
            <DrawNumber xsi:nil="true" />
            <DrawNumber xsi:nil="true" />
          </Numbers>
        </DrawResult>
      </GetResultsResult>
    </GetResultsResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /ResultsService.asmx HTTP/1.1
Host: resultsservice.lottery.ie
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetResults xmlns="http://www.lottery.ie/resultsservice">
      <drawType>All or Lotto or Lotto_54321 or LottoPlus1 or LottoPlus2 or LottoPlus1_54321 or LottoPlus2_54321 or EuroMillions or EuroMillionsPlus or EuroMillionsPlusExtra or MondayMillion or MondayMillionExtra or MondayMillionPlus or AllOrNothing or DailyMillion or DailyMillionPlus</drawType>
      <lastNumberOfDraws>int</lastNumberOfDraws>
    </GetResults>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetResultsResponse xmlns="http://www.lottery.ie/resultsservice">
      <GetResultsResult>
        <DrawResult>
          <DrawName>string</DrawName>
          <DrawDate>dateTime</DrawDate>
          <DrawNumber>int</DrawNumber>
          <Message>string</Message>
          <PromoMessage1>string</PromoMessage1>
          <PromoMessage2>string</PromoMessage2>
          <TopPrize>int</TopPrize>
          <NextDrawDate>dateTime</NextDrawDate>
          <Structure>
            <Tier xsi:nil="true" />
            <Tier xsi:nil="true" />
          </Structure>
          <Numbers>
            <DrawNumber xsi:nil="true" />
            <DrawNumber xsi:nil="true" />
          </Numbers>
        </DrawResult>
        <DrawResult>
          <DrawName>string</DrawName>
          <DrawDate>dateTime</DrawDate>
          <DrawNumber>int</DrawNumber>
          <Message>string</Message>
          <PromoMessage1>string</PromoMessage1>
          <PromoMessage2>string</PromoMessage2>
          <TopPrize>int</TopPrize>
          <NextDrawDate>dateTime</NextDrawDate>
          <Structure>
            <Tier xsi:nil="true" />
            <Tier xsi:nil="true" />
          </Structure>
          <Numbers>
            <DrawNumber xsi:nil="true" />
            <DrawNumber xsi:nil="true" />
          </Numbers>
        </DrawResult>
      </GetResultsResult>
    </GetResultsResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

GET /ResultsService.asmx/GetResults?drawType=string&lastNumberOfDraws=string HTTP/1.1
Host: resultsservice.lottery.ie
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<ArrayOfDrawResult xmlns="http://www.lottery.ie/resultsservice">
  <DrawResult>
    <DrawName>string</DrawName>
    <DrawDate>dateTime</DrawDate>
    <DrawNumber>int</DrawNumber>
    <Message>string</Message>
    <PromoMessage1>string</PromoMessage1>
    <PromoMessage2>string</PromoMessage2>
    <TopPrize>int</TopPrize>
    <NextDrawDate>dateTime</NextDrawDate>
    <Structure>
      <Tier>
        <Winners>int</Winners>
        <Match>string</Match>
        <PrizeType>Cash or ScratchCard</PrizeType>
        <Prize>int</Prize>
      </Tier>
      <Tier>
        <Winners>int</Winners>
        <Match>string</Match>
        <PrizeType>Cash or ScratchCard</PrizeType>
        <Prize>int</Prize>
      </Tier>
    </Structure>
    <Numbers>
      <DrawNumber>
        <Number>int</Number>
        <Type>Standard or Bonus or LuckyStar</Type>
      </DrawNumber>
      <DrawNumber>
        <Number>int</Number>
        <Type>Standard or Bonus or LuckyStar</Type>
      </DrawNumber>
    </Numbers>
  </DrawResult>
  <DrawResult>
    <DrawName>string</DrawName>
    <DrawDate>dateTime</DrawDate>
    <DrawNumber>int</DrawNumber>
    <Message>string</Message>
    <PromoMessage1>string</PromoMessage1>
    <PromoMessage2>string</PromoMessage2>
    <TopPrize>int</TopPrize>
    <NextDrawDate>dateTime</NextDrawDate>
    <Structure>
      <Tier>
        <Winners>int</Winners>
        <Match>string</Match>
        <PrizeType>Cash or ScratchCard</PrizeType>
        <Prize>int</Prize>
      </Tier>
      <Tier>
        <Winners>int</Winners>
        <Match>string</Match>
        <PrizeType>Cash or ScratchCard</PrizeType>
        <Prize>int</Prize>
      </Tier>
    </Structure>
    <Numbers>
      <DrawNumber>
        <Number>int</Number>
        <Type>Standard or Bonus or LuckyStar</Type>
      </DrawNumber>
      <DrawNumber>
        <Number>int</Number>
        <Type>Standard or Bonus or LuckyStar</Type>
      </DrawNumber>
    </Numbers>
  </DrawResult>
</ArrayOfDrawResult>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /ResultsService.asmx/GetResults HTTP/1.1
Host: resultsservice.lottery.ie
Content-Type: application/x-www-form-urlencoded
Content-Length: length

drawType=string&lastNumberOfDraws=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<ArrayOfDrawResult xmlns="http://www.lottery.ie/resultsservice">
  <DrawResult>
    <DrawName>string</DrawName>
    <DrawDate>dateTime</DrawDate>
    <DrawNumber>int</DrawNumber>
    <Message>string</Message>
    <PromoMessage1>string</PromoMessage1>
    <PromoMessage2>string</PromoMessage2>
    <TopPrize>int</TopPrize>
    <NextDrawDate>dateTime</NextDrawDate>
    <Structure>
      <Tier>
        <Winners>int</Winners>
        <Match>string</Match>
        <PrizeType>Cash or ScratchCard</PrizeType>
        <Prize>int</Prize>
      </Tier>
      <Tier>
        <Winners>int</Winners>
        <Match>string</Match>
        <PrizeType>Cash or ScratchCard</PrizeType>
        <Prize>int</Prize>
      </Tier>
    </Structure>
    <Numbers>
      <DrawNumber>
        <Number>int</Number>
        <Type>Standard or Bonus or LuckyStar</Type>
      </DrawNumber>
      <DrawNumber>
        <Number>int</Number>
        <Type>Standard or Bonus or LuckyStar</Type>
      </DrawNumber>
    </Numbers>
  </DrawResult>
  <DrawResult>
    <DrawName>string</DrawName>
    <DrawDate>dateTime</DrawDate>
    <DrawNumber>int</DrawNumber>
    <Message>string</Message>
    <PromoMessage1>string</PromoMessage1>
    <PromoMessage2>string</PromoMessage2>
    <TopPrize>int</TopPrize>
    <NextDrawDate>dateTime</NextDrawDate>
    <Structure>
      <Tier>
        <Winners>int</Winners>
        <Match>string</Match>
        <PrizeType>Cash or ScratchCard</PrizeType>
        <Prize>int</Prize>
      </Tier>
      <Tier>
        <Winners>int</Winners>
        <Match>string</Match>
        <PrizeType>Cash or ScratchCard</PrizeType>
        <Prize>int</Prize>
      </Tier>
    </Structure>
    <Numbers>
      <DrawNumber>
        <Number>int</Number>
        <Type>Standard or Bonus or LuckyStar</Type>
      </DrawNumber>
      <DrawNumber>
        <Number>int</Number>
        <Type>Standard or Bonus or LuckyStar</Type>
      </DrawNumber>
    </Numbers>
  </DrawResult>
</ArrayOfDrawResult>