API Actions.getPageUrls doesn't list all pages


#1

Hi,

I try to get my most visited pages using an api call:
http://example.com/piwik/index.php?module=API&method=Actions.getPageUrls&idSite=1&period=month&date=last&flat=1&showColumns=nb_visits&format=xml&token_auth=12345

This is what I get:


<?xml version="1.0" encoding="utf-8" ?>
<results>
	<result date="2013-10">
		<row>
			<label>en/blog/topic/top1</label>
			<nb_visits>150</nb_visits>
			<url>http://example.com/en/blog/topic/top1</url>
		</row>
		<row>
			<label>en/blog/topic/top2</label>
			<nb_visits>125</nb_visits>
			<url>http://example.com/en/blog/topic/top2</url>
		</row>
		<row>
			<label>en/blog/topic/top3</label>
			<nb_visits>80</nb_visits>
			<url>http://example.com/en/blog/topic/top3</url>
		</row>
		...
	</result>
</results>

But there are some pages with more views but they are not in the result?

http://example.com/en/blog/special-page-1_123456781 (130 views)
http://example.com/en/blog/special-page-2_123456782 (100 views)
http://example.com/en/blog/special-page-3_123456783 (95 views)

How can I get all the pages? Whats wrong with my query?

Thanks for your help


(Matthieu Aubry) #2

your query looks good and should return all data. Have you selected the right date? maybe try last2 or last3 to select more data


#3

last3 doesn’t show these pages either