Getting the graph from all sites in api


(Erik) #1

Is there any way to generate the graph image shown in the all website display (see image below) using the api? I would like to generate these graphs and copy them to another server.

all-websites-graph

I am aware that you can generate some graphs using the api with:
https://developer.matomo.org/api-reference/reporting-api-metadata

This graph is however too cluttered.

I have a site overview display with 50+ sites which means that generating javascript graphs for each site will be too heavy on the browser. I must also be economical with space which means that the generated graph using the api creates a graph which is a bit of an eyesore.


(Lukas Winkler) #2

Hi,

I found an really old thread that shows that the Sparklines should work when you add an auth_token to their URL:

I can’t guarantee it still works but it is definitly worth a try.

BTW: The Sparklines are the oldest part of Matomo and for one of the next releases (maybe 3.5.0) I’m working on modernizing their style and making them higher resolution

PS: If you don’t like the colors of the sparkline, you can write a really simple theme to change it:


(Erik) #3

This did the trick, thank you!