Wiktionary · JSON Structure

Core Rest Api Search Page Structure

SearchPage schema from Wiktionary MediaWiki Core REST API

Type: object Properties: 7
DictionariesOpen SourceWikimediaMediaWikiLinguisticsOpen DataPublic APIs

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

Properties

id key title excerpt matched_title description thumbnail

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-search-page-structure.json",
  "description": "SearchPage schema from Wiktionary MediaWiki Core REST API",
  "type": "object",
  "properties": {
    "id": {
      "type": "int32",
      "example": 12345
    },
    "key": {
      "type": "string",
      "example": "hello"
    },
    "title": {
      "type": "string",
      "example": "hello"
    },
    "excerpt": {
      "type": "string",
      "example": "A standard <span class=\"searchmatch\">greeting</span>."
    },
    "matched_title": {
      "type": "string",
      "nullable": true,
      "example": null
    },
    "description": {
      "type": "string",
      "example": "English interjection."
    },
    "thumbnail": {
      "type": "object",
      "nullable": true,
      "properties": {
        "url": {
          "type": "uri",
          "example": "https://upload.wikimedia.org/wikipedia/commons/thumb/example.png"
        },
        "width": {
          "type": "int32",
          "example": 60
        },
        "height": {
          "type": "int32",
          "example": 60
        }
      }
    }
  },
  "name": "SearchPage"
}