Skip to content

Analytics

All analytics endpoints require analytics:read permission on your API key.

Get click count and basic stats for a specific link:

Terminal window
curl https://qck.sh/public-api/v1/links/{id}/stats \
-H "X-API-Key: qck_your_api_key_here"

Aggregate stats across all your links:

Terminal window
curl https://qck.sh/public-api/v1/analytics/summary \
-H "X-API-Key: qck_your_api_key_here"

Daily click data. Use days for relative ranges or start_date/end_date (YYYY-MM-DD) for absolute dates:

Terminal window
curl "https://qck.sh/public-api/v1/analytics/timeseries?days=30" \
-H "X-API-Key: qck_your_api_key_here"

Clicks grouped by country:

Terminal window
curl "https://qck.sh/public-api/v1/analytics/geo?days=30" \
-H "X-API-Key: qck_your_api_key_here"

Clicks by device type, browser, and OS:

Terminal window
curl "https://qck.sh/public-api/v1/analytics/devices?days=30" \
-H "X-API-Key: qck_your_api_key_here"

Where your clicks come from:

Terminal window
curl "https://qck.sh/public-api/v1/analytics/referrers?days=30" \
-H "X-API-Key: qck_your_api_key_here"

Click distribution by hour of day (0–23), useful for timing campaigns:

Terminal window
curl "https://qck.sh/public-api/v1/analytics/hourly?days=30" \
-H "X-API-Key: qck_your_api_key_here"

Tracked clicks per month by tier: Free (5,000), Basic (150,000), Growth (1,000,000), Pro (2,000,000), Business (10,000,000), Scale (25,000,000).

When you exceed your monthly allowance, query windows are clamped to the most recent data within the allowance — the cutoff_date field in the usage object of every analytics response shows the clamp point.

How far back you can query depends on your tier:

TierRetention
Free6 months
Basic ($19/mo)1 year
Growth ($49/mo)3 years
Pro ($99/mo) and aboveUnlimited