WordPress · JSON Structure

Wordpress Search Result Structure

A search result object

Type: object Properties: 5
CMSContent ManagementOpen SourceWordPress

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

Properties

id title url type subtype

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/wordpress/refs/heads/main/json-structure/wordpress-search-result-structure.json",
  "name": "SearchResult",
  "description": "A search result object",
  "type": "object",
  "properties": {
    "id": {
      "type": "int32",
      "description": "Unique identifier for the search result",
      "example": 123
    },
    "title": {
      "type": "string",
      "description": "The title for the search result",
      "example": "My First WordPress Post"
    },
    "url": {
      "type": "string",
      "description": "URL for the search result",
      "example": "https://example.com/2026/04/my-first-post/"
    },
    "type": {
      "type": "string",
      "description": "The type of the search result",
      "example": "post"
    },
    "subtype": {
      "type": "string",
      "description": "The subtype of the search result",
      "example": "post"
    }
  }
}