Hello all,
I am trying to query the number of clicked outlinks via API for a given URL. However, the number is always 0, even though the URL has outlink clicks for the queried period.
With the following query I get nb_outlinks
and nb_uniq_outlinks
for the whole website:
Query (1)
https://analyse.dipf.de/wasystem1?
module=API&
method=Actions.get&
idSite=1&
period=range&
date=2021-12-27%2C2022-01-02&
format=json&
filter_limit=-1&
token_auth=XXX
If I use the parameter segment=
for a certain URL, I get back page views etc., but no number of clicked outlinks, although I can see via the transition report that the URL has outlink clicks in the defined period:
Query (2)
https://analyse.dipf.de/wasystem1?
module=API&
method=Actions.get&
idSite=1&
period=range&
date=2021-12-27%2C2022-01-02&
segment=pageUrl%3D%3Dhttps%3A%2F%2Fwww.example.de%2Ffoo.html&
format=json&
filter_limit=-1&
token_auth=XXX
The same applies if I want to query the actually clicked outlinks. If I use the following query without a segment, I get data back:
Query (3)
https://analyse.dipf.de/wasystem1?
module=API&
method=Actions.getOutlinks&
idSite=1&
period=range&
date=2021-12-27%2C2022-01-02&
format=json&
filter_limit=-1&
token_auth=XXX
If I query the endpoint for a specific URL, I get no data:
Query (4)
https://analyse.dipf.de/wasystem1?
module=API&
method=Actions.getOutlinks&
idSite=1&
period=range&
date=2021-12-27%2C2022-01-02&
segment=pageUrl%3D%3Dhttps%3A%2F%2Fwww.example.de%2Ffoo.html&
format=json&
filter_limit=-1&
token_auth=XXX
There is already a similar question in Requesting "Outlinks" for a specific pageUrl. Unfortunately, it is very old and has not been answered.
Can anyone help me further? Perhaps I am constructing the queries incorrectly or using the wrong endpoint. What irritates me most is that I get the correct nb_pageviews
etc. with query (2), but the nb_outlinks
and nb_uniq_outlinks
are 0.
Best regards and thanks in advance,
Patrick