Authentication
API Keys
All API endpoints require authentication via an API key. You can generate keys from your dashboard or from the admin panel.
GET /api/traffic.php?domain=example.com&api_key=YOUR_KEY
curl -H "Authorization: Bearer YOUR_KEY" https://traffx.co.ke/api/traffic.php?domain=example.com
curl -H "X-API-Key: YOUR_KEY" https://traffx.co.ke/api/traffic.php?domain=example.com