The WDQ API seems down. I tested it today and some days ago, and I keep getting "504 Gateway Error". See for example https://wdq.wmflabs.org/api?q=claim[138:676555]
Workaround: instead of the deprecated service, use https://query.wikidata.org
The WDQ API seems down. I tested it today and some days ago, and I keep getting "504 Gateway Error". See for example https://wdq.wmflabs.org/api?q=claim[138:676555]
Workaround: instead of the deprecated service, use https://query.wikidata.org
I thought it had been discontinued. Anyways, this should probably be reported at https://bitbucket.org/magnusmanske/wikidataquery
@Esc3300 Thanks, I created an issue there. By the way, what is the recommended way to do complex WikiData API queries? https://query.wikidata.org/ doesn't seem to be able to return JSON data. Should I use plain old https://www.wikidata.org/w/api.php ?
There is a "download" "as JSON"-option (bottom right corner).
For complex queries, personally, I think it works better. We haven't quite managed to replace it for simple but bulky queries.
Maybe https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help can help you further.