Need fast api help

index.php?module=API&method=VisitsSummary.get&idSite=all&period=day&date=yesterday&format=html&token_auth=…

hi, the api documentation is pretty confusing to me.

can you help me add to this api call:

  1. sort by column nb_visits
  2. also show sites which have 0 visits
  3. show domain name additionally to the ID number

id be very grateful

PS i think it doesnt matter but i have 1000+ domains on this installation.

Please read: http://piwik.org/docs/analytics-api/reference/

thanks for the reply. I’ve read it, i don’t have much experience with api’s. I’ve tried to modify the query to no avail.

im almost sure ive got to use the VisitsSummary.get but i dont understand how i need to modify the method so it does what i need.

for example: 1. sort by column nb_visits

ive tried to add
&filter_sort_order=asc&filter_sort_column=nb_visits and it didnt change anything. Ive really tried a few times im not expecting spoon-feeding just point me in the right direction for modyfing the method. thanks

can anybody else who is experienced with the API help me, please?

You’re right I think sorting does not work in this case (when using idSite=all result is alwas sorted by idSite…

In this case, request all websites and sort it in javascript (if you request in json).

thanks the problem is can i somehow force the api to also show the domain additionaly to the id_site number? cause with 1000 sites its a big problem for me.