Wiktionary · Schema

SearchResponse

SearchResponse schema from Wiktionary MediaWiki Core REST API

DictionariesOpen SourceWikimediaMediaWikiLinguisticsOpen DataPublic APIs

Properties

Name Type Description
pages array
View JSON Schema on GitHub

JSON Schema

core-rest-api-search-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-search-response-schema.json",
  "title": "SearchResponse",
  "description": "SearchResponse schema from Wiktionary MediaWiki Core REST API",
  "type": "object",
  "properties": {
    "pages": {
      "type": "array",
      "items": {
        "title": "SearchPage",
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "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": "string",
                "format": "uri",
                "example": "https://upload.wikimedia.org/wikipedia/commons/thumb/example.png"
              },
              "width": {
                "type": "integer",
                "example": 60
              },
              "height": {
                "type": "integer",
                "example": 60
              }
            }
          }
        }
      }
    }
  }
}