How to find all links to missing pages in a space?

Is it possible to compile a list of links to missing pages in a space? For example, there is only one page in a space. In that page, there are multiple links to pages that aren’t created yet. Is there a way to compile a list of such links?

By missing pages, I mean pages that do not exist. Links to these pages show up with a question mark next to it.

Hopefully, my question is clear.
Any help is greatly appreciated.

Seems related to Loading...

1 Like

Thank you very much for the help! I was able to find this snippet that does exactly what I need.