Build with ClearAnalytics
Access your privacy-first analytics data through a powerful API. Export to Google BigQuery, build custom dashboards, or integrate with any tool in your stack.
Quick Start
Get your analytics data in three simple steps.
Create an API Token
Go to Settings → API Tokens and generate a new token. Copy it immediately — it's only shown once.
Make Your First Request
Use the token as a Bearer token in the Authorization header.
curl -H "Authorization: Bearer YOUR_TOKEN" \
https://clearanalytics.eu/api/v1/stats/overview?period=7d
Build Your Integration
Use any of our endpoints to pull stats, export data, or feed your BigQuery data warehouse. Check our full documentation for all available endpoints.
Built for Developers
Everything you need to integrate analytics into your workflow.
Real-Time Analytics Data
Access visitors, pageviews, referrers, devices, locations, and campaign data through clean RESTful endpoints.
BigQuery Integration
Export data as JSONL or CSV with ready-to-use BigQuery schema definitions. Set up your data warehouse in minutes.
Privacy-First Design
All data is anonymized at collection time. No personal data, no cookies, no tracking across sites. GDPR-compliant by default.
Fast & Reliable
Built for performance with rate limiting, cursor-based pagination for large exports, and streamed responses.
Developer Friendly
Simple Bearer token authentication, consistent JSON responses, comprehensive error codes, and detailed documentation.
Flexible Exports
Download raw pageview data, goals, and conversions in JSONL or CSV format. Perfect for custom analysis pipelines.
Export to Google BigQuery
Export your analytics data in BigQuery-native JSONL format with auto-generated schema definitions. Perfect for advanced analysis, cross-referencing with other data sources, or building custom BI dashboards.
- JSONL and CSV export formats
- Ready-to-use BigQuery schema definitions
- Cursor-based pagination for large datasets
- Privacy-safe: all data is already anonymized
# Download BigQuery schema
curl -H "Authorization: Bearer $TOKEN" \
https://clearanalytics.eu/api/v1/export/bigquery-schema > schema.json
# Export pageviews as JSONL
curl -H "Authorization: Bearer $TOKEN" \
"https://clearanalytics.eu/api/v1/export/pageviews?format=jsonl" > data.jsonl
# Create table and load into BigQuery
bq mk --table project:dataset.pageviews \
schema.json
bq load --source_format=NEWLINE_DELIMITED_JSON \
project:dataset.pageviews data.jsonl
Ready to get started?
Create a free account, add your site, and start accessing your analytics data through the API today.