Overview
The Analytics API provides comprehensive insights into event performance, sustainability metrics, carbon footprint tracking, and trend analysis. Use these endpoints to monitor environmental impact and optimize future events.Authentication
All API requests require an API key to be included in the header:Get Sustainability Metrics
GET /api/analytics/sustainability
Retrieve comprehensive sustainability metrics across all events or filtered by date range.
Query Parameters
string
Start date for metrics calculation (ISO 8601 format)
string
End date for metrics calculation (ISO 8601 format)
string
Comma-separated list of event IDs to include in metrics
string
default:"total"
Data granularity (“total”, “daily”, “weekly”, “monthly”)
Response
object
Total carbon footprint metrics
object
Waste reduction and recycling metrics
object
Energy usage metrics
object
Adoption of sustainable practices
object
Sustainability certifications achieved
array
Historical trend data (if granularity is not “total”)
object
Summary statistics
Example
Response Example
Get Event Analytics
GET /api/analytics/events/:id
Retrieve detailed analytics for a specific event.
Path Parameters
string
required
The unique identifier of the event
Response
string
Event identifier
string
Event name
object
Attendance metrics
object
Attendee demographics
object
Event-specific sustainability metrics
object
Engagement metrics
object
Financial metrics
object
Attendee feedback summary
Example
Get Trend Data
GET /api/analytics/trends
Retrieve trend analysis and comparative metrics across events.
Query Parameters
string
required
Metric to analyze (“carbon_emissions”, “attendance”, “waste_reduction”, “energy_usage”, “offset_participation”)
string
required
Start date for trend analysis (ISO 8601 format)
string
required
End date for trend analysis (ISO 8601 format)
string
default:"monthly"
Time granularity (“daily”, “weekly”, “monthly”, “quarterly”)
string
Filter by event category
boolean
default:"false"
Include industry benchmark comparison
Response
string
The metric being analyzed
object
Date range of analysis
array
Time series data points
object
Statistical analysis
object
Industry benchmark comparison (if requested)
array
AI-generated insights and recommendations
Example
Response Example
Error Responses
All endpoints may return the following error responses:object
Error details