The Algolia Analytics Connector is a local tool that exposes real-time insights from the Algolia Analytics API.
It offers both a JSON API and a simple HTML index page, along with a Polars-based analytics layer for deeper exploration.
- Live Algolia search and click metrics via HTTP endpoints
- Automatic schema inference for each metric
- Polars integration for analysis, aggregation, and visualization
- Simple local server, no web frontend or dashboard required
- Clone the repo:
git clone https://github.com/yourname/algolia-connector.git cd algolia-connector
- Install dependencies:
pip install -r requirements.txt
- Configure your environment
cp .env.example .env
- Start the server
python algolia_connector.py
Thema | Link |
---|---|
Overview for Analysis | docs/overview.md |
Metric Endpoints | docs/metric-endpoints.md |
In-depth Metrics | docs/metrics/ |
Polars Analysis Example | polars_test.py |
All endpoints support optional query parameters:
startDate
: Start of range (e.g.2024-07-01
)endDate
: End of range (e.g.2024-07-08
)limit
: Max number of items (default: 10)offset
: Pagination offsettags
: Filter using metadata (e.g.tags=device:mobile phone
)
See full query guide → docs/query-parameters.md