Finding all broken links + where they are called in Prismic

Hello,
We recently underwent a massive data migration within our Prismic environments. After doing so, a lot of titles, UID's, and content has been edited. With the edits, we are left with a hefty list of broken links. We found this utility (Easiest way to archive/delete a document with many internal links pointing to it? - #6 by samlittlefair) which can check for dead links, which we will try.
Is there also a way to find everywhere those links are being used in Prismic? While helpful to be able to find which links are broken, it does not help with repairs as it would be ideal to pull a list of everywhere that broken link is being called.

Thanks for your time!

There isn’t an automated way to find where these links are being used directly in Prismic. You would need to build a script that searches for the broken link values inside your documents. Once you’ve identified where the broken links are, you can use the Migration API to update them as needed.