# Wikipedia Revision History API

Get Wikipedia Revision History 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 title, revision identifier, parent revision identifier, revision time, and edit comment to prepare an edit review, select comparison inputs, and track revision metadata.

Documentation: https://openany.si/market/apis/wikipedia/wikipedia-article-revision-history/
API ID: 587e4215-a59f-4067-9c61-3b170d893e8a
Provider: wikimedia
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/wikimedia/revisions
Page update time: 2026-12-03T02:37:00.728Z
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:00.728Z. 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 Revision History 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"
          ]
        },
        "prop": {
          "type": "string",
          "description": "Set to revisions.",
          "enum": [
            "revisions"
          ]
        },
        "titles": {
          "type": "string",
          "description": "English Wikipedia article title.",
          "minLength": 1,
          "maxLength": 255
        },
        "rvprop": {
          "type": "string",
          "description": "Set to ids|timestamp|comment.",
          "enum": [
            "ids|timestamp|comment"
          ]
        },
        "rvlimit": {
          "type": "integer",
          "description": "Maximum number of revisions 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",
        "prop",
        "titles",
        "rvprop",
        "rvlimit",
        "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": {
    "continue": {
      "type": "object",
      "properties": {
        "continue": {
          "type": "string"
        },
        "rvcontinue": {
          "type": "string"
        }
      }
    },
    "query": {
      "type": "object",
      "properties": {
        "pages": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "ns": {
                "type": "integer"
              },
              "pageid": {
                "type": "integer"
              },
              "revisions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "comment": {
                      "type": "string"
                    },
                    "parentid": {
                      "type": "integer"
                    },
                    "revid": {
                      "type": "integer"
                    },
                    "timestamp": {
                      "type": "string"
                    }
                  }
                }
              },
              "title": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/wikimedia/revisions?action=query&format=json&formatversion=2&prop=revisions&rvlimit=2&rvprop=ids%7Ctimestamp%7Ccomment&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": "||",
    "rvcontinue": "20261026231521|1382152926"
  },
  "query": {
    "pages": [
      {
        "ns": 0,
        "pageid": 9228,
        "revisions": [
          {
            "comment": "/* Etymology */ Removal of the definite article in order to express the point being made (the contrast between the usage of \"Earth\" as a name as opposed to being preceded by \"the\").",
            "parentid": 1382821990,
            "revid": 1382916556,
            "timestamp": "2026-10-31T00:08:00Z"
          },
          {
            "comment": "Solar wind, not winds (always singular)",
            "parentid": 1382152926,
            "revid": 1382821990,
            "timestamp": "2026-10-30T13:53:42Z"
          }
        ],
        "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
