API for know the 10 most visited pages

Hi to everybody

I’ve install piwik on my website last week.
Now I know the API for give me back a XML with the info from my website.

Well NOW I need to know the 10 most visited pages of today.

I’ve this calling:
http://www.mywebsite/piwik/index.php?module=API&method=Action.getPageUrls&idSite=1&period=dar&date=2012-11-20&format=xml&token_auth=XXXXXMITOKEN

But this give me more than 100 pages.
Now I need only the 10 most pages viewed.

How Can I do?

thanks

Add &filter_limit=10

See http://piwik.org/docs/analytics-api/reference/

No the filter_limit=10 give me the firsth 10 pages of items array from XML.

Or not?

Yes by default they’re sorted by “most viewed”

ok thanks! I’ll try in my mobile APP.