Whilst waiting for Debian's basex to support http(s)_proxy, I found a workaround: installing the caching proxy WWWOFFLE, one then can use $ basex -q 'doc("http://localhost:8080/http/example.org/api?xyz")' without which I would very fast exceed daily API usage limits for mere repetitive tests.