{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fiatdock-com/json-schema/fiatdock-com-wiki-summary-schema.json",
  "title": "WikiSummary",
  "description": "Paid. Wikipedia article summary (21 languages).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fiatdock-com-wiki-api-openapi.yml#/components/schemas/WikiSummary",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "The query as searched (whitespace collapsed)"
    },
    "lang": {
      "type": "string",
      "description": "The Wikipedia language edition read"
    },
    "title": {
      "type": "string",
      "description": "The article's title"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "The short description (usually Wikidata's), or null"
    },
    "extract": {
      "type": "string",
      "description": "The article's lead section as plain text (at most 4,000 characters) — Wikipedia contributors' text"
    },
    "type": {
      "type": "string",
      "description": "standard, disambiguation (a list of meanings, not an answer), mainpage, no-extract, or unknown"
    },
    "url": {
      "type": "string",
      "description": "The article's canonical desktop URL"
    },
    "lastModified": {
      "type": [
        "string",
        "null"
      ],
      "description": "ISO time of the article's last edit, or null"
    },
    "thumbnail": {
      "type": [
        "string",
        "null"
      ],
      "description": "The article's lead image (https), or null"
    },
    "coordinates": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "lat": {
          "type": "number"
        },
        "lon": {
          "type": "number"
        }
      },
      "required": [
        "lat",
        "lon"
      ],
      "description": "The subject's coordinates when the article has them, or null"
    },
    "wikidataId": {
      "type": [
        "string",
        "null"
      ],
      "description": "The Wikidata item (Q-id), or null"
    },
    "matchedBy": {
      "type": "string",
      "description": "How the article was chosen: exact title, full-text search or title search"
    },
    "matchedTitle": {
      "type": [
        "string",
        "null"
      ],
      "description": "The redirect or alias title that matched, when it differs from the article's title (e.g. HTTP 402 → List of HTTP status codes)"
    },
    "otherMatches": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Up to 4 other titles the search returned"
    },
    "license": {
      "type": "string",
      "description": "The license of the text (CC BY-SA 4.0)"
    },
    "attribution": {
      "type": "string",
      "description": "The credit to keep beside any reuse of the text, with the article's link"
    },
    "source": {
      "type": "string",
      "description": "Where the data came from"
    },
    "asOf": {
      "type": "string",
      "description": "ISO time the search and the summary were read (the older of them)"
    },
    "note": {
      "type": "string",
      "description": "Whose text it is, how the article was chosen, and the limits"
    },
    "defaulted": {
      "type": "object",
      "properties": {
        "field": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "value": {
          "type": "string"
        },
        "note": {
          "type": "string"
        }
      },
      "required": [
        "field",
        "to",
        "value",
        "note"
      ],
      "description": "Present only when the body was empty: which query the answer is for, and why"
    }
  },
  "required": [
    "query",
    "lang",
    "title",
    "description",
    "extract",
    "type",
    "url",
    "lastModified",
    "thumbnail",
    "coordinates",
    "wikidataId",
    "matchedBy",
    "matchedTitle",
    "otherMatches",
    "license",
    "attribution",
    "source",
    "asOf",
    "note"
  ]
}