Wiktionary · JSON Structure

Rest Api Revision Metadata Structure

Metadata about the latest revision of a page.

Type: object Properties: 1
DictionariesOpen SourceWikimediaMediaWikiLinguisticsOpen DataPublic APIs

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

Properties

items

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/rest-api-revision-metadata-structure.json",
  "description": "Metadata about the latest revision of a page.",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "example": "hello"
          },
          "page_id": {
            "type": "int32",
            "example": 12345
          },
          "rev": {
            "type": "int32",
            "description": "Revision id.",
            "example": 7654321
          },
          "tid": {
            "type": "string",
            "example": "1c2d3e4f-aaaa-bbbb-cccc-ddddeeeeffff"
          },
          "namespace": {
            "type": "int32",
            "example": 0
          },
          "user_id": {
            "type": "int32",
            "example": 1
          },
          "user_text": {
            "type": "string",
            "example": "ExampleEditor"
          },
          "timestamp": {
            "type": "datetime",
            "example": "2025-03-15T14:30:00Z"
          },
          "comment": {
            "type": "string",
            "example": "typo fix"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": []
          },
          "restrictions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": []
          },
          "page_language": {
            "type": "string",
            "example": "en"
          }
        },
        "name": "RevisionItem"
      }
    }
  },
  "name": "RevisionMetadata"
}