# OpenstatX developer docs

> OpenstatX: a no-signup, independent website analytics service. Browser activity and HTTP requests are counted in two separate ledgers, distinguishing likely humans, verified AI, claimed AI, other automation and unknown. Data is private by default.

## Contents

- [Quickstart](/docs/quickstart): create a workspace, install the snippet, read your first report
- [Authentication and permissions](/docs/authentication): sessions, recovery keys, API credentials, OAuth, scopes
- [Metrics and dimensions](/docs/metrics): a readable guide to the machine-readable metric dictionary
- [MCP integration](/docs/mcp): Remote MCP tool list and authorization
- [Visitor classification](/docs/classification): the five visitor classes, the AI client registry and verification methods
- [Examples](/docs/examples): curl, TypeScript, Python, MCP clients

## Machine-readable entry points

| Entry point | Address | Notes |
|---|---|---|
| OpenAPI | [/openapi.json](/openapi.json) | Generated from the operation contracts, same source as the routes |
| MCP | `https://openstatx.com/mcp` | Streamable HTTP; Bearer API credential or OAuth authorization code + PKCE |
| llms.txt | [/llms.txt](/llms.txt) | Navigation for LLMs |
| ARD | [/.well-known/ard.json](/.well-known/ard.json) | Agent Resource Discovery |
| Agent Card | [/.well-known/agent-card.json](/.well-known/agent-card.json) | Capability card |
| Metric dictionary | [/api/v1/schema/metrics](/api/v1/schema/metrics) | Public, no authentication required |
| Capabilities | [/api/v1/capabilities/public](/api/v1/capabilities/public) | implemented / enabled / configured / available |

Every docs page has a Markdown version: append `.md` to the address, e.g. [/docs/quickstart.md](/docs/quickstart.md).

## Data freshness

- Browser and HTTP data can be queried as soon as it is written (near_real_time, usually within 60 seconds).
- Sessions are finalized after 30 minutes of inactivity; data that has not been finalized is marked provisional.
- 15-minute rollups are produced by a scheduled job that runs every 5 minutes. By default, hot detail data is kept for 7 days, hourly rollups for 90 days, and daily rollups for 365 days.

## Limitations

- This service does not report AI training counts, AI answer citation counts or model inclusion; logs cannot prove any of these.
- The Site ID is a public identifier: it can only write data, never read any.
- This service does not change your security rules and does not block visitors automatically.
