Is it possible to make the list of protected pages accessible through the API depending on the community?
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
ApiQueryInfo: Add inprop=protectedby|protectionreason | mediawiki/core | master | +74 -7 |
Event Timeline
You can use action=query&list=allpages with apprtype= and apprlevel= to find the protected pages.
The timestamp, reason and user may not part of the api yet.
Oops... I hadn't noticed. On the other hand, all information is effectively not provided via the API, it would be nice if it were available.
Something like https://en.wikipedia.org/w/api.php?action=query&generator=allpages&gapprtype=edit&prop=info&inprop=protection gets you the protection levels and expiry, you're just missing the timestamp, user, and reason. If that were to be added, it'd probably make most sense to add an inprop.
Change 413473 had a related patch set uploaded (by Anomie; owner: Anomie):
[mediawiki/core@master] ApiQueryInfo: Add inprop=protectedby|protectionreason
Change 413473 abandoned by Umherirrender:
[mediawiki/core@master] ApiQueryInfo: Add inprop=protectedby|protectionreason
Reason:
Old outdated patch set