Wiktionary · JSON Structure

Core Rest Api Search Response Structure

SearchResponse schema from Wiktionary MediaWiki Core REST API

Type: object Properties: 1
DictionariesOpen SourceWikimediaMediaWikiLinguisticsOpen DataPublic APIs

SearchResponse 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

pages

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-response-structure.json",
  "description": "SearchResponse schema from Wiktionary MediaWiki Core REST API",
  "type": "object",
  "properties": {
    "pages": {
      "type": "array",
      "items": {
        "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"
      }
    }
  },
  "name": "SearchResponse"
}