# 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/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
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:00.728Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Wikipedia Revision History API

Use prop=revisions and rvprop=ids|timestamp|comment for an article title. The returned revisions array provides metadata; rvlimit accepts 1 to 20 and no continuation request field is exposed.

## What You Can Build

- **Prepare an edit review**: Read revision dates and edit comments for a known article.
- **Select comparison inputs**: Use revid values as inputs to the Revision Compare API.
- **Track revision metadata**: Retain dated revision identifiers in your own monitoring workflow.

## Returned Data

| Field | Meaning |
| --- | --- |
| `query.pages[].title` | Article title |
| `query.pages[].revisions[].revid` | Revision identifier |
| `query.pages[].revisions[].parentid` | Parent revision identifier |
| `query.pages[].revisions[].timestamp` | Revision time |
| `query.pages[].revisions[].comment` | Edit comment |

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

## Common questions
### Does the response include each revision's article text?
No. rvprop is fixed to ids|timestamp|comment, which requests revision metadata rather than article content.

### How many revisions can I request?
Set rvlimit from 1 to 20.

### Can I pass the returned rvcontinue token?
The reference response contains continuation information, but this implementation exposes no rvcontinue or continue request input.

### How do I compare two revisions?
Pass two revision IDs from the same article into the separate Wikipedia Revision Compare API.

### Does an edit comment explain every change?
An edit comment is source-provided text and can be empty or incomplete. Use a revision diff for the changes themselves.

### Can this retrieve a full historical archive?
The current contract provides a bounded metadata lookup, not a complete historical export.

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