I'm glad Peter is on this case now. But I will point out that the script I send you works for me. That is, it returns results. It returns this:
{"metaData":{"apiVersion":"0.2","warning":"ACHTUNG: Bitte vor ernsthafter Nutzung feedback@openthesaurus.de kontaktieren, um bei API-\u00c4nderungen informiert zu werden","copyright":"Copyright (C) 2019 Daniel Naber (www.danielnaber.de)","license":"Creative Commons Attribution-ShareAlike 4.0 or GNU LESSER GENERAL PUBLIC LICENSE Version 2.1","source":"https://www.openthesaurus.de","date":"Wed Jul 03 20:38:07 CEST 2019"},"synsets":[]}
I can't see why running the same script wouldn't work for you.
The Macro is pretty useful right now. However I'm thinking about a more sophisticated version.
The results I get after the macro has run look like this:
{"metaData":{"apiVersion":"0.2","warning":"ACHTUNG: Bitte vor ernsthafter Nutzung feedback@openthesaurus.de kontaktieren, um bei API-\u00c4nderungen informiert zu werden","copyright":"Copyright (C) 2019 Daniel Naber (www.danielnaber.de)","license":"Creative Commons Attribution-ShareAlike 4.0 or GNU LESSER GENERAL PUBLIC LICENSE Version 2.1","source":"https://www.openthesaurus.de","date":"Sun Oct 13 20:51:31 CEST 2019"},"synsets":[{"id":34416,"categories":[],"terms":[{"term":"damals"},{"term":"in jenen l\u00e4ngst vergangenen Tagen"},{"term":"in jenen (fernen) Tagen"},{"term":"in jener l\u00e4ngst vergangenen Zeit"},{"term":"seinerzeit"},{"term":"zu dieser Zeit"},{"term":"zu jener Zeit"},{"term":"zum damaligen Zeitpunkt"},{"term":"da","level":"umgangssprachlich"}]}]}
I'm thinking about getting the JSON values for "term" and put them in a prompt. So the workflow would be to select a word, then fire up the macro and, in this case, get synonyms for the word. The results will be selectable in a prompt, I chose the one that suits me and the aforementioned selected word will be replaced by the synonym.