Matomo
Web analytics: visits, pages, sources, goals and campaigns
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
- Matomo URLRequiredHTTPS URL
- Authentication token (token_auth)SecretRequired
Where to find them
- In Matomo: gear icon (“Administration”) → “Personal” → “Security” → “Create new token” (at the bottom of the page), confirm your password and add a description.
- Copy the token: it is shown only once. The user needs read access to the sites you will query. “Secure requests only” tokens also work: Maua.Culturewire sends the token in the body of POST requests.
Tools (1)
Matomo API request
MATOMO_SEND_REQUESTAuthenticated call to the Matomo API ({url}). Any endpoint of the API is allowed. Use POST /index.php with form data (Maua.Culturewire adds the token): {"module": "API", "format": "json", "method": "…", …}. Methods: SitesManager.getSitesWithAtLeastViewAccess, VisitsSummary.get (idSite, period=day|week|month|year|range, date=today|yesterday|last30|2026-10-01,2026-10-15), Actions.getPageUrls (flat=1, filter_limit=20), Referrers.getWebsites, Referrers.getSearchEngines, Referrers.getCampaigns, Goals.get, UserCountry.getCountry, DevicesDetection.getType, Live.getLastVisitsDetails (filter_limit=10). Errors arrive with status 200 as {"result": "error", "message": "…"}.
Required scopes
No scopes required
Input
Matomo 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.

