Wiktionary · JSON Structure

Core Rest Api Revision Detail Structure

RevisionDetail schema from Wiktionary MediaWiki Core REST API

Type: object Properties: 10
DictionariesOpen SourceWikimediaMediaWikiLinguisticsOpen DataPublic APIs

RevisionDetail is a JSON Structure definition published by Wiktionary, describing 10 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id page size minor timestamp content_model license user comment delta

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wiktionary/refs/heads/main/json-structure/core-rest-api-revision-detail-structure.json",
  "description": "RevisionDetail schema from Wiktionary MediaWiki Core REST API",
  "type": "object",
  "properties": {
    "id": {
      "type": "int32",
      "example": 7654321
    },
    "page": {
      "type": "object",
      "properties": {
        "id": {
          "type": "int32",
          "example": 12345
        },
        "title": {
          "type": "string",
          "example": "hello"
        }
      }
    },
    "size": {
      "type": "int32",
      "example": 4321
    },
    "minor": {
      "type": "boolean",
      "example": false
    },
    "timestamp": {
      "type": "datetime",
      "example": "2025-03-15T14:30:00Z"
    },
    "content_model": {
      "type": "string",
      "example": "wikitext"
    },
    "license": {
      "type": "object",
      "properties": {
        "url": {
          "type": "uri",
          "example": "https://creativecommons.org/licenses/by-sa/4.0/"
        },
        "title": {
          "type": "string",
          "example": "Creative Commons Attribution-Share Alike 4.0 International"
        }
      },
      "name": "LicenseInfo"
    },
    "user": {
      "type": "object",
      "properties": {
        "id": {
          "type": "int32",
          "example": 1
        },
        "name": {
          "type": "string",
          "example": "ExampleEditor"
        }
      }
    },
    "comment": {
      "type": "string",
      "example": "typo fix"
    },
    "delta": {
      "type": "int32",
      "description": "Byte delta from the parent revision.",
      "example": 12
    }
  },
  "name": "RevisionDetail"
}