# Geo Wikipedia API
> Wikipedia, located — find the Wikipedia articles near any coordinate ("Wikipedia near me") as an API, live from the official MediaWiki API. Pass a latitude and longitude and get the nearby places, landmarks and points of interest with their distance in metres, a two-sentence summary, a thumbnail image and a link — perfect for travel guides, maps, augmented-reality and location-aware apps. Or look up a single article to get its coordinates, description, summary and image. Works for every language edition (en.wikipedia, de.wikipedia, fr.wikipedia and 300+ more). Open data from Wikipedia.

## Authentication
All requests require your oanor API key in the `x-oanor-key` header. Get one at https://www.oanor.com/developer/keys.

```bash
curl -H "x-oanor-key: oanor_live_…" "https://api.oanor.com/geowiki-api/..."
```

## Pricing
- **Free** (Free) — 3,650 calls/Mo, 2 req/s
- **Starter** ($4/Mo) — 49,600 calls/Mo, 8 req/s
- **Pro** ($13/Mo) — 243,500 calls/Mo, 20 req/s
- **Mega** ($34/Mo) — 1,206,000 calls/Mo, 50 req/s

## Endpoints

### Geo Wikipedia

#### `GET /v1/article` — One article: coordinates + summary

**Parameters:**
- `title` (query, required, string) — Article title, e.g. Eiffel Tower Example: `Eiffel Tower`
- `project` (query, optional, string) — Wikipedia edition (default en.wikipedia)

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/geowiki-api/v1/article?title=Eiffel+Tower"
```

**Response:**
```json
{
    "data": {
        "article": {
            "url": "https://en.wikipedia.org/wiki/Eiffel_Tower",
            "lang": "en",
            "title": "Eiffel Tower",
            "extract": "The Eiffel Tower is a lattice tower on the Champ de Mars in Paris, France. It is named after the engineer Gustave Eiffel, whose company designed and built the tower from 1887 to 1889.",
            "latitude": 48.85822222,
            "longitude": 2.2945,
            "thumbnail": "https://upload.wikimedia.org/wikipedia/commons/thumb/8/85/Tour_Eiffel_Wikimedia_Commons_%28cropped%29.jpg/330px-Tour_Eiffel_Wikimedia_Commons_%28cropped%29.jpg",
            "description": "Tower in Paris, France"
        }
    },
    "meta": {
        "timestamp": "2026-05-31T10:05:18.825Z",
        "request_id": "1d922ccf-0985-44f6-b5f9-0e117b05db2e"
    },
    "status": "ok",
    "message": "Article retrieved",
    "success": true
}
```

#### `GET /v1/nearby` — Wikipedia articles near a coordinate

**Parameters:**
- `lat` (query, required, string) — Latitude (-90..90) Example: `48.8584`
- `lon` (query, required, string) — Longitude (-180..180) Example: `2.2945`
- `radius` (query, optional, string) — Search radius in metres (10-10000, default 1000) Example: `1000`
- `limit` (query, optional, string) — Max results (1-50, default 10) Example: `10`
- `enrich` (query, optional, string) — false = skip summaries/thumbnails (faster)
- `project` (query, optional, string) — Wikipedia edition, e.g. en.wikipedia, de.wikipedia

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/geowiki-api/v1/nearby?lat=48.8584&lon=2.2945&radius=1000&limit=10"
```

**Response:**
```json
{
    "data": {
        "count": 10,
        "center": {
            "lat": 48.8584,
            "lon": 2.2945
        },
        "project": "en.wikipedia",
        "results": [
            {
                "url": "https://en.wikipedia.org/wiki/Eiffel_Tower",
                "title": "Eiffel Tower",
                "pageid": 9232,
                "extract": "The Eiffel Tower (  EYE-fəl; French: Tour Eiffel [tuʁ ɛfɛl] ) is a lattice tower on the Champ de Mars in Paris, France. It is named after the engineer Gustave Eiffel, whose company designed and built the tower from 1887 to 1889.",
                "latitude": 48.858222222222224,
                "longitude": 2.2944999999999998,
                "thumbnail": "https://upload.wikimedia.org/wikipedia/commons/thumb/8/85/Tour_Eiffel_Wikimedia_Commons_%28cropped%29.jpg/250px-Tour_Eiffel_Wikimedia_Commons_%28cropped%29.jpg",
                "distance_m": 19.8
            },
            {
                "url": "https://en.wikipedia.org/wiki/Globe_C%C3%A9leste",
                "title": "Globe Céleste",
                "pageid": 16201796,
                "extract": "The Globe Céleste was an icon of the Exposition Universelle of 1900 in Paris, similar to the Eiffel Tower. It was constructed in the shape of a large globe and stood close to the Eiffel Tower.",
                "latitude": 48.8575,
                "longitude": 2.292777777777778,
                "thumbnail": "https://upload.wikimedia.org/wikipedia/commons/thumb/8/8d
…(truncated, see openapi.json for full schema)
```

### Meta

#### `GET /v1/meta` — Source & options

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/geowiki-api/v1/meta"
```

**Response:**
```json
{
    "data": {
        "note": "Find Wikipedia articles near any coordinate ('Wikipedia near me') with distance, 2-sentence extract, thumbnail and link (/v1/nearby?lat=48.8584&lon=2.2945&radius=1000), or get one article's coordinates and summary (/v1/article?title=Eiffel Tower). project defaults to en.wikipedia; any language edition works (de.wikipedia, fr.wikipedia, …). radius in metres (10-10000).",
        "source": "Wikipedia / MediaWiki API (geosearch + page summary)",
        "endpoints": [
            "/v1/nearby",
            "/v1/article",
            "/v1/meta"
        ]
    },
    "meta": {
        "timestamp": "2026-05-31T10:05:19.364Z",
        "request_id": "216ec40d-5d99-4a24-9c92-b7697088094a"
    },
    "status": "ok",
    "message": "Meta retrieved",
    "success": true
}
```


---
Marketplace page: https://www.oanor.com/api/geowiki-api
OpenAPI spec: https://www.oanor.com/api/geowiki-api/openapi.json
