Skip to main content

Number History API

Returns the win history for a number the user searched.

MethodGET
Path/api/v1/numberHistory/{number}/{type}
Full URLhttps://backend.4dnum.com/api/v1/numberHistory/{number}/{type}

Request

AttributeTypeMandatoryExampleDescription
numberStringYes1568The number to look up.
typeStringYesMAbbreviation company name. One of M, PMP, ST, SG, STC, EE, CS, H, P, GD.

Response

An array of history entries.

AttributeTypeExampleDescription
typeStringPMPCompany the number won under.
numberString1685The winning number.
drawDateString2024-02-11Date the number won.
prizeString3RDPrize tier won. See table below.
gapDateInteger33Gap, in days, to the next winning occurrence.
imageStringhttps://backend.4dnum.com/images.svgLogo of the company the number won under.

Prize values

ValueMeaning
1STFirst prize
2NDSecond prize
3RDThird prize
SPESpecial prize
CONConsolation

Example

curl https://backend.4dnum.com/api/v1/numberHistory/1568/M
[
{
"type": "PMP",
"number": "1685",
"drawDate": "2024-02-11",
"prize": "3RD",
"gapDate": 33,
"image": "https://backend.4dnum.com/images.svg"
}
]
tip

This is the same entry shape as history in Number Analysis. Use Number Analysis when you also need the totals and lucky book data; use this endpoint when you only need the history list.