summary

summary schema from Wikimedia REST API

Open DataPublic APIsOpen KnowledgeEncyclopediaKnowledge GraphOpen SourceNon-Profit

Properties

Name Type Description
titles object
title string The page title. Deprecated: Use `titles.normalized` instead.
displaytitle string The page title how it should be shown to the user. Deprecated: Use `titles.display` instead.
pageid integer The page ID
extract string First several sentences of an article in plain text
extract_html string First several sentences of an article in simple HTML format
thumbnail object
originalimage object
lang string The page language code
dir string The page language direction code
timestamp string The time when the page was last edited in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format
description string Wikidata description for the page
coordinates object The coordinates of the item
View JSON Schema on GitHub

JSON Schema

rest-v1-summary-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wikipedia/refs/heads/main/json-schema/rest-v1-summary-schema.json",
  "title": "summary",
  "description": "summary schema from Wikimedia REST API",
  "type": "object",
  "properties": {
    "titles": {
      "$ref": "#/components/schemas/titles_set"
    },
    "title": {
      "deprecated": true,
      "type": "string",
      "description": "The page title.\nDeprecated: Use `titles.normalized` instead.\n"
    },
    "displaytitle": {
      "deprecated": true,
      "type": "string",
      "description": "The page title how it should be shown to the user.\nDeprecated: Use `titles.display` instead.\n"
    },
    "pageid": {
      "type": "integer",
      "description": "The page ID"
    },
    "extract": {
      "type": "string",
      "description": "First several sentences of an article in plain text"
    },
    "extract_html": {
      "type": "string",
      "description": "First several sentences of an article in simple HTML format"
    },
    "thumbnail": {
      "$ref": "#/components/schemas/thumbnail"
    },
    "originalimage": {
      "$ref": "#/components/schemas/originalimage"
    },
    "lang": {
      "type": "string",
      "description": "The page language code",
      "example": "en"
    },
    "dir": {
      "type": "string",
      "description": "The page language direction code",
      "example": "ltr"
    },
    "timestamp": {
      "type": "string",
      "description": "The time when the page was last edited in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format",
      "example": {}
    },
    "description": {
      "type": "string",
      "description": "Wikidata description for the page",
      "example": "American poet"
    },
    "coordinates": {
      "type": "object",
      "description": "The coordinates of the item",
      "properties": {
        "lat": {
          "type": "number",
          "description": "The latitude"
        },
        "lon": {
          "type": "number",
          "description": "The longitude"
        }
      },
      "required": [
        "lat",
        "lon"
      ]
    }
  },
  "required": [
    "dir",
    "extract",
    "lang",
    "titles"
  ]
}