It seems that this list module returns page ids as strings instead of numbers:
{"pageid":"11884","ns":0,"title":"German language","iwprefix":"de","iwtitle":""}
(from a request to English Wikipedia). Other list modules seem to always return numbers for pageid, e.g. imageusage:
{"pageid":47945,"ns":0,"title":"Madhya Pradesh"}