The schema for the search API mentions:
| title | Page title as it appears on the page |
This seems to imply that this is the display title. But this does not seem to be the case. If it was the display title then a query for book titles, TV series, etc. would have some HTML tags in there.
Example 1: with the following query I would expect <i>The Rebel</i> (South Korean TV series) for the title, not just The Rebel (South Korean TV series).
https://en.wikipedia.org/w/rest.php/v1/search/title?q=the%20rebel&limit=1
{
"pages": [
{
"id": 52294167,
"key": "The_Rebel_(South_Korean_TV_series)",
"title": "The Rebel (South Korean TV series)",
"excerpt": "The Rebel (South Korean TV series)",
"description": "television series",
"thumbnail": {
"mimetype": "image/jpeg",
"size": null,
"width": 133,
"height": 200,
"duration": null,
"url": "//upload.wikimedia.org/wikipedia/en/thumb/8/85/Poster_for_Thief_Who_Stole_the_People.jpg/133px-Poster_for_Thief_Who_Stole_the_People.jpg"
}
}
]
}Example 2: should be iOS 11 instead of IOS 11.
https://en.wikipedia.org/w/rest.php/v1/search/title?q=IOS_11&limit=1
{
"pages": [
{
"id": 53862244,
"key": "IOS_11",
"title": "IOS 11",
"excerpt": "IOS 11",
"description": "eleventh major release of iOS, the mobile operating system by Apple Inc.",
"thumbnail": {
"mimetype": "image/png",
"size": null,
"width": 112,
"height": 200,
"duration": null,
"url": "//upload.wikimedia.org/wikipedia/en/thumb/9/9e/IOS_11_Homescreen_iPhone_7_Plus.png/112px-IOS_11_Homescreen_iPhone_7_Plus.png"
}
}
]
}For comparison, the RESTBase /page/summary endpoint returns three titles: canonical, normalized, display.
[1] https://www.mediawiki.org/wiki/API:REST_API/Reference#Schema