Jump to content

Topic on API talk:Exturlusage

API on Dutch Wikipedia does not seem to work

2
OlafJanssen (talkcontribs)

The call https://nl.wikipedia.org/w/api.php?action=query&list=exturlusage&eulimit=100&eunamespace=0&format=json&euquery=https://www.dbnl.org gives zero results, while the Dutch article https://nl.wikipedia.org/w/index.php?title=Theodoor%20van%20Ryswyck&action=edit clearly contains the URL "https://www.dbnl.org"

The equivalent call in the WPNL frontend seems to work: https://nl.wikipedia.org/wiki/Speciaal:VerwijzingenZoeken?target=https%3A%2F%2Fwww.dbnl.org

A modified call with a variant value of "euquery" does seem to work : https://nl.wikipedia.org/w/api.php?action=query&list=exturlusage&eulimit=100&eunamespace=0&format=json&euquery=dbnl.nl

OlafJanssen (talkcontribs)

Self-solved this issue: apparently you need to specify the "euprotocol=https" explicitly

https://nl.wikipedia.org/w/api.php?action=query&list=exturlusage&eulimit=100&eunamespace=0&format=json&euprotocol=https&euquery=www.dbnl.org


However, this is not stated correctly in the documentation : "If empty and euquery is set, the protocol is http and https"

https://nl.wikipedia.org/w/api.php?action=query&list=exturlusage&eulimit=100&eunamespace=0&format=json&euprotocol=&euquery=www.dbnl.org gives 0 results

Reply to "API on Dutch Wikipedia does not seem to work"