Requesting "Outlinks" for a specific pageUrl

Hi Everyone,

We are currently in the making of a Plugin that queries the piwik database for statistics for specific page-urls.
It’ s not a plugin for Piwik but a Neos CMS Package that integrates Piwik.

A lot of requests are already working, but I have problems with determining the “outlink-hits” or “-visits” for a specific page-url.
For the sake of completeness I will show you all my Requests, maybe there are obvious mistakes that I did not notice.

WORKING

· accessing data considering hits and visits of a specific page-url in a specified period (week and month)


# last week
http://piwik.lamp.lan/index.php?module=API&format=json&method=Actions.getPageUrl&date=last7&period=day&pageUrl=http://neos-piwik.lamp.lan/en/hauptseite-1.html&idSite=1&token_auth=xxx

# last month
http://piwik.lamp.lan/index.php?module=API&format=json&method=Actions.getPageUrl&date=last30&period=day&pageUrl=http://neos-piwik.lamp.lan/en/hauptseite-1.html&idSite=1&token_auth=xxx

· accessing data considering hits and visits of a specific page-url for “all time” (last 1 year)


http://piwik.lamp.lan/index.php?module=API&format=json&method=Actions.getPageUrl&date=last1&period=year&pageUrl=http://neos-piwik.lamp.lan/en/hauptseite-1.html&idSite=1&token_auth=xxx

· accessing data considering operating systems that hit a specific page-url for “all time” (last 1 year)


http://piwik.lamp.lan/index.php?module=API&format=json&method=DevicesDetection.getOsFamilies&date=last1&period=year&idSite=1&token_auth=xxx&segment=pageUrl==http://neos-piwik.lamp.lan/en/hauptseite-1.html

· accessing data considering device types that hit a specific page-url for “all time” (last 1 year)


http://piwik.lamp.lan/index.php?module=API&format=json&method=DevicesDetection.getType&date=last1&period=year&idSite=1&token_auth=xxx&segment=pageUrl==http://neos-piwik.lamp.lan/en/hauptseite-1.html

· accessing data considering browsers that hit a specific page-url for “all time” (last 1 year)


http://piwik.lamp.lan/index.php?module=API&format=json&method=DevicesDetection.getBrowsers&date=last1&period=year&idSite=1&token_auth=xxx&segment=pageUrl==http://neos-piwik.lamp.lan/en/hauptseite-1.html

NOT WORKING

· accessing data considering outlinks of a specific page-url in a specified period (week and month) or “all time” (last 1 year)


# pageUrl=
http://piwik.lamp.lan/index.php?module=API&format=json&method=Actions.getOutlinks&date=last1&period=year&pageUrl=http://neos-piwik.lamp.lan/en/hauptseite-1.html&idSite=1&token_auth=xxx

# segment=pageUrl==
http://piwik.lamp.lan/index.php?module=API&format=json&method=Actions.getOutlinks&date=last1&period=year&idSite=1&token_auth=xxx&segment=pageUrl==http://neos-piwik.lamp.lan/en/hauptseite-1.html


The first call with the parameter &pageUrl=http://neos-piwik.lamp.lan/en/hauptseite-1.html gives me all outlinks of the whole website. It does not matter which URL is passed as an argument.
In the second case, calling the API with the parameter &segment=pageUrl==http://neos-piwik.lamp.lan/en/hauptseite-1.html I don’t get any outlinks back.

So… What I want to know is, if it is possible to query the piwik database for outlinks of a specific “pageUrl”!

Best regards and thanks in advance,

Christian