On parsing a URL (any URL), use the Internet Archive's API to generate the (?)archive_url and archive_date fields in the return.
Where the URL fails (4xx, 5xx), also set a use_archive flag or whatever indicating that the original URL is not currently valid. (This is T95388: Try to find link in archive.org when direct scraping fails.)