Translations:Wikidata query service/User Manual/89/en

SPARQL queries can be submitted directly to the SPARQL endpoint with a GET or POST request to $code1. The result is returned as XML by default, or as JSON if either the query parameter $code2 or the header $code3 are provided. POST requests also accept the query in the body of the request, instead of URL, allowing to run larger queries without hitting URL length limit. (Note that the POST body must still be, not just  , and the SPARQL query must still be URL-escaped.)