Commons:Monuments database/API

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

You can access the Monuments database using an API

Location[edit]

The api is hosted on Toollabs and accessible at http://tools.wmflabs.org/heritage/api/api.php

Examples[edit]

Example to query the API with a json format result:

  • http://tools.wmflabs.org/heritage/api/api.php?action=search&srcountry=fr&srlang=fr&srmunicipality=[[Aix-en-Provence]]&format=json

Be careful in this example the municipality have brackets because of Wiki formating.

Development[edit]

The source code of the api is available in git

Monuments database
ErfgoedBot