Documentation and API
The Pomelo API gives you read-only access to your analytics data through simple REST endpoints. Query pageviews, sessions, breakdowns, and monitor your usage, all secured with Bearer tokens.
What you can do
Section titled “What you can do”- Retrieve metrics: timeseries and breakdowns by dimension (referrer, device, page, browser, OS; customer or account views only when tenant context and the active plan allow them)
- Monitor usage: check your current billing period consumption and history
- Identify your account: list your sites and token metadata
Quick links
Section titled “Quick links”- Install Pomelo on your site: add the script and check that the first visits arrive
- Read your data through the API: create a token and make your first call
- Consent and Campaigns: pass your visitors’ consent choice to the script
- Multi-tenant analytics: model a marketplace or multi-shop product
- Multi-tenant guide: implement tenant registry, SDK attribution, and tenant-safe queries
- Authentication: token scopes, headers, and security
- API Reference: interactive OpenAPI documentation
- MCP server: read your statistics from Claude or ChatGPT, read-only
- Reports, sharing and emails: weekly report, viewing link, CSV export
- Error codes: error responses and recommended client behavior
- Limits & pricing: plan quotas, cost model, rate limits
Base URL
Section titled “Base URL”https://api.pomeloanalytics.com/v1All endpoints require a valid Bearer token in the Authorization header.