# Wikipedia Nearby Articles API

Get Wikipedia Nearby Articles data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Wikimedia, pass parameters such as action, format, formatversion, and retrieve structured data including article page identifier, article title, article latitude, article longitude, and dist to build a local reference map, prepare nearby reading, and control discovery radius.

Documentation: https://openany.si/market/apis/wikipedia/wikipedia-nearby-articles/
API ID: fd646e3d-dc9f-48f9-99b8-b8ab0cbfcec1
Provider: wikimedia
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/wikimedia/nearby
Page update time: 2026-12-03T02:37:03.055Z
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:37:03.055Z. 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 Nearby Articles 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": "Set to query.",
          "enum": [
            "query"
          ]
        },
        "list": {
          "type": "string",
          "description": "Set to geosearch.",
          "enum": [
            "geosearch"
          ]
        },
        "gscoord": {
          "type": "string",
          "description": "Latitude and longitude in latitude|longitude order.",
          "minLength": 1,
          "maxLength": 255
        },
        "gsradius": {
          "type": "integer",
          "description": "Search radius in meters.",
          "minimum": 10,
          "maximum": 10000
        },
        "gslimit": {
          "type": "integer",
          "description": "Maximum number of articles to return.",
          "minimum": 1,
          "maximum": 20
        },
        "format": {
          "type": "string",
          "description": "Set to json.",
          "enum": [
            "json"
          ]
        },
        "formatversion": {
          "type": "string",
          "description": "Set to 2.",
          "enum": [
            "2"
          ]
        }
      },
      "required": [
        "action",
        "list",
        "gscoord",
        "gsradius",
        "gslimit",
        "format",
        "formatversion"
      ]
    },
    "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": {
        "geosearch": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "dist": {
                "type": "number"
              },
              "lat": {
                "type": "number"
              },
              "lon": {
                "type": "number"
              },
              "ns": {
                "type": "integer"
              },
              "pageid": {
                "type": "integer"
              },
              "primary": {
                "type": "boolean"
              },
              "title": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/wikimedia/nearby?action=query&format=json&formatversion=2&gscoord=48.8584%7C2.2945&gslimit=3&gsradius=500&list=geosearch' \
  -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": {
    "geosearch": [
      {
        "dist": 19.8,
        "lat": 48.858222222222224,
        "lon": 2.2944999999999998,
        "ns": 0,
        "pageid": 9232,
        "primary": true,
        "title": "Eiffel Tower"
      },
      {
        "dist": 160.9,
        "lat": 48.8575,
        "lon": 2.292777777777778,
        "ns": 0,
        "pageid": 16201796,
        "primary": true,
        "title": "Globe Céleste"
      },
      {
        "dist": 161.3,
        "lat": 48.8583,
        "lon": 2.2923,
        "ns": 0,
        "pageid": 48435351,
        "primary": true,
        "title": "Palazzo Bernardo Nani"
      }
    ]
  }
}
```

## 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
