Translations:Wikidata Query Service/User Manual/298/en

The result is returned as XML by default, or as JSON if either the query parameter $code2 is included in the URL, or the header $code3 is provided with the request.