# 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/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
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
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
}
```

## Usage and limits
## Wikipedia Nearby Articles API

Use list=geosearch with gscoord in latitude|longitude order. gsradius accepts 10 to 10000 meters and gslimit accepts 1 to 20; matches appear under query.geosearch.

## What You Can Build

- **Build a local reference map**: Place article candidates near a selected coordinate.
- **Prepare nearby reading**: Choose an article ID for a separate content lookup.
- **Control discovery radius**: Adjust the radius and result cap for your interface.

## Returned Data

| Field | Meaning |
| --- | --- |
| `query.geosearch[].pageid` | Article page identifier |
| `query.geosearch[].title` | Article title |
| `query.geosearch[].lat` | Article latitude |
| `query.geosearch[].lon` | Article longitude |
| `query.geosearch[].dist` | Reported distance from the query coordinate in meters |
| `query.geosearch[].primary` | Primary-coordinate indicator |

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

## Common questions
### What order does gscoord use?
Use latitude|longitude, for example 48.8584|2.2945. URL-encode the separator in the request.

### What are the radius units and limits?
gsradius uses meters and accepts 10 to 10000.

### How many articles can I request?
gslimit accepts 1 to 20.

### Does this list every nearby business?
No. It discovers geotagged Wikipedia articles, not a comprehensive business or points-of-interest directory.

### Does the response include article content?
No. Retrieve selected article text through a separate article-content operation.

### Can I paginate or filter by article category?
This contract exposes coordinates, radius and limit, but no page, cursor or category input.

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