# Wikipedia External Links API

Get Wikipedia External Links data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Wikimedia, pass parameters such as action, ellimit, format, and retrieve structured data including article page identifier, resolved article title, external destination URL, external-link continuation token, and general continuation value to discover source destinations, prepare link checks, and build an outgoing-link index.

Documentation: https://openany.si/market/apis/wikipedia/wikipedia-article-external-links/
API ID: 1517a332-452c-4fe1-824c-3dca85d57558
Provider: wikimedia
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/wikimedia/external-links
Page update time: 2026-12-03T02:36:59.317Z
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.317Z. 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 External Links 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 extlinks page property.",
          "enum": [
            "extlinks"
          ]
        },
        "titles": {
          "type": "string",
          "description": "English Wikipedia article title, such as Earth.",
          "minLength": 1,
          "maxLength": 255
        },
        "ellimit": {
          "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."
        },
        "elcontinue": {
          "type": "string",
          "description": "When paginating, pass the elcontinue value from the previous response if present."
        }
      },
      "required": [
        "action",
        "format",
        "formatversion",
        "redirects",
        "prop",
        "titles",
        "ellimit"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "continue": {
      "type": "object",
      "properties": {
        "continue": {
          "type": "string"
        },
        "elcontinue": {
          "type": "string"
        }
      }
    },
    "query": {
      "type": "object",
      "properties": {
        "pages": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "extlinks": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    }
                  }
                }
              },
              "ns": {
                "type": "integer"
              },
              "pageid": {
                "type": "integer"
              },
              "title": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/wikimedia/external-links?action=query&ellimit=3&format=json&formatversion=2&prop=extlinks&redirects=1&titles=Earth' \
  -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
{
  "continue": {
    "continue": "||",
    "elcontinue": "1112681613"
  },
  "query": {
    "pages": [
      {
        "extlinks": [
          {
            "url": "http://www.landcover.org/"
          },
          {
            "url": "https://web.archive.org/web/20150326085837/http://www.landcover.org/"
          },
          {
            "url": "https://web.archive.org/web/20190402034308/https://orbitaldebris.jsc.nasa.gov/quarterly-news/pdfs/odqnv22i1.pdf"
          }
        ],
        "ns": 0,
        "pageid": 9228,
        "title": "Earth"
      }
    ]
  }
}
```

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