The revision object represents a change to a wiki page.

Example

{
  "id": 931281281,
  "page": {
    "id": 38930,
    "title": "Jupiter"
  },
  "size": 126009,
  "minor": false,
  "timestamp": "2019-12-18T01:39:24Z",
  "user": {
    "id": 27015025,
    "name": "InternetArchiveBot"
  },
  "comment": "Bluelinking 2 books for [[WP:V|verifiability]].) #IABot (v2.1alpha3",
  "delta": 231
}

Schema

id

required integer

Revision identifier
user

required object

Object containing information about the user who made the edit
Properties
name

string

Username, or originating IP address for anonymous users
id

integer

User identifier, or null for anonymous users
timestamp

required string

Time of the edit in ISO 8601 format
comment

required string

Comment or edit summary written by the editor. For revisions without a comment, the API returns null or "".
size

required integer

Size of the revision in bytes
delta

required integer

Number of bytes changed, positive or negative, between a revision and the preceding revision (example: -20). If the preceding revision is unavailable, the API returns null.
minor

required boolean

Set to true for edits marked as minor
Get revision only:
page

required object

Object containing information about the page
Properties
page_id

integer

Page identifier
title

string

Page title in reading-friendly format