I copied the query in SearchApi.js' getApiData() for an article. Brad pointed out you can leave out
list: 'prefixsearch', pssearch: query, pslimit: 15
from the query and instead sort the elements of query.pages on their index key added in T75522: PrefixSearch should support paging.