Wikipedia / MediaWiki · JSON Structure

Mediawiki Core Rest Search Result Structure

A search result page entry.

Type: object Properties: 7
Open DataPublic APIsOpen KnowledgeEncyclopediaKnowledge GraphOpen SourceNon-Profit

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

Properties

id key name 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/wikipedia/refs/heads/main/json-structure/mediawiki-core-rest-search-result-structure.json",
  "name": "SearchResult",
  "description": "A search result page entry.",
  "type": "object",
  "properties": {
    "id": {
      "type": "int32"
    },
    "key": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "excerpt": {
      "type": "string",
      "description": "HTML snippet with <span class=\"searchmatch\"> highlights"
    },
    "matched_title": {
      "type": "string",
      "nullable": true
    },
    "description": {
      "type": "string",
      "nullable": true
    },
    "thumbnail": {
      "type": "object",
      "nullable": true,
      "properties": {
        "url": {
          "type": "uri"
        },
        "width": {
          "type": "int32"
        },
        "height": {
          "type": "int32"
        },
        "mimetype": {
          "type": "string",
          "example": "image/jpeg"
        }
      }
    }
  }
}