Properties
| Name | Type | Description |
|---|---|---|
| id | integer | Unique identifier for the search result |
| title | string | The title for the search result |
| url | string | URL for the search result |
| type | string | The type of the search result |
| subtype | string | The subtype of the search result |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/wordpress/refs/heads/main/json-schema/wordpress-search-result-schema.json",
"title": "SearchResult",
"description": "A search result object",
"type": "object",
"properties": {
"id": {
"type": "integer",
"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"
}
}
}