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 accepts query in the body of the request, instead of URL, allowing to run larger queries without hitting URL length limit.