API returns

{{ result | tojson(indent=2) }}
{% if result.wikidata %}

Wikidata item: {{ result.wikidata }}

{% endif %} {% if result.commons_cat %}

Commons category: {{result.commons_cat.title }}

{% endif %} {% if elements %}

{{ elements.count() }} surrounding elements found

{% else %}

No elements found

{% endif %} {% if query %}

Searching for Wikimedia Commons categories using this SPARQL query. Wikidata Query service

{{ query | highlight_sparql | safe }}
{% endif %} {% for element in elements %} {% set tags = element.tags %}
{% for key, value in element.tags.items() if not (key == "way_area" or "name:" in key or key.startswith("source")) %}
{{ key }}: {{ value }}
{% endfor %}
{% endfor %}