Take a look at enwiki’s Module:Protection banner. It has some code for this

On Tue, Oct 7, 2025 at 9:07 AM Strainu <[email protected]> wrote:

> Hi all,
>
> I'm trying to automate wrangling protection templates. Adding them is
> trivial, but I'm having issues with the removal. The best I have is go
> waaay back on protections, check the expiration date and see if the page is
> still protected. But that's both expensive and useless for long-term
> protections.
>
> Is there any event/notification/anything at all available through the API
> that would allow me to know which pages' protection expired recently
> without keeping a list of protected pages?
>
> Thanks,
>    Strainu
> _______________________________________________
> Wikitech-l mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
_______________________________________________
Wikitech-l mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

Reply via email to