Create sites in Matomo automatically


(Oumaima SAOUD) #1

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.


(Lukas Winkler) #2

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.