# OpenstatX > Sign-up-free, independent website analytics with classic reports. The browser ledger and the HTTP request ledger are kept separate; visitors are classified as human_likely / ai_verified / ai_claimed / other_automation / unknown; AI crawling and AI referrals are counted separately. Data is private by default. ## What this service does - Reports for websites: PV, UV, sessions, sources, pages, events, conversions, AI and automation requests - A REST API (/api/v1) and a Remote MCP server (/mcp) that share permissions, metrics and the query service with the web dashboard ## Main capabilities - Browser JS collection (including SPAs and the legacy _czc compatibility layer) and signed server/edge HTTP request collection - AI client detection: verification against official IP lists is kept separate from User-Agent claims (ai_verified vs ai_claimed) - Structured queries (allow-listed metrics and dimensions, no SQL), multi-site comparison, exports, historical imports, scheduled reports ## Important endpoints - OpenAPI: https://openstatx.com/openapi.json - MCP: https://openstatx.com/mcp (Bearer API credential, or OAuth 2.1 authorization code + PKCE) - Metric dictionary (public): https://openstatx.com/api/v1/schema/metrics - Dimension dictionary (public): https://openstatx.com/api/v1/schema/dimensions - Capabilities (public): https://openstatx.com/api/v1/capabilities/public - ARD: https://openstatx.com/.well-known/ard.json - Agent Card: https://openstatx.com/.well-known/agent-card.json - Language: the JSON above (OpenAPI, ARD, Agent Card, dictionaries, capabilities) is English by default; add `?lang=zh` or send `Accept-Language: zh-CN` for the Chinese (简体中文) version ## Documentation - [Developer docs](https://openstatx.com/docs.md) (index): OpenstatX developer docs: quickstart, authentication, metric definitions, REST, MCP and examples. - [Quickstart](https://openstatx.com/docs/quickstart.md): Get started with OpenstatX in five minutes: create an anonymous workspace, install the JS, view reports, read data via the API. - [Authentication and permissions](https://openstatx.com/docs/authentication.md): OpenstatX credential layers: Site ID, browser session, recovery key, API credentials, ingest credentials, OAuth tokens and scopes. - [Metrics and dimensions](https://openstatx.com/docs/metrics.md): OpenstatX metric dictionary: definitions, units, datasets, additivity, dedupe scope, privacy requirements and required permissions. - [MCP integration](https://openstatx.com/docs/mcp.md): OpenstatX Remote MCP: address, authentication and a description of every tool. - [Visitor classification](https://openstatx.com/docs/classification.md): Definitions of the five visitor classes, the AI client registry, official IP list verification and AI referral detection rules. - [_czc compatibility](https://openstatx.com/docs/czc.md): Commands, parameters and migration notes for the OpenstatX _czc compatibility layer. - [Examples](https://openstatx.com/docs/examples.md): Complete examples of calling OpenstatX from curl, TypeScript, Python and MCP clients. - Chinese (简体中文) versions: add `?lang=zh` to any docs URL, e.g. https://openstatx.com/docs/quickstart.md?lang=zh ## Data sources - Analytics data comes from the SDK each site installs and from edge/server collectors the site owner deploys; this service does not crawl third-party sites - The AI client registry comes from each provider's official documentation and official IP lists (see /docs/classification) ## Data freshness - Reports: near_real_time (usually queryable within 60 seconds of ingestion); sessions settle after 30 minutes of inactivity - Every response's meta includes data_as_of, processing_status and quality_by_metric ## Limitations - All site data is private: it requires an API credential created by the workspace owner or an OAuth token approved on the consent page - No AI training counts, AI answer citation counts or model inclusion counts - The Site ID is a public write identifier and cannot read data - High-risk actions (deletion, shortening retention, public sharing) can only be confirmed by a person in the browser; AI can only preview them ## API - Base path https://openstatx.com/api/v1; responses { data, meta, pagination }; errors { error: { code, message, request_id, retryable } } ## MCP - https://openstatx.com/mcp; tools: discover_analytics, list_sites, get_report, query_analytics, get_realtime, get_sessions, get_event_details, explain_classification, compare_sites, create_export, get_export, get_data_quality, get_usage, traffic_overview, traffic_breakdown, traffic_explain, add_site, check_installation, start_site_verification, check_site_verification, manage_goals, manage_funnels, manage_site_config, manage_saved_reports, manage_schedules, manage_imports, manage_public_shares, preview_action