Hello everyone,
As part of the RESTBase Sunset effort, some endpoints will be phased out in favor of better and more stable alternatives.
The /page/related https://en.wikipedia.org/api/rest_v1/#/Page%20content/getRelatedPages endpoints are now ready for deprecation. This endpoint is marked as experimental and its usage can be replaced by a call to the "morelike" action API that already exists in MediaWiki and is stable. You can find an example of how to migrate your code to this new endpoint here https://gerrit.wikimedia.org/r/c/mediawiki/services/mobileapps/+/982154/13/pagelib/src/transform/FooterReadMore.js .
Next steps: because this is an experimental endpoint, we decided to apply the existing policy for REST endpoints https://www.mediawiki.org/wiki/API_versioning#Experimental and turn it off as soon as possible while still respecting Android and iOS old versions' deprecation timeline. Traffic to this endpoint can blocked starting Today, Feb 6th 2025 (02/06/2025) and code will be removed after that. Details about the deprecation can be found in this phabricator task, T376297 https://phabricator.wikimedia.org/T376297.
Don't hesitate in getting in touch in case you have any questions or concerns.
Best regards,
--
Mateus Santos
Product Manager - MediaWiki Engineering Group
Wikimedia Foundation
wikitech-l@lists.wikimedia.org