---
name: kl8-data
description: Query China Happy 8 (KL8) lottery historical data — latest draw, specific issue, recent draws, and number frequency analysis.
version: 1.0.0
tags:
  - lottery
  - china
  - data
  - kl8
  - statistics
category: "Data & APIs"
os:
  - windows
  - macos
  - linux
metadata:
  openclaw:
    requires:
      bins:
        - python
    emoji: 🎲
---

# KL8 Lottery Data

Query and analyze China Happy 8 (快乐8/KL8) lottery historical draw data. Includes latest draw, specific issue lookup, recent draws listing, and number frequency analysis.

## Quick Start

```python
import kl8_data

# Get latest draw
kl8_data.get_latest()

# Query specific issue
kl8_data.get_issue("2026097")

# List recent 10 draws
kl8_data.list_recent(10)

# Analyze number frequency
kl8_data.analyze()
```

## API

| Function | Description |
|----------|-------------|
| `get_latest()` | Get the most recent draw result |
| `get_issue(issue)` | Query a specific issue number |
| `list_recent(count=10)` | List recent N draws |
| `analyze()` | Number frequency statistics (hot/cold numbers) |

## Data

Hardcoded draw data from March–April 2026 (issues 2026069–2026097, 29 draws). Each draw has 20 numbers drawn from 1–80. To update with fresh data, edit `KL8_DATA` dict in `kl8_data.py`.

## Source

`kl8_data.py` (98 lines) in this skill directory.
