Wikidata to OpenStreetMap

OpenStreetMap (OSM) and Wikidata are linked by storing the QID for the Wikidata item in the wikidata tag of the OSM object. This API returns OSM objects that link to a given Wikidata item.

API URL: https://osm.wikidata.link/tagged/api/item/:qid

Replace :qid with the QID of the Wikidata item.

Example

Say you want to find the OSM node that represents Reality Checkpoint (Q130177), a large cast-iron lamppost in Cambridge, England.

Request URL: https://osm.wikidata.link/tagged/api/item/Q130177

Response:

{
  "osm": [
    {
      "id": 1780104614,
      "tags": {
        "HE_ref": "1268376",
        "highway": "street_lamp",
        "lamp_type": "electric",
        "listed_status": "Grade II",
        "name": "Reality Checkpoint",
        "name:lt": "Realybės taškas",
        "tourism": "attraction",
        "website": "https://en.wikipedia.org/wiki/Reality_Checkpoint",
        "wheelchair": "yes",
        "wikidata": "Q130177"
      },
      "type": "node"
    }
  ],
  "wikidata": {
    "qid": "Q130177"
  }
}

Test

Enter a Wikidata item QID to check which OSM objects are returned by the API.

QID: