Simple Analytics
Cookie-free web analytics: visits, pages, sources and export
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- API key (sa_api_key_…)SecretRequired
- User ID (sa_user_id_…)Required
Where to find them
- Sign in at simpleanalytics.com and open your account settings (button below).
- Create an API key (it starts with sa_api_key_) and copy it.
- On the same page copy your user ID (“User ID”, it starts with sa_user_id_). The key is used for the statistics; the user ID is required by the admin and export APIs.
Tools (1)
Simple Analytics API request
SIMPLEANALYTICS_SEND_REQUESTAuthenticated call to the Simple Analytics API (https://simpleanalytics.com). Any endpoint of the API is allowed. Examples: GET /{domain}.json?version=6&fields=pageviews,visitors&start=2026-09-01&end=2026-09-30 (site statistics; fields also accepts histogram, pages, countries and referrers), GET /{domain}/{path}.json?version=6&fields=pageviews (a specific page), GET /api/websites (sites in the account), GET /api/export/datapoints?version=6&format=csv&hostname={domain}&start=2026-09-01&end=2026-09-30&type=pageviews&fields=added_iso,path&timezone=America%2FNew_York (CSV export), POST /api/websites/add {"hostname": "example.com", "public": false, "timezone": "America/New_York"} (Business plan or higher).
Required scopes
No scopes required
Input
Simple Analytics API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically.

