Available endpoints
The Analytics API offers the following endpoint categories:Core statistics
- Basic stats - Get overview metrics including total hits, unique visitors, and bot detection
- Time series - Analyze hits over time with customizable intervals
- Dashboard summary - Get a comprehensive overview for dashboard displays
Traffic sources
- Referrer data - Understand where your traffic is coming from
- Geographic data - See visitor distribution by country or city
- Campaign analytics - Track UTM parameters for marketing campaigns
User & device analytics
- Device information - Breakdown by device type, OS, and browser
- Device categories - Mobile, desktop, and tablet distribution
- Browser families - Analytics grouped by browser type
- User agents - Detailed user agent analysis
- Language data - Visitor language preferences
Traffic patterns
- Hourly traffic - Identify peak hours and traffic patterns
- Peak traffic analytics - Find highest traffic periods
- Return visitor analytics - Track new vs returning visitors
Technical analytics
- Path analytics - See which paths are most accessed
- Query parameter analytics - Analyze query string usage
- Status code analytics - Monitor redirect status codes
- Destination URL analytics - Track where users are redirected to
- Error analytics - Identify and troubleshoot errors
Advanced analytics
- Bot analytics - Distinguish between human and bot traffic
- Comparison analytics - Compare metrics across time periods
- Raw hit data - Access individual hits with filtering and pagination
Common parameters
Most analytics endpoints accept the following optional query parameters:Start date for the analytics period in ISO 8601 format (e.g.,
2024-01-01T00:00:00Z)End date for the analytics period in ISO 8601 format (e.g.,
2024-01-31T23:59:59Z)Time interval for aggregating data. Available on time-based endpoints.Common values:
hour, day, week, monthDimension to group results by. Available on geographic and other endpoints.Examples:
country, city, regionMaximum number of results to return. Available on list-based endpoints.Default varies by endpoint, typically 10-100
Response format
All analytics endpoints return JSON responses with the following general structure:Authentication
All Analytics API requests require authentication. Include your API key in the request headers:Rate limits
The Analytics API is subject to rate limiting to ensure service quality:- Standard tier: 100 requests per minute
- Pro tier: 500 requests per minute
- Enterprise tier: Custom limits available
When the rate limit is exceeded, the API returns a
429 Too Many Requests status code with a Retry-After header indicating when you can retry.Getting started
To start using the Analytics API:- Obtain your redirect ID from the dashboard or redirects API
- Choose the analytics endpoint that matches your needs
- Make a GET request with optional time range parameters
- Process the returned data in your application
Next steps
Explore the specific analytics endpoints:- Basic statistics - Get started with core metrics
- Time series data - Analyze trends over time
- Geographic analytics - Understand your global reach
- Device analytics - Know your users’ devices
- Referrer analytics - Track traffic sources