🤖 Bot Detection Testing API

Simple APIs for testing bot detection systems using Durable Objects.

🎰 Lottery System

1 in 1,000,000 chance to win on each try.

POST /api/lottery - Try your luck (API)
🎲 Try the lottery (UI)

🎫 Ticket System

Create events and buy tickets (max 1000 per event).

GET /api/events - List all events
POST /api/events - Create new event
GET /api/events/{id} - View event details
POST /api/events/{id}/buy - Buy a ticket
🎫 View events (UI)

📡 API Usage Examples

Note: All API responses include bot detection data (bot scores, JA3/JA4 fingerprints, IP info, etc.)

curl -X POST https://your-worker.workers.dev/api/lottery

curl -X POST https://your-worker.workers.dev/api/events -H "Content-Type: application/json" -d '{"name":"Concert"}'

curl -X POST https://your-worker.workers.dev/api/events/1/buy