On Thu, Dec 11, 2014 at 5:11 AM, practikal mind <practikalmind(a)gmail.com>
wrote:
How do I find out the range of pageids that are
currently in use in
wikipedia?
I don't know of any straightforward way to do this via the API. But if you
get an account on Tool Labs,[1] it's a simple SQL query: SELECT
MIN(page_id), MAX(page_id) FROM page.
[1]:
https://tools.wmflabs.org/
Do pageids always remain constant?
If a page is deleted and then undeleted, the page id might change.
Can a certain pageid cease to exist?
If the page is deleted, yes. Special:MergeHistory will probably eliminate
one of the involved page ids too.
--
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation