1, the preface

Universal lottery information interface, this is one of the RollToolsApi universal series of interfaces, internal contains 5 small interfaces, can achieve the specified 7 big lottery lottery information. The main feature of this interface is that it can synchronize lottery information in real time and also provide the interface for calculating the winning results.

RollToolsApi Universal series of interfaces contains many free universal API interfaces, using these interfaces can help you to develop many features rich, stable service small programs, apps or web pages, whether it is a good choice for practice or practice. A list of all interfaces can be found here at www.mxnzp.com/doc/list

2. Interface details

Note: app_id and app_secret are temporary keys. If you really use them, you need to go to www.mxnzp.com to apply for your own private key.

2.1 Refers to the regular number general winning number

  • The interface address: www.mxnzp.com/api/lottery…

  • Return format: JSON

  • Request mode: GET

  • Sample request: www.mxnzp.com/api/lottery…

  • Interface Note: Obtains the information about a regular number

  • Return example:

    {
        "openCode": "01,03,06,10,11,29 + 16"."code": "ssq"."expect": "18135"."name": "Bicolor"."time": "The 2018-11-18 21:18:20"
    }
    Copy the code

2.2 Latest general winning numbers information

  • The interface address: www.mxnzp.com/api/lottery…

  • Return format: JSON

  • Request mode: GET

  • Sample request: www.mxnzp.com/api/lottery…

  • Interface Note: Obtains the latest information about universal winning numbers

  • Return example:

    {
        "openCode": "10,12,15,25,26,27 + 14"."code": "ssq"."expect": "18136"."name": "Bicolor"."time": "The 2018-11-20 21:18:20"
    }
    Copy the code

2.3 Recent historical lottery data

  • The interface address: www.mxnzp.com/api/lottery…

  • Return format: JSON

  • Request mode: GET

  • Sample request: www.mxnzp.com/api/lottery…

  • Interface Note: Obtains the latest historical lottery data

  • Return example:

    {
        "code": 1."msg": "Data returned successfully"."data": [{"openCode": "01,04,12,13,30,32 + 08"."code": "ssq"."expect": "19100"."name": "Bicolor"."time": "The 2019-08-27 21:18:20"},... Only one is shown here... ] }Copy the code

2.4 Obtaining color species information

  • The interface address: www.mxnzp.com/api/lottery…

  • Return format: JSON

  • Request mode: GET

  • Sample request: www.mxnzp.com/api/lottery…

  • Interface Note: Obtain details about supported color types

  • Return example:

    {
        "code": 1."msg": "Data returned successfully"."data": [{"typeName": "Bicolor"."typeCode": "ssq"."openTime": "Draw every Tuesday, Thursday and Sunday."."startTime": "February 16, 2003."."ruleDesc": "First Prize (6+1) : float. Second prize (6+0) : floating. Third Prize (5+1) : single prize is fixed at 3000 yuan. Fourth prize (5+0, 4+1) : single prize is fixed at 200 yuan. Fifth prize (4+0, 3+1) : single prize fixed 10 yuan. Sixth prize (2+1, 1+1, 0+1) : single prize fixed 5 yuan.},... It only shows one... ] }Copy the code

2.5 Calculation of winning result

  • The interface address: www.mxnzp.com/api/lottery…

  • Return format: JSON

  • Request mode: GET

  • Sample request: www.mxnzp.com/api/lottery…

  • Interface remarks: to obtain the winning result of the lottery, according to the lottery number and the number of bets to judge whether the winning, only support two-color ball, big lotto, seven lottery and seven star; Results according to a certain algorithm for calculation, if there is any deviation, please refer to the official prevail!

  • Return example:

    {
        "code": 1."msg": "Data returned successfully"."data": {
            "resultList": [{"num": "13"."lottery": true."blue": false},... Here's just one... ] ."resultDetails": "First prize, the prize fluctuates with the prize pool."."resultDesc": "5 + 2"."openCode": "13,19,28,30,33 + 02 + 12"."checkedCode": "13,19,28,30,33 @ 02, 12"."expect": "19090"."code": "cjdlt"."codeValue": Super Lotto.}}Copy the code