Skip to main content

Lucky Book Content

Lists lucky book content, paged 20 entries at a time.

MethodGET
Path/api/v1/content/{cat}/{language}/{index}
Full URLhttps://backend.4dnum.com/api/v1/content/{cat}/{language}/{index}

Request

AttributeTypeMandatoryExampleDescription
catStringYesgztLucky book abbreviation. See table below.
languageStringYesenen = English, cn = Chinese, my = Malay.
indexStringYes20Page offset. See paging below.

cat values

ValueLucky book
gztGuan Yin Ma Dictionary
qztTua Pek Kong (Qian) Dictionary
wztTua Pek Kong (Wan) Dictionary

Paging

index selects a 20-entry block:

indexReturns
20entries 20 – 39
40entries 41 – 59
note

The block boundaries are quoted from the source document as-is. Verify the exact off-by-one behaviour of the second block against a live response before relying on it for pagination maths.

Response

AttributeTypeExampleDescription
numberString020Number in the lucky book. Zero-padded.
contentStringLIU SHANMeaning of the number, in the requested language.
imageStringhttps://backend.4dnum.com/image.pngImage for that meaning.

Example

curl https://backend.4dnum.com/api/v1/content/gzt/en/20
[
{
"number": "020",
"content": "LIU SHAN",
"image": "https://backend.4dnum.com/image.png"
}
]
tip

number is zero-padded (020, not 20). Compare as strings, or normalise with parseInt on both sides before comparing.