# Wikipedia Coordinates API

Get Wikipedia Coordinates data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Wikimedia, pass parameters such as action, colimit, format, and retrieve structured data including resolved article identifier, resolved article title, latitude, longitude, and primary-coordinate indicator to link articles to maps, enrich place records, and handle place redirects.

Documentation: https://openany.si/market/apis/wikipedia/wikipedia-article-coordinates/
API ID: 06a57da2-b6b2-47b2-8bcb-89786d68f253
Provider: wikimedia
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/wikimedia/coordinates
Page update time: 2026-12-03T02:36:59.223Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:36:59.223Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Wikipedia Coordinates API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "action": {
          "type": "string",
          "description": "Select the read-only query action.",
          "enum": [
            "query"
          ]
        },
        "format": {
          "type": "string",
          "description": "Return JSON.",
          "enum": [
            "json"
          ]
        },
        "formatversion": {
          "type": "string",
          "description": "Use JSON format version 2.",
          "enum": [
            "2"
          ]
        },
        "redirects": {
          "type": "string",
          "description": "Resolve redirects to the canonical article.",
          "enum": [
            "1"
          ]
        },
        "prop": {
          "type": "string",
          "description": "Request the coordinates page property.",
          "enum": [
            "coordinates"
          ]
        },
        "titles": {
          "type": "string",
          "description": "English Wikipedia article title, such as Eiffel Tower.",
          "minLength": 1,
          "maxLength": 255
        },
        "colimit": {
          "type": "integer",
          "description": "Maximum number of results to return.",
          "minimum": 1,
          "maximum": 20
        },
        "continue": {
          "type": "string",
          "description": "When paginating, pass the continue value from the previous response if present."
        },
        "cocontinue": {
          "type": "string",
          "description": "When paginating, pass the cocontinue value from the previous response if present."
        }
      },
      "required": [
        "action",
        "format",
        "formatversion",
        "redirects",
        "prop",
        "titles",
        "colimit"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "batchcomplete": {
      "type": "boolean"
    },
    "query": {
      "type": "object",
      "properties": {
        "normalized": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "from": {
                "type": "string"
              },
              "fromencoded": {
                "type": "boolean"
              },
              "to": {
                "type": "string"
              }
            }
          }
        },
        "pages": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "coordinates": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "globe": {
                      "type": "string"
                    },
                    "lat": {
                      "type": "number"
                    },
                    "lon": {
                      "type": "number"
                    },
                    "primary": {
                      "type": "boolean"
                    }
                  }
                }
              },
              "ns": {
                "type": "integer"
              },
              "pageid": {
                "type": "integer"
              },
              "title": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/wikimedia/coordinates?action=query&colimit=1&format=json&formatversion=2&prop=coordinates&redirects=1&titles=Eiffel_Tower' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "batchcomplete": true,
  "query": {
    "normalized": [
      {
        "from": "Eiffel_Tower",
        "fromencoded": false,
        "to": "Eiffel Tower"
      }
    ],
    "pages": [
      {
        "coordinates": [
          {
            "globe": "earth",
            "lat": 48.85822222,
            "lon": 2.2945,
            "primary": true
          }
        ],
        "ns": 0,
        "pageid": 9232,
        "title": "Eiffel Tower"
      }
    ]
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
