For Agents
Programmatically get traffic analytics data, get performance metrics. Covers 24 operations with apiKey authentication.
Use for: I need to traffic analytics data, I want to performance metrics, Search for summary of log data, Find all live visitors
Install Jentic One Beta
Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the Swetrix API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.
Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.
Step 1: Jentic One Host machine
# On the machine that will host your Jentic One instance:
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fswetrix.com%2Fswetrix" | shStep 2: Agent machine
# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fswetrix.com%2Fswetrix" | sh
jentic register # connects your agent to your Jentic One instanceJentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.
What an agent can do with Swetrix API.
Get traffic analytics data
Manage analytics data programmatically
Integrate Swetrix API into automated workflows
Query and filter Swetrix API records by parameters
GET STARTED
Not supported: Does not handle payments, communications, or crm - use for analytics only.
Swetrix is an open-source, lightweight, and privacy-focused web analytics platform. This API provides endpoints for statistics retrieval, event tracking, and project administration. The API exposes 24 endpoints secured with apiKey authentication.
Monitor Swetrix API operational status and events
Patterns agents use Swetrix API for, with concrete tasks.
★ Analytics Operations
Use the Swetrix API to perform analytics operations programmatically. The API provides 24 endpoints covering core functionality including get traffic analytics data, get performance metrics, get summary of log data.
Call GET /v1/log to get traffic analytics data
Automated Log Management
Automate log operations by combining multiple Swetrix API endpoints. Agents can get performance metrics and then get summary of log data in a single workflow.
Call GET /v1/log/performance to get performance metrics, then verify the result
AI Agent Integration via Jentic
AI agents discover and call Swetrix API endpoints through Jentic without managing credentials directly. An agent searches for the required operation by intent, receives the matching endpoint schema, and executes the call with Jentic-managed authentication. This eliminates the need to read API documentation or handle apiKey tokens manually.
Search Jentic for 'get traffic analytics data', load the operation schema, and execute with Jentic-managed credentials
24 endpoints — swetrix is an open-source, lightweight, and privacy-focused web analytics platform.
METHOD
PATH
DESCRIPTION
/v1/log
Get traffic analytics data
/v1/log/performance
Get performance metrics
/v1/log/birdseye
Get summary of log data
/v1/log/live-visitors
Get live visitors
/v1/log/hb
Get heartbeat event counts
/v1/log/sessions
Get sessions list
/v1/log/session
Get single session details
/v1/log/funnel
Get funnel analysis
/v1/log
Get traffic analytics data
/v1/log/performance
Get performance metrics
/v1/log/birdseye
Get summary of log data
/v1/log/live-visitors
Get live visitors
/v1/log/hb
Get heartbeat event counts
What agents get from Jentic-routed access to this vendor.
Setup
Wiring the Swetrix API by hand means passing its API-key request header on every call against api.swetrix.com and managing its log, project, and organisation routes yourself. Through Jentic you install once, import the Swetrix API from the API Directory, store the key once, and your agent calls it.
Permission scoping
The Swetrix API puts each resource id in the URL path (/v1/project/{id}, /v1/organisation/{orgId}), so a rule can pin your agent to one project or organisation: it can read its analytics and update that record and nothing else. You choose the operations it may call, so destructive ones like deleting a project or an organisation are not included unless you add them.
Credential isolation
Your Swetrix API key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
Intent-based discovery
Agents search Jentic by intent such as 'get traffic analytics data' or 'fetch a project funnel', and Jentic returns the matching Swetrix API operation with its input schema so the agent calls the right endpoint without browsing the reference docs.
Alternatives and complements available in the Jentic catalogue.
Specific to using Swetrix API through Jentic.
What authentication does the Swetrix API use?
The Swetrix API uses an API key passed in the `X-Api-Key` header. Through Jentic, these credentials are stored encrypted in your Jentic One instance and injected at execution time, so raw secrets never enter the agent context.
Can I get traffic analytics data with the Swetrix API?
Yes. Use the GET /v1/log endpoint. The API returns structured JSON responses that agents can parse and act on directly.
What are the rate limits for the Swetrix API?
Rate limits are not specified in the OpenAPI spec. Check the vendor documentation for current limits. Through Jentic, rate limiting is handled automatically with retry logic built into the execution layer.
How do I get traffic analytics data through Jentic?
Install the Jentic SDK with pip install jentic, authenticate through Jentic One, the self-hosted execution layer, then search for 'get traffic analytics data'. Jentic returns the matching Swetrix API operation with its input schema. Load the schema and execute the call - credentials are injected automatically.
How many endpoints does the Swetrix API have?
The Swetrix API exposes 24 endpoints covering log, organisation, project operations.
/v1/log/sessions
Get sessions list
/v1/log/session
Get single session details
/v1/log/funnel
Get funnel analysis