I do not seem to be able to get anything in redirect
field in a query result. For example this query to the Wikivoyage returns:
{ "batchcomplete": "", "query": { "pages": { "32897": { "pageid": 32897, "ns": 0, "title": "Siracusa", "contentmodel": "wikitext", "pagelanguage": "en", "pagelanguagehtmlcode": "en", "pagelanguagedir": "ltr", "touched": "2017-04-12T09:57:53Z", "lastrevid": 1337310, "length": 30, "redirect": "" } } } }
so the redirect
field is empty, while Siracusa page is a redirect.