See Fixing dead links on Meta. Still some questions to answer.
- What archiving services could be used and what features/APIs do they offer?
- There's an API for pulling archives for the Wayback Machine: https://archive.org/help/wayback_api.php
- Existing contacts between the WMF and Internet Archive that we could pursue?
Alex (@Sadads) and others have been working with Internet Archive; they're very interested in helping.
Alex says: " We have made significant progress with en:User:Cyberbot II adding links to archiveurls, but there needs to be a good technical way to store. Talked with Jdforrester (WMF) about building it into citoid at WikiCon USA. Internet archive was there, and expressed an interest in pushing their API's to the limit, to fix the 404 and other errors on Wikipedia."
Also investigate how an ecosystem of link-fixing could work--multiple approaches.
Related:
T89438: Automated archiving of URLs
T115224: On URL submission, look up the archived page in the Internet Archive's index and add to the return data