Wiktionary · Schema

PageSourceResponse

Source representation of a Wiktionary page.

DictionariesOpen SourceWikimediaMediaWikiLinguisticsOpen DataPublic APIs

Properties

Name Type Description
id integer
key string
title string
latest object
content_model string
license object
source string Raw wikitext source.
View JSON Schema on GitHub

JSON Schema

core-rest-api-page-source-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wiktionary/refs/heads/main/json-schema/core-rest-api-page-source-response-schema.json",
  "title": "PageSourceResponse",
  "description": "Source representation of a Wiktionary page.",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "example": 12345
    },
    "key": {
      "type": "string",
      "example": "hello"
    },
    "title": {
      "type": "string",
      "example": "hello"
    },
    "latest": {
      "title": "LatestRevision",
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "example": 7654321
        },
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "example": "2025-03-15T14:30:00Z"
        }
      }
    },
    "content_model": {
      "type": "string",
      "example": "wikitext"
    },
    "license": {
      "title": "LicenseInfo",
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "format": "uri",
          "example": "https://creativecommons.org/licenses/by-sa/4.0/"
        },
        "title": {
          "type": "string",
          "example": "Creative Commons Attribution-Share Alike 4.0 International"
        }
      }
    },
    "source": {
      "type": "string",
      "description": "Raw wikitext source.",
      "example": "==English==\n===Interjection===\n# A standard greeting."
    }
  }
}