Every API here is available over the APIs.io API and to AI agents over MCP.
{"openapi":"3.1.0","info":{"title":"Matomo Reporting API for SitesManager plugin","version":"1.0.0"},"servers":[{"url":"https:\/\/demo-proxy.innocraft.cloud\/","description":"Current Matomo instance"}],"paths":{"\/index.php?module=API&method=SitesManager.getJavascriptTag":{"get":{"tags":["SitesManager"],"description":"Returns the JavaScript tracking tag for the given website.","operationId":"SitesManager.getJavascriptTag","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"},{"name":"idSite","in":"query","description":"The numeric ID of the website to generate tracking code for.","required":true,"schema":{"type":"integer","example":1}},{"name":"piwikUrl","in":"query","description":"The domain and URL path to the Matomo installation. Defaults to the current Matomo URL.","required":false,"schema":{"type":"string","default":""}},{"name":"mergeSubdomains","in":"query","description":"Whether to track visitors across all subdomains of the site.","required":false,"schema":{"type":"boolean","default":false}},{"name":"groupPageTitlesByDomain","in":"query","description":"Whether to prepend the site domain to the page title when tracking.","required":false,"schema":{"type":"boolean","default":false}},{"name":"mergeAliasUrls","in":"query","description":"Whether to treat alias URLs as part of the same website for outlink detection.","required":false,"schema":{"type":"boolean","default":false}},{"name":"visitorCustomVariables","in":"query","description":"Custom visitor-scope variables as `array(array('name', 'value'), ...)`.","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[]}},{"name":"pageCustomVariables","in":"query","description":"Custom page-scope variables as `array(array('name', 'value'), ...)`.","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[]}},{"name":"customCampaignNameQueryParam","in":"query","description":"Custom campaign name query parameter name, overriding the default.","required":false,"schema":{"type":"string","default":""}},{"name":"customCampaignKeywordParam","in":"query","description":"Custom campaign keyword query parameter name, overriding the default.","required":false,"schema":{"type":"string","default":""}},{"name":"doNotTrack","in":"query","description":"Whether to respect the browser's Do-Not-Track setting.","required":false,"schema":{"type":"boolean","default":false}},{"name":"disableCookies","in":"query","description":"Whether to disable all first-party cookies.","required":false,"schema":{"type":"boolean","default":false}},{"name":"trackNoScript","in":"query","description":"Whether to include a `<noscript>` image-based fallback for JavaScript-disabled browsers.","required":false,"schema":{"type":"boolean","default":false}},{"name":"crossDomain","in":"query","description":"Whether to enable cross-domain linking.","required":false,"schema":{"type":"boolean","default":false}},{"name":"forceMatomoEndpoint","in":"query","description":"Whether the Matomo endpoint should be forced if Matomo was installed prior to 3.7.0.","required":false,"schema":{"type":"boolean","default":false}},{"name":"excludedQueryParams","in":"query","description":"Array or comma-separated string of query parameters to exclude from page URLs.","required":false,"schema":{"oneOf":[{"type":"string","default":""},{"type":"array","items":{"type":"string"}}]}},{"name":"excludedReferrers","in":"query","description":"Array or comma-separated string of referrer hosts\/URLs to ignore.","required":false,"schema":{"oneOf":[{"type":"string","default":""},{"type":"array","items":{"type":"string"}}]}},{"name":"disableCampaignParameters","in":"query","description":"Whether to prevent campaign parameters from being sent to the tracker.","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"The JavaScript tag ready to be included in HTML pages.\n\nExample responses require Super User access. Use Try it out to see a live response.","content":{"text\/xml":[],"application\/json":[],"application\/vnd.ms-excel":[]}},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.getImageTrackingCode":{"get":{"tags":["SitesManager"],"description":"Returns image link tracking code for a given site with specified options.","operationId":"SitesManager.getImageTrackingCode","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"},{"name":"idSite","in":"query","description":"The ID to generate tracking code for.","required":true,"schema":{"type":"integer","example":1}},{"name":"piwikUrl","in":"query","description":"The domain and URL path to the Matomo installation.","required":false,"schema":{"type":"string","default":""}},{"name":"actionName","in":"query","description":"Action name to include in the image tracking request, or `false` to omit it.","required":false,"schema":{"type":"string"}},{"name":"idGoal","in":"query","description":"Goal ID to trigger a conversion for, or `false` to omit goal tracking.","required":false,"schema":{"oneOf":[{"type":"integer"},{"type":"string"}]}},{"name":"revenue","in":"query","description":"Revenue for the goal conversion. Only used when `$idGoal` is supplied.","required":false,"schema":{"oneOf":[{"type":"integer"},{"type":"number"},{"type":"string"}]}},{"name":"forceMatomoEndpoint","in":"query","description":"Whether the Matomo endpoint should be forced if Matomo was installed prior to 3.7.0.","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"The HTML-encoded image tracking code.\n\nExample responses require Super User access. Use Try it out to see a live response.","content":{"text\/xml":[],"application\/json":[],"application\/vnd.ms-excel":[]}},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.getSitesFromGroup":{"get":{"tags":["SitesManager"],"description":"Returns all websites belonging to the specified group.","operationId":"SitesManager.getSitesFromGroup","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"},{"name":"group","in":"query","description":"Group name to filter by. An empty string returns websites without a group.","required":false,"schema":{"type":"string","default":""}}],"responses":{"200":{"description":"Websites belonging to the group.\n\nExample responses require Super User access. Use Try it out to see a live response."},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.getSitesGroups":{"get":{"tags":["SitesManager"],"description":"Returns the list of website groups, including the empty group if no group was specified for some websites.","operationId":"SitesManager.getSitesGroups","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"}],"responses":{"200":{"description":"Distinct group names.\n\nExample responses require Super User access. Use Try it out to see a live response."},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.getSiteFromId":{"get":{"tags":["SitesManager"],"description":"Returns the website information for a single site: name, main_url, timezone, currency, etc.","operationId":"SitesManager.getSiteFromId","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"},{"name":"idSite","in":"query","description":"The numeric ID of the website.","required":true,"schema":{"type":"integer","example":1}}],"responses":{"200":{"description":"Site data array.\n\nExample responses require Super User access. Use Try it out to see a live response.","content":{"text\/xml":[],"application\/json":[],"application\/vnd.ms-excel":[]}},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.getSiteUrlsFromId":{"get":{"tags":["SitesManager"],"description":"Returns the list of all URLs registered for the given website (main_url + alias URLs).","operationId":"SitesManager.getSiteUrlsFromId","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"},{"name":"idSite","in":"query","description":"The numeric ID of the website.","required":true,"schema":{"type":"integer","example":1}}],"responses":{"200":{"description":"List of URLs, with the main URL first.\n\nExample responses require Super User access. Use Try it out to see a live response.","content":{"text\/xml":[],"application\/json":[],"application\/vnd.ms-excel":[]}},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.getAllSites":{"get":{"tags":["SitesManager"],"description":"Returns all websites.","operationId":"SitesManager.getAllSites","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"}],"responses":{"200":{"description":"The list of websites, indexed by idsite.\n\nExample responses require Super User access. Use Try it out to see a live response."},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.getAllSitesId":{"get":{"tags":["SitesManager"],"description":"Returns the list of all the website IDs registered.","operationId":"SitesManager.getAllSitesId","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"}],"responses":{"200":{"description":"The list of website IDs.\n\nExample responses require Super User access. Use Try it out to see a live response."},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.getSitesWithAdminAccess":{"get":{"tags":["SitesManager"],"description":"Returns the list of websites with the 'admin' access for the current user.","operationId":"SitesManager.getSitesWithAdminAccess","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"},{"name":"fetchAliasUrls","in":"query","description":"Whether to include alias URLs as an `alias_urls` key in each site entry.","required":false,"schema":{"type":"boolean","default":false}},{"name":"pattern","in":"query","description":"Optional name\/URL pattern to filter results by.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum number of sites to return, or `false` for no limit.","required":false,"schema":{"oneOf":[{"type":"integer"},{"type":"string"}]}},{"name":"sitesToExclude","in":"query","description":"Site IDs to exclude from the result.","required":false,"schema":{"type":"array","items":{"type":"integer"},"default":[]}}],"responses":{"200":{"description":"Websites the current user has admin access to.\n\nExample responses require Super User access. Use Try it out to see a live response."},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.getSitesWithMinimumAccess":{"get":{"tags":["SitesManager"],"description":"Returns the list of websites where the current user has at least the provided access level.","operationId":"SitesManager.getSitesWithMinimumAccess","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"},{"name":"permission","in":"query","description":"One of `'view'`, `'write'` or `'admin'`.","required":true,"schema":{"type":"string","example":"view"}},{"name":"pattern","in":"query","description":"Optional name\/URL pattern to filter results by.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum number of sites to return, or `null` for no limit.","required":false,"schema":{"type":"integer"}},{"name":"sitesToExclude","in":"query","description":"Site IDs to exclude from the result.","required":false,"schema":{"type":"array","items":{"type":"integer"},"default":[]}},{"name":"siteTypesToExclude","in":"query","description":"Site types (e.g. `'website'`, `'mobileapp'`) to exclude from the result.","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[]}}],"responses":{"200":{"description":"Websites matching the access level and filters.\n\nExample responses require Super User access. Use Try it out to see a live response.","content":{"text\/xml":[],"application\/json":[],"application\/vnd.ms-excel":[]}},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.getSitesWithViewAccess":{"get":{"tags":["SitesManager"],"description":"Returns the list of websites with the 'view' access for the current user.","operationId":"SitesManager.getSitesWithViewAccess","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"}],"responses":{"200":{"description":"Websites the current user has view-only access to.\n\nExample responses require Super User access. Use Try it out to see a live response.","content":{"text\/xml":[],"application\/json":[],"application\/vnd.ms-excel":[]}},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.getSitesWithAtLeastViewAccess":{"get":{"tags":["SitesManager"],"description":"Returns the list of websites with the 'view' or 'admin' access for the current user.","operationId":"SitesManager.getSitesWithAtLeastViewAccess","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"},{"name":"limit","in":"query","description":"Maximum number of sites to return, or `false` for no limit.","required":false,"schema":{"oneOf":[{"type":"integer"},{"type":"string"}]}},{"name":"_restrictSitesToLogin","in":"query","description":"Implementation detail for scheduled tasks where Superuser access is forced but sites should be restricted to a specific login. See #3017.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Websites the current user has at least view access to.\n\nExample responses require Super User access. Use Try it out to see a live response.","content":{"text\/xml":[],"application\/json":[],"application\/vnd.ms-excel":[]}},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.getSitesIdWithAdminAccess":{"get":{"tags":["SitesManager"],"description":"Returns the list of website IDs with the 'admin' access for the current user.","operationId":"SitesManager.getSitesIdWithAdminAccess","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"}],"responses":{"200":{"description":"Website IDs.\n\nExample responses require Super User access. Use Try it out to see a live response."},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.getSitesIdWithViewAccess":{"get":{"tags":["SitesManager"],"description":"Returns the list of website IDs with the 'view' access for the current user.","operationId":"SitesManager.getSitesIdWithViewAccess","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"}],"responses":{"200":{"description":"Website IDs.\n\nExample responses require Super User access. Use Try it out to see a live response.","content":{"text\/xml":[],"application\/json":[],"application\/vnd.ms-excel":[]}},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.getSitesIdWithWriteAccess":{"get":{"tags":["SitesManager"],"description":"Returns the list of website IDs with the 'write' access for the current user.","operationId":"SitesManager.getSitesIdWithWriteAccess","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"}],"responses":{"200":{"description":"Website IDs.\n\nExample responses require Super User access. Use Try it out to see a live response."},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.getSitesIdWithAtLeastViewAccess":{"get":{"tags":["SitesManager"],"description":"Returns the list of website IDs with the 'view' or 'admin' access for the current user.","operationId":"SitesManager.getSitesIdWithAtLeastViewAccess","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"},{"name":"_restrictSitesToLogin","in":"query","description":"Implementation detail for scheduled tasks where Superuser access is forced but sites should be restricted to a specific login.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Website IDs.\n\nExample responses require Super User access. Use Try it out to see a live response.","content":{"text\/xml":[],"application\/json":[],"application\/vnd.ms-excel":[]}},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.getSitesIdFromSiteUrl":{"get":{"tags":["SitesManager"],"description":"Returns the list of website IDs associated with a URL.","operationId":"SitesManager.getSitesIdFromSiteUrl","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"},{"name":"url","in":"query","description":"The URL to search for.","required":true,"schema":{"type":"string","example":"https:\/\/example.org\/pricing"}}],"responses":{"200":{"description":"Matching website IDs.\n\nExample responses require Super User access. Use Try it out to see a live response.","content":{"text\/xml":[],"application\/json":[],"application\/vnd.ms-excel":[]}},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.addSite":{"get":{"tags":["SitesManager"],"description":"Add a website.","operationId":"SitesManager.addSite","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"},{"name":"siteName","in":"query","description":"Site name.","required":true,"schema":{"type":"string","example":"Example NZ Site"}},{"name":"urls","in":"query","description":"The URLs array must contain at least one URL called the 'main_url'; if several URLs are provided in the array, they will be recorded as alias URLs for this website. When calling the API via HTTP specify multiple URLs via `&urls[]=http...&urls[]=http...`.","required":false,"schema":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"string"}]}},{"name":"ecommerce","in":"query","description":"Whether Ecommerce Reporting is enabled (1) or disabled (0).","required":false,"schema":{"oneOf":[{"type":"integer"},{"type":"string"}]}},{"name":"siteSearch","in":"query","description":"Whether Site Search is enabled (1) or disabled (0).","required":false,"schema":{"oneOf":[{"type":"integer"},{"type":"string"}]}},{"name":"searchKeywordParameters","in":"query","description":"Comma-separated list of search keyword parameter names.","required":false,"schema":{"type":"string"}},{"name":"searchCategoryParameters","in":"query","description":"Comma-separated list of search category parameter names.","required":false,"schema":{"type":"string"}},{"name":"excludedIps","in":"query","description":"Comma-separated list of IPs to exclude from reports (allows wildcards).","required":false,"schema":{"type":"string"}},{"name":"excludedQueryParameters","in":"query","description":"Comma-separated list of URL query parameters to strip from tracked URLs.","required":false,"schema":{"type":"string"}},{"name":"timezone","in":"query","description":"Timezone string, e.g. `'Europe\/London'`. Defaults to the global default timezone.","required":false,"schema":{"type":"string"}},{"name":"currency","in":"query","description":"Currency code, e.g. `'EUR'`. Defaults to the global default currency.","required":false,"schema":{"type":"string"}},{"name":"group","in":"query","description":"Website group identifier. Requires Superuser access.","required":false,"schema":{"type":"string"}},{"name":"startDate","in":"query","description":"Date at which statistics for this website will start, in `YYYY-MM-DD` format. Defaults to today's date.","required":false,"schema":{"type":"string"}},{"name":"excludedUserAgents","in":"query","description":"Comma-separated list of user agent substrings to exclude.","required":false,"schema":{"type":"string"}},{"name":"keepURLFragments","in":"query","description":"If `1`, URL fragments will be kept when tracking. If `2`, they will be removed. If `0`, the default global behavior will be used.","required":false,"schema":{"oneOf":[{"type":"integer"},{"type":"string"}]}},{"name":"type","in":"query","description":"The website type, defaults to `'website'` if not set.","required":false,"schema":{"type":"string"}},{"name":"settingValues","in":"query","description":"Measurable settings keyed by plugin name, each containing an array of `['name' => string, 'value' => mixed]` pairs.","required":false,"schema":{"type":"string"}},{"name":"excludeUnknownUrls","in":"query","description":"Whether to track only URLs matching one of the website's registered URLs.","required":false,"schema":{"type":"string"}},{"name":"excludedReferrers","in":"query","description":"Comma-separated list of hosts\/URLs to exclude from referrer detection.","required":false,"schema":{"type":"string"}},{"name":"description","in":"query","description":"Optional description providing additional context about this site, such as its purpose or usage.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The ID of the newly created website.\n\nExample responses require Super User access. Use Try it out to see a live response."},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.getSiteSettings":{"get":{"tags":["SitesManager"],"description":"Returns the editable measurable settings metadata for a website.","operationId":"SitesManager.getSiteSettings","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"},{"name":"idSite","in":"query","description":"The numeric ID of the website to inspect.","required":true,"schema":{"type":"integer","example":1}}],"responses":{"200":{"description":"Formatted measurable settings grouped by plugin, each containing setting definitions and values.\n\nExample responses require Super User access. Use Try it out to see a live response."},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.deleteSite":{"get":{"tags":["SitesManager"],"description":"Delete a website from the database, given its ID.","operationId":"SitesManager.deleteSite","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"},{"name":"idSite","in":"query","description":"The numeric ID of the website to delete.","required":true,"schema":{"type":"integer","example":1}},{"name":"passwordConfirmation","in":"query","description":"The current user's password. Only required when the request is authenticated with a session token.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#\/components\/responses\/GenericSuccess"},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.addSiteAliasUrls":{"get":{"tags":["SitesManager"],"description":"Add a list of alias URLs to the given website.","operationId":"SitesManager.addSiteAliasUrls","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"},{"name":"idSite","in":"query","description":"The numeric ID of the website to update.","required":true,"schema":{"type":"integer","example":1}},{"name":"urls","in":"query","description":"URLs to add. When calling the API via HTTP specify multiple URLs via `&urls[]=http...&urls[]=http...`.","required":true,"schema":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"string"}]},"example":"[\"https:\\\/\\\/example.org\",\"https:\\\/\\\/example.org\\\/pricing\"]"}],"responses":{"200":{"description":"The number of newly inserted URLs.\n\nExample responses require Super User access. Use Try it out to see a live response."},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.setSiteAliasUrls":{"get":{"tags":["SitesManager"],"description":"Set the list of alias URLs for the given website.","operationId":"SitesManager.setSiteAliasUrls","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"},{"name":"idSite","in":"query","description":"The numeric ID of the website to update.","required":true,"schema":{"type":"integer","example":1}},{"name":"urls","in":"query","description":"Alias URLs to persist for the website.","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[]}}],"responses":{"200":{"description":"The number of newly inserted URLs.\n\nExample responses require Super User access. Use Try it out to see a live response."},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.getIpsForRange":{"get":{"tags":["SitesManager"],"description":"Get the start and end IP addresses for an IP address range.","operationId":"SitesManager.getIpsForRange","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"},{"name":"ipRange","in":"query","description":"IP address range in presentation format (e.g. `'192.168.1.0\/24'`).","required":true,"schema":{"type":"string","example":"203.0.113.0\/24"}}],"responses":{"200":{"description":"Low and high IP addresses in presentation format, or `false` on error.\n\nExample responses require Super User access. Use Try it out to see a live response.","content":{"text\/xml":[],"application\/json":[],"application\/vnd.ms-excel":[]}},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.setGlobalExcludedIps":{"get":{"tags":["SitesManager"],"description":"Sets IPs to be excluded from all websites. IPs can contain wildcards.","operationId":"SitesManager.setGlobalExcludedIps","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"},{"name":"excludedIps","in":"query","description":"Comma-separated list of IPs to exclude from being tracked (allows wildcards).","required":true,"schema":{"type":"string","example":"203.0.113.10,203.0.113.11"}}],"responses":{"200":{"description":"Always `true`.\n\nExample responses require Super User access. Use Try it out to see a live response."},"400":{"$ref":"#\/components\/responses\/BadRequest"},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"500":{"$ref":"#\/components\/responses\/ServerError"},"default":{"$ref":"#\/components\/responses\/DefaultError"}}}},"\/index.php?module=API&method=SitesManager.setGlobalSearchParameters":{"get":{"tags":["SitesManager"],"description":"Sets global Site Search keyword\/category parameter names, to be used on websites which have not specified these values individually.","operationId":"SitesManager.setGlobalSearchParameters","parameters":[{"$ref":"#\/components\/parameters\/formatOptional"},{"name":"searc
# --- truncated at 32 KB (75 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/matomo/refs/heads/main/openapi/matomo-sites-manager-openapi.json