Export URL click statistics in various formats (CSV, XLSX, JSON, XML) with the same filtering and grouping capabilities as the stats API.
Authentication: Optional for public URLs, required for authenticated URLs and aggregate exports
API Key: Optional (if used, requires stats:read, urls:read, or admin:all scope)
Rate Limits:
Note: Lower rate limits than stats API due to resource-intensive export generation.
Export Formats:
Anonymous Usage:
scope=anonshort_code parameterAuthenticated Usage:
scope=all for aggregate statisticsAPI key in format: spoo_
Export file format
csv, xlsx, json, xml Statistics scope: 'all' (authenticated only) or 'anon' (public access)
all, anon URL alias (required when scope=anon)
ISO 8601 datetime or Unix timestamp (default: 7 days ago)
ISO 8601 datetime or Unix timestamp (default: now)
IANA timezone for output formatting (default: UTC)
Comma-separated dimensions: time, browser, os, country, city, referrer, short_code
Comma-separated metrics: clicks, unique_clicks
JSON string containing dimension filters. Format: {"dimension": ["value1", "value2"]}
Available filter dimensions:
browser - Filter by browser nameos - Filter by operating systemcountry - Filter by country codecity - Filter by city namereferrer - Filter by referrer URLshort_code - Filter by URL alias (not allowed with scope=anon)Examples:
{"browser": ["Chrome", "Firefox"]}{"country": ["US", "CA"], "browser": ["Chrome"]}{"short_code": ["link1", "link2"]} (scope=all only)Comma-separated browser names (alternative to filters parameter)
Comma-separated OS names (alternative to filters parameter)
Comma-separated country codes (alternative to filters parameter)
Comma-separated city names (alternative to filters parameter)
Comma-separated referrer URLs (alternative to filters parameter)
Export file generated successfully
The response is of type file.