Thanks for responding but I don't think this is going to help.
I'm not using top. I tried it both ways, with and without top, to no avail.
The explorer returns the same data as my ts code.
I have about 60 pages in all of my notebooks. I'm only getting 17 when I call me/notebook/pages, which is below the default max of 20.
Within one notebook I have multiple sections. I get pages for the last two, newest sections, but no pages for the first 7 sections, even though I can see them in the one note app.