Create sites in Matomo automatically

Hello,
I used the REST API to create and initialize a site in Matomo using the method: SitesManager. Now I want to create 200 sites. Is there a way to automate the creation of these sites?
For now I have the proposal to make a java code that will generate the sites, but I have trouble starting.

Thanks in advance.

Hi,

As you have seen you can use the API to create sites in Matomo. So now you only have to write a small script in your favourite programming/scripting language to make the 200 API requests.

1 Like